Commit Graph

2074 Commits

Author SHA1 Message Date
Blake Watters
f4bfdb389b Add support for the registration of HTTP request operation subclasses on the manager to support easy customization of request operation handling. refs #997 2012-10-16 11:25:00 -04:00
Blake Watters
d6c429e735 Add tests clarifying issue regarding relativePath vs. relativeString. closes #996 2012-10-15 23:22:27 -04:00
Blake Watters
64e9c7cb6d Add support for mapping attributes to deeply nested keyPaths on NSMutableDictionary. fixes #882 2012-10-15 22:00:14 -04:00
Blake Watters
845de91e80 Update RKMappingTest to support easier testing of RKEntityMapping objects by reducing the amount of required configuration to get a test configured. 2012-10-15 19:27:35 -04:00
Blake Watters
74624200da Fix inappropriate override of start method in RKMappingOperation. This should be main, as we are not concurrent 2012-10-15 18:41:45 -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
1ad2cabf2a Add decent description method for relationship connection operations 2012-10-15 15:57:38 -04:00
Blake Watters
b9e6751655 Update AFNetworking to 1.0 tag 2012-10-15 11:18:21 -04:00
Blake Watters
1811d5250d Ensure the fetch request blocks are given a relative URL if possible to make path matching easier 2012-10-14 16:03:12 -04:00
Blake Watters
4ee29df72f Ensure cancellation works with path patterns against baseURL's that include a path 2012-10-14 15:32:08 -04:00
Blake Watters
d823217993 Add assertions to prevent attempts to create request descriptor objects with inappropriate mappings. fixes #976 2012-10-14 14:57:02 -04:00
Blake Watters
1beb11ac1b Moving tests around 2012-10-14 13:51:39 -04:00
Blake Watters
f3ece00743 Rework path based response descriptor matching and expand test coverage. Eliminate path normalization. fixes #987 2012-10-14 13:51:39 -04:00
Blake Watters
4a7ed3cbd3 Rename test files to align with classes 2012-10-14 13:51:39 -04:00
Blake Watters
8a2a04022e Project file updates 2012-10-14 13:51:39 -04:00
Blake Watters
6d0286ec0b Drop RestKitResources target from project files 2012-10-14 13:51:39 -04:00
Blake Watters
3cc5ab9825 Fix inappropriate logging message regarding redirects 2012-10-14 13:51:38 -04:00
Blake Watters
8da0fd5f6a Bump AFNetworking submodule pointer 2012-10-12 15:44:19 -04:00
Blake Watters
9464be4eee Add note about installation of Testing and Search components to Cocoapods section 2012-10-10 09:49:58 -04:00
Blake Watters
c8a6c34372 Switch version to b1 since Cocoapods does not like -dev 2012-10-06 23:06:50 -04:00
Blake Watters
4ee3020b75 Update Podfile to change branch reference. refs #986 2012-10-06 22:58:39 -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
c522326a98 Remove SystemConfiguration import for RKObjectManager. fixes #985 2012-10-06 01:05:55 -04:00
Blake Watters
66f0c34b5d Add conditional compilation for System Configuration header to avoid build error if SystemConfiguration is not pulled. refs #985 2012-10-06 00:07:38 -04:00
Blake Watters
b4a993b17a Switch Cocoapods install instructions to point to the development branch 2012-10-05 23:50:40 -04:00
Blake Watters
79f2085c81 Merge branch 'feature/reboot-networking-layer' into development 2012-10-05 23:34:09 -04:00
Blake Watters
a4a788b889 Wrap requestWithMethod:path:parameters: instead of reimplementing it. closes #959 2012-10-05 23:26:21 -04:00
Blake Watters
9ab37a7617 Finish header docs for RKObjectManager 2012-10-05 23:12:27 -04:00
Blake Watters
b58c675e4c Update Podfile.lock version to 0.15.1 2012-10-05 21:56:35 -04:00
Blake Watters
e3bc2e6077 Update serialization tests broken sue to upstream URL encoding changes from AFNetworking 2012-10-05 21:53:52 -04:00
Blake Watters
f8bdeed777 Link CoreServices and SystemConfiguration with the OS X Framework tests 2012-10-05 21:50:25 -04:00
Blake Watters
2f0f5279c2 Reworking test environment imports when Kiwi has been imported to suppress warning 2012-10-05 21:49:45 -04:00
Blake Watters
1f8c47e2e8 Pull SystemConfiguration and CoreServices into the PCH to quiet warnings from AFNetworking 2012-10-05 21:48:45 -04:00
Blake Watters
224de85fb3 Respect rootKeyPath when returning empty dictionary in response to unmappable representation error 2012-10-05 21:48:19 -04:00
Blake Watters
0497c396d1 Fix TODO re: error propagation 2012-10-05 21:47:38 -04:00
Blake Watters
d6cd39fd1f Bump AFNetworking submodule 2012-10-05 19:23:47 -04:00
Blake Watters
dc57e585a9 Use OS_OBJECT_USE_OBJC to conditionally compile dispatch retain/release based on compatibility with ARC of target compiler 2012-10-05 19:22:56 -04:00
Blake Watters
564749c2b9 Document cache HTTP methods 2012-10-05 19:21:18 -04:00
Blake Watters
877ce255b5 Expand test coverage and fix situations where requests would unexpectedly initialize incorrectly without error
* RKObjectParameterization now returns an empty dictionary if mapping produces an unmappable representation error (no mappable attributes/relationships found)
* Log errors if request construction results in an NSError and return nil
* Ensure errors are passed back up through object parameterization instead of just returning nil
* Reset the serialization MIME Type registry during RKTestFactory set up to ensure it is in a sane state
* Convert Hamcrest matchers to Expecta in the object mapper tests to fix infinite recursion on test failure (will need to completely phase out Hamcrest soon)
2012-10-05 19:16:55 -04:00
Blake Watters
b9b34bf3dd FIx nasty problem with HTTP method being dropped from earlier headers cleanup 2012-10-05 16:54:30 -04:00
Blake Watters
ac05ea67b0 Switch from :head to 1.0 dependency on AFNetworking 2012-10-05 16:48:29 -04:00
Blake Watters
17f9a1af8b Normalize the path pattern instead of throwing an assertion 2012-10-05 16:29:25 -04:00
Blake Watters
635b6257d1 Expose default headers as a property and rework intiialization logic to respect the AFHTTPClient instance with which the object manager was initialized. Update docs to reflect the changes. Add tests for initialization code paths. 2012-10-05 14:24:32 -04:00
Blake Watters
0dc21fb95d Add caching helpers to the RKTestHelpers interface 2012-10-05 14:22:56 -04:00
Blake Watters
fb7f074b23 Use path normalization instead of prefix matching to solve issue with failure to match path patterns with trailing slashes. Expand tests 2012-10-05 13:46:52 -04:00
Blake Watters
61a0a05b29 Drop ISO8601DateFormatter dependency since it has a time zone handling bug and switch to RK specific fork. fixes #971
* ARCify the ISO8601DateFormatter
2012-10-04 23:00:01 -04:00
Blake Watters
4060441abb Fix issue with exact substring path patterns failing to match 2012-10-04 22:26:43 -04:00
Blake Watters
25e1f9ed4d Don't send parameterization of the object with DELETE request's either. Update docs to reflect this. refs #947 2012-10-04 19:25:32 -04:00
Blake Watters
af234936ee Don't send object parameters when performing a getObject: closes #947 2012-10-04 19:20:58 -04:00
Blake Watters
5b844653a3 Add another test for more complex parsing query string parsing scenario 2012-10-04 19:04:46 -04:00