Commit Graph

994 Commits

Author SHA1 Message Date
Blake Watters
585d4aafc8 Implemented MIMETypeForPathExtension for NSURL and NSString. refs #409
Refactored duplicated code for returning the MIME Type based on file path extension using
Core Services UTI.
2011-10-16 02:06:58 -04:00
Blake Watters
0e08147d5b Updated RKAlert to build in cases where NSAlert and UIAlert are not available (i.e. CLI app). refs #409 2011-10-16 01:17:17 -04:00
Blake Watters
2e04cb42ba Patched LCLNSLog.h to not generate build errors under ARC. refs #260 2011-10-16 01:14:02 -04:00
Brad Phelan
d6e26a6f9d Implemented support for URL encoding an array of dictionaries. fixes #391
For example the following dict

	terms (
        {
        lhs = "blood_glucose_measurement";
        op = gt;
        rhs = 10;
    	}
	)

should generate the following URL encoded string

	type=or&terms[][lhs]=blood_glucose_measurement&terms[][op]=gt&terms[][rhs]=10
2011-10-14 08:52:25 -04:00
Blake Watters
5f47c3d127 Bump UISpecRunner 2011-10-14 08:37:55 -04:00
Blake Watters
95c6cdda88 Add line break below credits 2011-10-14 08:24:57 -04:00
Blake Watters
27afe21801 Updating credits to show GateGuru some love 2011-10-14 08:19:15 -04:00
Blake Watters
9624335f69 Updated YAJL-ObjC. fixes #406 2011-10-14 00:17:01 -04:00
Blake Watters
f515bee08e Updated JSONKit to revision c2ef69242b60dc2475328b08131f9aa3078a51fb. fixes #384 2011-10-13 23:59:32 -04:00
Blake Watters
23422c7f37 Expanded docs in RKObjectMappingProvider. Normalized some method signatures 2011-10-13 23:51:16 -04:00
Blake Watters
362d46e888 Moving compilers to clang 2011-10-13 23:51:16 -04:00
Blake Watters
a9253f3cce Merge pull request #405 from ivucica/master
Fixed building for Cocoa/Mac
2011-10-13 06:48:33 -07:00
Ivan Vučica
33b663a3cf Fixed building on OS X. 2011-10-13 15:43:47 +02:00
Blake Watters
f527918b2a Implemented support for removing mappings from RKObjectMappingProvider by keyPath. Improved documentation on the mapping provider class. 2011-10-13 08:57:18 -04:00
Blake Watters
c29046075f Merge pull request #399 from Felixyz/validationErrorLogging
Log much-needed info when context fails to save
2011-10-12 20:03:59 -07:00
Felix Holmgren
a235610ab4 Log much-needed info when context fails to save
* Makes it much easier to debug Core Data validation problems
  * Adapted from code by Chris Lozach
  * See: http://stackoverflow.com/questions/1283960/iphone-core-data-unresolved-error-while-saving
2011-10-12 21:04:57 +02:00
Blake Watters
214efd31d5 Fix issue with incorrectly built OAuth 1.0 invocation of TDOAuth. fixes #396
Began cleanup of some category methods to eliminate duplicated functionality across the library.
2011-10-12 09:55:38 -04:00
Blake Watters
4b1db7a6f1 Improve assertion failure message when no serialization mapping is available and a put/postObject is attempted 2011-10-11 21:40:26 -04:00
Blake Watters
be38c8a9a8 Updated project file to explicitly build for armv6 and arm7. fixes #394, closes #395
In iOS 5, Apple has removed armv6 from $ARCHS_STANDARD_32_BIT. This can
result in RestKit being built against armv7 only when you are really trying
to build against the iOS 5 SDK, be deploy to 4.x devices. App store validation
will fail in these situations.
2011-10-11 17:55:37 -04:00
Blake Watters
d5987f0433 Workaround for crashes due to over-release of RKParams on iOS 5. fixes #392 2011-10-11 09:21:08 -04:00
Blake Watters
e1936103fd Check the type of destinationValue as well as sourceValue when determining the comparison selector to use. refs #343, refs #320
Hopefully this will fix the Core Data default attribute problem that I have been unable to recreate in unit tests.
2011-10-09 21:24:09 -04:00
Blake Watters
69e560d59c Fix for leaking object mapping queue references. fixes #390 2011-10-05 23:26:05 -04:00
Blake Watters
6084225df6 Minor example project refresh
* Fixed invalid use of dateFormatStrings in Twitter examples
* Cleared some deprecation warnings
* Reapplied header search paths to fix Code Sense issues
2011-10-05 23:14:44 -04:00
Blake Watters
586034bae4 Add support for the use of nesting key attributes as the primaryKey in managed mappings.
This bug was causing duplication of objects in the store due to failed lookup of
existing objects. Added fix and test coverage for the use-case.
2011-10-05 10:50:52 -04:00
Blake Watters
a4d84aadf3 Use lastObject instead of objectAtIndex: to avoid exception during sanity check 2011-10-04 10:47:33 -04:00
Blake Watters
d94fcf665d Added sanity check that relationship mapping is not targeting a collection of collections. fixes #386
This can happen when using keyPaths to traverse an object graph and is hard to anticipate when
defining mappings. RestKit will now perform a sanity check before recursively performing
relationship object mapping operation and will log a warning if the relationship targets
a collection containing another collection. At the debug logging level, RestKit will log

The fix for such scenarios is to use KVC collection operators (such as @unionOfObjects,
@unionOfArrays, etc.) to flatten the collection out into a collection of dictionaries.
2011-10-01 11:52:51 -04:00
Blake Watters
2823d60ba7 Added new RKLog helpers for changing the log level during the execution of a block. Very helpful for debugging. closes #387 2011-10-01 11:10:24 -04:00
Blake Watters
da38149e44 Eliminated the use of @compatibility_alias to work around compiler issues reported on the mailing list 2011-09-29 10:10:35 -04:00
OpenThread
f894226908 Implemented full support for generation of cache keys on RKParams. fixes #272
* Builds on work started by @OpenFibers.
* Should eliminate all cache warnings.
* Added FileMD5Hash library for efficiently computing MD5 for files
* Extended RKParams to return composite MD5 for all attachments
* Implemented MD5 method on each RKParamsAttachment instance
* Updated RKRequest to utilize new MD5 sums and enabled cache keys for RKParams
2011-09-28 23:20:26 -04:00
Blake Watters
e86d9375bd Added test coverage and fixes for cases where the parser returns nil, but no error occurred. fixes #365 2011-09-28 09:43:35 -04:00
Blake Watters
fb4edfd57b Merge pull request #380 from SevInf/master
Download progress for RKRequest
2011-09-28 05:33:20 -07:00
Sergej Tatarincev
3983bd00f8 Added download progress 2011-09-28 12:23:28 +03:00
Blake Watters
2d281e60d3 Investigated issues surrounding inability to change HTTP AUTH credentials thoroughly. fixes #250, #237, #127
These issues has been open for some time. I have added thorough unit test coverage
for scenarios of mutating the HTTP AUTH credentials on the RKClient and on individual
RKRequest instances. Everything seems to work fine.

Also added RKAuthenticationExample to RKCatalog for testing. Needs to be updated with
support for using OAuth.
2011-09-27 23:59:06 -04:00
Greg Combs
a6364ed5db Merge pull request #375 from beinstein/patch-1
This removes an unnecessary UIKit header from the new authentication client code.
2011-09-27 07:52:32 -07:00
Blake Watters
6011faeda5 Fix naked NSLog that should be a RKLogDebug. fixes #376 2011-09-27 08:39:29 -04:00
Ben Einstein
06537b8d18 This causes OS X builds to fail (and isn't necessary anyway) 2011-09-27 01:15:43 -03:00
Blake Watters
19738ff61f Update outdated comments in the XML parser header 2011-09-26 20:05:22 -04:00
Blake Watters
30b08ba85b Added default parser registration for text/xml MIME Type. fixes #370 2011-09-23 09:49:54 -04:00
Blake Watters
4b06a4c55f Added serialization test case for relationships to JSON. 2011-09-22 22:00:51 -04:00
Blake Watters
fc2fafa703 Added test coverage for mapping NSNull to has many relationship. fixes #329 2011-09-21 21:53:42 -04:00
Blake Watters
4e7d6e674a Merge pull request #325 from allenwei/master
Can not update user's token if token changed at server side
2011-09-21 05:53:51 -07:00
Blake Watters
947cf378c7 Merge pull request #346 from ralfvdz/patch-1
Log the body when all data has been received.
2011-09-21 05:53:07 -07:00
Blake Watters
2f91e71c3a Merge pull request #356 from jobi/master
Allow specifying the bundle when seeding from a file
2011-09-21 05:52:24 -07:00
Blake Watters
0b5233916a Fixed bug where relationship connection was working off of source keyPath instead of destination (i.e. relationship name). fixes #357 2011-09-20 19:20:19 -04:00
Blake Watters
c493ec3cd5 Fix for missing rename on OAuth client 2011-09-20 19:04:43 -04:00
Johan Bilien
cee8f13c6c Add a way to specify the bundle from seeding from a file
[NSBundle mainBundle] doesn't work for logic tests, which don't have an
application bundle.
2011-09-20 16:01:14 -04:00
Blake Watters
eb887e38c6 Refactored OAuth support for merge into master. fixes #84, #211
Cleaned up @rodchile's excellent work integration OAuth 1.0 and 2.0 into RestKit. Changes
are as follows:

* Introduced new RKRequestAuthenticationType to replace the forceBasicAuthentication and other
    methods for influencing how authorization works.
* Moved TDOAuth code into Vendor/
* Renamed authorization code flow classes and delegate methods for clarity.
2011-09-20 15:52:17 -04:00
Blake Watters
144533cdd5 Renamed RKObjectDynamicMapping to RKDynamicObjectMapping to better mesh with Cocoa idioms. fixes #354
The old class name has been aliased for backwards compatibility.
2011-09-20 13:18:09 -04:00
Blake Watters
0c96aedc85 Fix use of reserved 'class' keyword that breaks import into Objective-C++. fixes #355
Added basic spec file that imports the public headers into an Objective-C++ source file.
2011-09-20 13:04:29 -04:00
Blake Watters
e535f3abf0 Removed unnecessary InflectionSupport 2011-09-20 12:36:39 -04:00