Commit Graph

24 Commits

Author SHA1 Message Date
Blake Watters
28c8262b0d Port commented out unit tests from 0.10.x to latest development sources to nail down issues with targetObject behaviors 2012-11-05 18:38:24 -05:00
Blake Watters
4a79ab6b68 Conditionalize log message regarding awaiting execution of connection operations and move to Trace logging level 2012-10-23 11:18:45 -04:00
Blake Watters
08110ca300 Implement support for cancellation and prioritization of response mapping operations using an operation queue global to all object request operations.
* Passes through cancellation from object request operation to HTTP request operation and response mapping operation. closes #993
* Performs all object mapping within an NSOperationQueue to enable constraining of mapping activities.
* Add default mapping queue with concurrency limit of 1 operation.
* Migrate deserialization of the response body into a serial dispatch queue to ensure that only one parse occurs at a time.
2012-10-20 00:13:48 -04:00
Blake Watters
0738f59231 Added assertion to trap very nasty Core Data mapping error in which existingObjectWithID:error: returns an object in another context, indicating that the object graph has been poisoned, most likely by obtaining a permanent managed object ID from the wrong context. 2012-10-19 17:53:09 -04:00
Blake Watters
342c57213b Updates to relationship connection execution system for better encapsulation and reuse.
* Reworked execution of relationship connection operations to use dependencies instead of queue suspension.
* Migrates responsibility for connecting relationships from `RKManagedObjectRequestOperation` into `RKManagedObjectResponseMapperOperation`. This ensures that you get a mapped and connected object graph back from the response mapper if you are using it outside of a request operation.
* Add `parentOperation` to managed object mapping data source to establish dependencies.
2012-10-15 16:06:22 -04:00
Blake Watters
8ae402e297 Add test coverage and fixed invalid error reporting when processing a client error that is empty and unmappable (i.e. {}). refs #983, closes #978 2012-10-06 01:54:12 -04:00
Blake Watters
cf5ef24fe9 Eliminate use of associated objects on NSURL in favor of a smarter RKResponseDescriptor class to solve the relative URL problem. refs #966
Instead, fall back to treating all URL's as strings for matching purposes and manually performing relative URL testing. Adds `matchesURL:` and `matchesResponse:` methods to `RKResponseDescriptor`.
2012-10-04 14:11:05 -04:00
Jeff Arena
5b372f4cea Fix issues with passing NSErrors into blocks inappropriately. 2012-10-02 12:54:32 -04:00
Blake Watters
8c34f0996b Enable the response mapper to read the objectID from the targetObject if the target object ID is nil. 2012-09-30 19:30:35 -04:00
Blake Watters
e591547d90 Cleanup RKPathMatcher initializers to start with pathMatcher so they are easier to guess for auto-complete. 2012-09-27 22:31:48 -04:00
Blake Watters
f5511c972e Improve method naming 2012-09-27 20:14:15 -04:00
Arne Harren
bc7c65f03b Switch to an embedded variant of LibComponentLogging with prefix RK 2012-09-27 21:47:36 +02:00
Blake Watters
458354484a Fix null dereference static analyzer warnings 2012-09-27 11:47:30 -04:00
Blake Watters
8b256ab418 Fix baseURL associated objects 2012-09-26 23:38:20 -04:00
Blake Watters
ee9ae20823 Add associated object from request URL to baseURL in order to workaround issues with NSURLRequest clobbering the baseURL 2012-09-26 22:46:32 -04:00
Blake Watters
6815ba6444 API refresh for mapping layer. Converted RKObjectMapper to RKMapperOperation. Expanded documentation. 2012-09-21 17:55:32 -04:00
Blake Watters
c88855614e Export the RKErrorFromMappingResult function; eliminate dependence on RestKit.h header from RKResponseMapperOperation 2012-09-20 11:51:28 -04:00
Blake Watters
04abcb8369 Define errorMessage as an informal protocol for returning error message representations rather than the description method. Document RKErrorMessage. 2012-09-20 08:12:30 -04:00
Blake Watters
3876263039 Document and clean up the RKMappingResult interface 2012-09-20 08:12:29 -04:00
Blake Watters
194ee16a8e Docs for RKResponseMapperOperation 2012-09-12 23:35:30 -04:00
Blake Watters
b40e39813c License boilerplate 2012-09-12 21:18:45 -04:00
Blake Watters
8f1e3012f8 Add parameter assertions when initializing an RKResponseMapperOperation 2012-09-09 18:23:32 -04:00
Blake Watters
10377d0a70 Overhaul RKParser API's for clarity and simplicity:
* Adds support for NSJSONSerialization. closes #476
* Renames RKParser to RKSerialization
* Renames RKParserRegistry to RKMIMETypeSerialization
* Rework serialization implementations API's to use class methods
* Fold together string and regular expression matching for MIME Type registrations
* Port serialization implementations to working off of NSData instead of NSString. refs #762
* Migrate JSONKit to being an optional component. See https://github.com/RestKit/RKJSONKitSerialization
2012-09-04 13:07:31 -04:00
Blake Watters
3eda5832cb Migrating files between modules to better reflect logical grouping with AFNetworking in the mix 2012-09-03 16:51:13 -04:00