Commit Graph

364 Commits

Author SHA1 Message Date
Blake Watters
330e63a2d2 Add test coverage for default value of savesToPersistentStore attributes. closes #1000 2012-10-17 17:49:08 -04:00
Blake Watters
9d617c6c7b Add support for disconnecting relationships when mapping a related keypath whose value is equal to [NSNull null]. fixes #862 2012-10-16 20:48:27 -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
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
4a7ed3cbd3 Rename test files to align with classes 2012-10-14 13:51: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
f8bdeed777 Link CoreServices and SystemConfiguration with the OS X Framework tests 2012-10-05 21:50:25 -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
0dc21fb95d Add caching helpers to the RKTestHelpers interface 2012-10-05 14:22:56 -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
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
73cd7a6705 Eliminated vendored copies of testing libraries in favor of Cocoapods. Add Kiwi to testing stack 2012-10-04 10:54:46 -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
e1bf7e26a3 Remove RestKitResources target and references to UI assets that migrated to the table controller repository 2012-10-02 22:13:15 -04:00
Blake Watters
bacb6e8ba4 Remove RKTestResponseLoader 2012-10-02 22:10:36 -04:00
Blake Watters
c88627faf3 Enable missing newline warning 2012-10-02 10:47:16 -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
03439f2464 Fix test breakage from changes around shared factory objects 2012-09-29 17:54:52 -04:00
Blake Watters
adc1d178fa Add cancellation API to RKObjectManager.
* Introduces `cancelAllObjectRequestOperationsWithMethod:pathPattern:`
* Make RKObjectRequestOperation cancel underlying request operation when cancelled
2012-09-27 22:33:19 -04:00
Arne Harren
bc7c65f03b Switch to an embedded variant of LibComponentLogging with prefix RK 2012-09-27 21:47:36 +02:00
Arne Harren
e101fa757e Remove unused LibComponentLogging-NSLog configuration file 2012-09-27 21:09:27 +02:00
Blake Watters
d195ea873c Port passing Logic Test coverage to ARC 2012-09-26 11:35:16 -04:00
Blake Watters
39f78d2cac Fix build errors, warnings, and breakage on OS X 2012-09-25 21:28:58 -04:00
Blake Watters
fee0c0dac0 Fix all remaining broken tests 2012-09-25 21:18:39 -04:00
Blake Watters
d214626c83 Port RKObjectSerializer tests to RKObjectParameterization 2012-09-25 17:13:04 -04:00
Blake Watters
2b0dc3d5c4 Fix more tests 2012-09-24 23:42:16 -04:00
Blake Watters
235f5fc579 Fix all build errors in unit tests. Restore execution of core mapping tests. 2012-09-24 22:44:20 -04:00
Blake Watters
43be066e0b Docs touch ups 2012-09-21 22:58:17 -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
1d1424da73 Updates to ensure AFNetworking builds with reachability from static library target 2012-09-20 08:12:29 -04:00
Jawwad Ahmad
261cafe18a Fix RKDictionaryByReverseMergingDictionaryWithDictionary method and add unit tests. Refs #938. 2012-09-18 15:24:50 -04:00
Blake Watters
742cc2aca9 Merge pull request #931 from diederich/fix/includes
3 minor cleanup commits regarding includes / headers
2012-09-16 10:45:33 -07:00
Blake Watters
2ef7439567 Update to AFNetworking 1.0RC2 2012-09-16 13:42:44 -04:00
Stephan Diederich
759b4cec4e use Xcode's default archs
* fixes missing armv7s error
* a bit more future proof
2012-09-14 16:14:16 +02:00
Stephan Diederich
6932fcf4d3 make pch a project-only header 2012-09-14 14:41:58 +02:00
Stephan Diederich
edff0b8699 remove libxml2 include path from project
not sure why it was added, but it should
work without it.
2012-09-14 14:41:50 +02:00
Blake Watters
8b91650917 Register the URL Encoded Serialization 2012-09-11 17:15:34 -04:00
Blake Watters
d2417e5263 Rename to RKURLEncodedSerialization for consistency 2012-09-11 17:05:07 -04:00
Blake Watters
709c3d324b Drop category methods in favor of C functions for required functionality to reduce API size and avoids namespace conflicts 2012-09-11 16:48:18 -04:00
Blake Watters
7c6a4c33d4 Eliminate NSURL+RKAdditions from main codebase 2012-09-11 11:39:46 -04:00
Stephan Diederich
25bb1f2d9e set public headers to 'Public' 2012-09-09 19:51:25 +02:00
Stephan Diederich
1a0d94ea9d added a few more groups to xcodeproject
+ minor file reorder in xcode project
2012-09-09 19:51:16 +02:00
Blake Watters
22a68baf0c Rework podspec to organize header file imports to match existing RestKit releases 2012-09-05 11:04:42 -04:00
Blake Watters
b1a2677937 Eliminate NSData and NSArray additions categories. Kill date formatter wrapper class 2012-09-04 21:43:37 -04:00
Blake Watters
bd7b084fc0 Move RKMIMETypeSerialization to Support module 2012-09-04 13:27:42 -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
a74b8717dc Pulling out RKURL in favor of vanilla NSURL 2012-09-03 17:07:09 -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
Blake Watters
e67848439c Migrate to NSData based parsing/serialization. Slim down RKObjectSerializer and rename to RKObjectParameters. refs #762 2012-09-03 16:23:22 -04:00