Commit Graph

226 Commits

Author SHA1 Message Date
Blake Watters
8ff6f62297 Add assertions to RKMIMETypeSerialization and RKTestFixture 2013-03-14 11:49:50 -04:00
Blake Watters
34b8a30b06 Improve RKPathMatcher so that it only evaluates a path match positively if the number of slashes in the source string matches the number of slashes in the pattern. closes #1212, closes #1192 2013-03-10 16:37:35 -04:00
Yannick Reifschneider
7f5b0fec97 Unescape URL metadata mapping parameters if route required parameter escaping 2013-03-07 21:17:51 -05:00
Blake Watters
a9ef1fe39d Introduce a new heuristic based approach for determining if a response can skip the mapping process. Also introduces a new Network + CoreData logging component and reduces the chattiness of the debug logging level for Core Data Network events. 2013-03-07 19:25:14 -05:00
Blake Watters
2e5668012c Fix implicit conversion warning in RKDotNetDateFormatter. closes #1198 2013-01-29 09:31:22 -05:00
Blake Watters
0364d6c67b Integrate support for metadata mapping routing data. refs #1174 2013-01-24 23:16:48 -05:00
Blake Watters
4c39918fdb Implement support for flexible metdata mapping. closes #582, #688
* Metadata mapping is implemented via an `NSProxy` object that stands in for the `sourceObject` of each `RKMappingOperation`
* Key paths that are prefixed with `@metadata.` are mapped against the `metadata` dictionary of the operation, else they hit the `sourceObject`.
* Metadata is implemented by merging a dictionary of data in from `RKObjectRequestOperation`, through to `RKResponseMapperOperation`, into `RKMapperOperation`, and all the way down into the `RKMappingOperation`, where it is available to each object. By convention, metdata is namespaced into subdictionaries.
2013-01-24 16:31:19 -05:00
Blake Watters
9005bd573c Add test coverage and fixes for RKMappingTest. closes #1086 2013-01-03 18:19:50 -05:00
Blake Watters
12938622a8 Another subscripted access stragler 2012-12-26 19:30:22 -05:00
Blake Watters
379269010f Fix additional usage of subscript access in dictionary merge routine 2012-12-26 19:18:59 -05:00
Blake Watters
b78deb3eed Use instancetype in constructors for increased subclassing friendliness 2012-12-22 14:54:49 -05:00
Blake Watters
953431a71a Clean up registration of the bundled MIME Type implementations. refs #1097 2012-12-20 19:01:49 -05:00
Blake Watters
8dc54a89b2 Major overhaul to the Core Data managed object identification and relationship connection support.
* Replaces primary key with `RKEntityIdentifier`
* Add support for use of compound keys for object identification
* Refactor `RKConnectionMapping` to `RKConnectionDescription` and add support for connecting with multiple attributes
* Clarify naming of representation key methods to better match naming conventions
* Add type transformation support for object identification
* Greatly expand test coverage for object identification
* Drop the `NSEntityDescription` category
* Simplify the `RKManagedObjectCaching` protocol
* Add compound key support to the Fetch Request and In Memory Cache implementations
* Replace Kiwi with Specta for tests where contexts are helpful for organization
* Rename `defaultValueForMissingAttribute` to `defaultValueForAttribute`
2012-11-27 10:29:36 -05:00
Blake Watters
91c61640fa Remove invalid references to RKParser 2012-11-13 12:32:49 -05:00
Blake Watters
5b554556ce Use constants instead of strings for referencing validation keys 2012-11-08 19:31:38 -05:00
Blake Watters
a535ff17be Docs touch up 2012-11-06 18:52:34 -05:00
Blake Watters
827945cfb3 Eliminate the explicit RKLogInitialize() method entirely in favor of the implicit RKLogInitializer class 2012-11-06 12:56:28 -05:00
Blake Watters
0ea4b10d1c Add private initializer class to ensure logging defaults are configured at load 2012-11-06 12:46:57 -05:00
Blake Watters
5479103169 Remove invalid param Appledoc statement 2012-11-05 18:38:23 -05:00
Blake Watters
0ead6122d8 Remove the double asterisks adding comments to Appledoc HTML content 2012-11-05 18:38:23 -05:00
Blake Watters
7fba450311 Fix crash under iOS 5.0.x due to attempt to use unavailable NSURLIsExcludedFromBackupKey symbol. fixes #1015 2012-10-29 10:47:13 -04:00
Blake Watters
f58c6fbea9 Normalize commenting style 2012-10-28 19:40:53 -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
1f8c47e2e8 Pull SystemConfiguration and CoreServices into the PCH to quiet warnings from AFNetworking 2012-10-05 21:48:45 -04:00
Blake Watters
17f9a1af8b Normalize the path pattern instead of throwing an assertion 2012-10-05 16:29:25 -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
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
dc06c890a4 Find/replace renamed pathMatcher method signatures. closes #968 2012-10-02 13:57: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
Blake Watters
0a1655117a Minor formatting touch ups 2012-09-28 14:59:57 -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
8a449a0fd4 Remove dead logging components 2012-09-27 20:16:20 -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
81f1a77906 Remove unnecessary imports for lcl.h and RKLog.h 2012-09-27 21:08:41 +02:00
Blake Watters
fee0c0dac0 Fix all remaining broken tests 2012-09-25 21:18:39 -04:00
Blake Watters
62dc44ea9a Fix RKPathMatcher tests 2012-09-25 17:27:58 -04:00
Blake Watters
288f26a5f5 Fix bug with incorrect MIME Type matching logic 2012-09-25 12:22:22 -04:00
Blake Watters
2b0dc3d5c4 Fix more tests 2012-09-24 23:42:16 -04:00
Blake Watters
b0be4596da Formatting cleanups 2012-09-24 13:37:54 -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
bd4130a546 Eliminate aggregate import of RestKit.h from .NET date formatter and test factory 2012-09-20 11:59:02 -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
92a4642df0 Sort lcl_config_components.h log level configuration. 2012-09-19 15:27:01 -04:00
Blake Watters
24dc57b0bd Add percent escape utility method 2012-09-18 15:54:36 -04:00
Blake Watters
32531bd993 Formatting tweaks 2012-09-18 15:54:36 -04:00
Jawwad Ahmad
e6e515d0c7 Use the return value of the merged dict for the params. Closes #938. 2012-09-18 15:52:54 -04:00
Jawwad Ahmad
4f1fdf2bea Refactor RKDictionaryByMergingDictionaryWithDictionary to cleanup & clarify code. Refs #938. 2012-09-18 15:35:03 -04:00
Jawwad Ahmad
bfbc345ee8 Rename RKDictionaryByReverseMergingDictionaryWithDictionary -> RKDictionaryByMergingDictionaryWithDictionary, since a reverse merge would imply that values in the 1st dictionary take priority whereas we want values in the 2nd dict to overwrite values in the 1st. Refs #938. 2012-09-18 15:24:50 -04:00