Commit Graph

1286 Commits

Author SHA1 Message Date
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
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
a85e209d54 Fix crash when identical keys appear in a URL encoded string that is decoded into a dictionary. Add test coverage 2012-10-04 18:31:51 -04:00
Blake Watters
82ff81222a Docs touch ups 2012-10-04 18:31:10 -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
Blake Watters
30c936f8e7 Add missing observer tear down during search indexer dealloc 2012-10-03 14:55:13 -04:00
Blake Watters
a10df02bf9 Add RKTestHelpers class containing helpful methods when working with object managers in unit and integration tests 2012-10-02 22:55:17 -04:00
Blake Watters
bacb6e8ba4 Remove RKTestResponseLoader 2012-10-02 22:10:36 -04:00
Blake Watters
174372dcf5 Fix a number of warnings about potential dereference of null pointer 2012-10-02 15:52:45 -04:00
Blake Watters
b41e56607a Migrate warning to the bottom of the document to clean up HTML formatting 2012-10-02 14:38:59 -04:00
Blake Watters
dc06c890a4 Find/replace renamed pathMatcher method signatures. closes #968 2012-10-02 13:57:35 -04:00
Jeff Arena
5b372f4cea Fix issues with passing NSErrors into blocks inappropriately. 2012-10-02 12:54:32 -04:00
Blake Watters
f467fa20b1 Merge pull request #965 from dmishe/doc_fixes
Doc fixes
2012-10-02 09:25:07 -07:00
Jeff Arena
fc36d69475 Fix error with local delete of managed object after performing a successful DELETE operation. 2012-10-02 11:00:20 -04:00
Blake Watters
2b7eca1fb4 Default savesToPersistentStore to YES 2012-10-01 23:11:03 -04:00
Blake Watters
d6cd6d7bba Add configuration for controlling persistent to the parent context or the persistent store 2012-10-01 22:41:08 -04:00
Blake Watters
d70b0ed3dd Update method signature in Search README.md 2012-10-01 22:10:18 -04:00
Dmitry Shevchenko
12c04fc59c Clarified that bug was fixed in ios6 2012-10-01 21:06:23 -05:00
Dmitry Shevchenko
2310b5111d Fixed a typo 2012-10-01 21:06:13 -05:00
Blake Watters
7924520be2 Guard against outputting non-sense when operation queue count is zero 2012-10-01 18:03:08 -04:00
Blake Watters
4e751f4530 Merge pull request #963 from dmishe/make_entity_property_readwrite
Make entity property readwrite
2012-10-01 14:49:12 -07:00
Dmitry Shevchenko
a41f69ee5e Fixed RKObjectMapping copying 2012-10-01 16:47:17 -05:00
Dmitry Shevchenko
628f7323aa Make entity property readwrite, so it can be changed after init. 2012-10-01 16:47:04 -05:00
Blake Watters
3fc5a75a3a Tear down the search indexing environment as part of RKTestFactory tear down 2012-10-01 17:38:07 -04:00
Blake Watters
73bd1f0869 Add support for asynchrous search indexing, cancellation of indexing operations, waiting on indexing to complete. Expand documentation surrounding the indexing context. 2012-10-01 17:37:36 -04:00
Blake Watters
235cfc2826 Remove dead whitespace 2012-10-01 17:35:35 -04:00
Blake Watters
991a6fd733 Add cancellation of all oeprations during test factory tear down 2012-10-01 11:53:28 -04:00
Blake Watters
67e6982cec Fix invalid references to RKManagedObjectMapping. closes #957 2012-09-30 23:17:27 -04:00
Blake Watters
ebb7b8df50 Add a note about the use of an indexing context to the README.md 2012-09-30 22:47:59 -04:00
Blake Watters
c10321751c Rename primaryManagedObjectContext to persistentStoreManagedObjectContext since nobody can keep its role straight 2012-09-30 22:47:26 -04:00
Blake Watters
5cae20aabc Add note about route types during batch operation creation 2012-09-30 19:53:24 -04:00
Blake Watters
2280674f5a Touch up docs for batched object request operations 2012-09-30 19:30:35 -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
Jawwad Ahmad
27dd271938 Modify lcl_config_logger_RK.h to use LCLNSLogger_RK.h instead of LCLNSLog_RK.h when RKLOG_USE_NSLOGGER is defined. 2012-09-30 18:01:32 -04:00
Jeff Arena
c301060ab8 Add APIs to RKObjectManager for use in firing batches of operations. 2012-09-30 13:43:12 -04:00
Blake Watters
d95fe5cd44 Break out reused functions for object mapping introspection into RKObjectUtilities 2012-09-30 12:49:59 -04:00
Blake Watters
1c6564f823 Expand the capabilities of the RKMappingTest and RKMappingTestExpectation classes to support the Kiwi matchers.
* Enable evaluation blocks to return an NSError describing the failure
* Align all RKAttributeMapping references to RKPropertyMapping
* Cleanup docs
* Add `RKMappingTestExpectationTestCondition` macro for succinctly implementing mapping test evaluation blocks
* Clean up descriptions for better output from Kiwi
2012-09-29 17:54:52 -04:00
Blake Watters
4230c63f80 Add support for shared factory object instances 2012-09-29 17:54:52 -04:00
Blake Watters
4c401de6bf Convert RKConnectionMapping into a subclass of RKPropertyMapping. Add delegate callback for tracking the connection of relationships. 2012-09-29 17:54:51 -04:00
Blake Watters
0539aeb45e Documentation formatting and touch ups 2012-09-29 17:54:51 -04:00
Jeff Arena
3c1a623032 Remove unnecessary header per code review feedback 2012-09-29 16:09:33 -04:00
Jeff Arena
9cd78c2385 Adjust search indexing to use a new indexingContext 2012-09-29 15:20:48 -04:00