Commit Graph

2259 Commits

Author SHA1 Message Date
Blake Watters
aecc1db352 Add support, tests, and documentation for the deletion of External Storage directory when an instance of RKManagedObjectStore is reset. closes #677 2012-12-25 14:50:13 -05:00
Blake Watters
285b75ea2a Eliminate connection matchers in favor of source and destination predicates. closes #1105 2012-12-24 18:29:00 -05:00
Blake Watters
ea304c5ec4 Update test to run against local test server instead of restkit.org 2012-12-24 18:00:20 -05:00
Blake Watters
78e55c90a2 Merge branch 'feature/1105-connection-matchers' of github.com:cfis/RestKit into cfis-feature/1105-connection-matchers 2012-12-24 17:58:24 -05:00
Blake Watters
b3899ac191 Add support for mapping a relationship directly from the parent object representation, rather than at a nested key path. closes #859
* Update documentation in RKRelationshipMapping.h
2012-12-24 16:18:39 -05:00
Charlie Savage
a67bb48ece Reimplement connection matchers and add test case. 2012-12-23 21:58:59 -07:00
Blake Watters
bc719087ac Intelligently set the targetObject by exploring the mapping graph in appropriateObjectRequestOperationWithObject: to better support cases in which you POST/PUT one object, but map back another. fixes #1081 2012-12-23 00:26:33 -05:00
Blake Watters
0a033596da Relax the use of use an the informal procotol for the errorMessage property in favor of the description method. closes #1104, closes #1087, closes #1095
* Change contract to the use the `description` method instead of `errorMessage`. This makes it work with any class out of the box
* Add import for RKErrorMessage to the Support.h header so it is immediately available
* Fix incorrect keyPath in the README.md
* Add additional notes about how the errors are constructed to the README
2012-12-22 19:03:30 -05:00
Blake Watters
7984d4f2ac Reimplement inverseMapping so that it no longer sucks. fixes #864, #1058
* Inversing non intelligently walks the mapping graph, ensuring that cyclic graphs are resolved properly
* Copy all attributes from the parent to the inverse mapping (date formatters, etc)
2012-12-22 16:36:55 -05:00
Blake Watters
b78deb3eed Use instancetype in constructors for increased subclassing friendliness 2012-12-22 14:54:49 -05:00
Blake Watters
929cd44bd7 Undo previous paginator change. Instead, pass a reference to the operation queue from the RKObjectManager to any Paginator objects constructed through the manager. refs #1076 2012-12-21 16:00:43 -05:00
Blake Watters
0f02687224 Fixing broken links on the README and preparing pages for docs refresh 2012-12-21 15:49:25 -05:00
Blake Watters
913b8a1b9e Initialize RKPaginator with an operation queue. This avoids deadlocks when working with RKManagedObjectRequestOperation instances bound to the main thread. This is a workaround to deal with object request operations being non-concurrent and executing in the calling thread context. refs #1076 2012-12-21 14:11:05 -05:00
Blake Watters
0fc1cbe271 Add explicit configuration instructions for Core Data to the README.md. refs #1101 2012-12-21 13:29:18 -05:00
Jeff Arena
dc16dc7e8f Change to future date test spec 2012-12-21 11:03:45 -05:00
Blake Watters
0cc9ce671e Improve the error messages for failure to match any key paths in the mapper 2012-12-20 22:16:42 -05:00
William Barksdale
e748238a5b More explicit installation directions
Made explicit some instructions that required prior understanding of cocoapods in order to understand.
2012-12-20 21:31:25 -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
fccfd7724f Add truncation example code to the resetPersistentStores block 2012-12-20 18:59:14 -05:00
Blake Watters
ef038aed73 Add a unit test for concurrent mapping of managed object request operations targetting the same unique Core Data objects. closes #1079 2012-12-19 23:02:52 -05:00
Blake Watters
408072f733 Add support and tests for inferring entity identifiers from superentity user info. closes #954 2012-12-19 22:21:09 -05:00
Blake Watters
0a28ecb507 Add optional support for connecting to subentities. fixes #1059 2012-12-19 18:32:32 -05:00
Jeff Arena
5258328a39 Future date test 2012-12-19 18:30:24 -05:00
Jeff Arena
43cab3dc6c Add test case for mapping a future date string 2012-12-19 17:06:01 -05:00
Blake Watters
939f45bf64 Add note about escaping path patterns to the main RKObjectManager.h header docs. refs #1091 2012-12-19 15:51:38 -05:00
Blake Watters
477d04b9a9 Add support for logging the elapsed time. Guard against attempts to log non-HTTP request operations. 2012-12-19 13:35:28 -05:00
Blake Watters
862e84a515 Hook the RKManagedObjectMappingOperationDataSource into the Managed Object Context save lifecycle to avoid the creation of duplicate objects during sequential mapping operations 2012-12-18 22:00:44 -05:00
Blake Watters
97b60e64b1 Set AFNetworking headers to Public for OS X Framework target 2012-12-17 22:08:39 -05:00
Blake Watters
9f228e0280 Expand test coverage on managed object deletion cases and fix bugs. closes #358 2012-12-16 20:45:01 -05:00
Blake Watters
b6a94de68a Remove extraneous assert on deletion case 2012-12-16 13:02:18 -05:00
Blake Watters
0bfebc1d7c Bump VERSION to pre5 for development 2012-12-15 17:18:23 -05:00
Blake Watters
122eba82b4 Merge branch 'release/0.20.0-pre4' into development 2012-12-15 17:17:54 -05:00
Blake Watters
753d7961ac Set version identifier in Podspec instead of :branch 2012-12-15 17:09:21 -05:00
Blake Watters
d3609e3cec Fix typo in Podfile 2012-12-15 17:05:34 -05:00
Blake Watters
e1adb8134c Add OS X platform install note to CocoaPod 2012-12-15 13:14:55 -05:00
Blake Watters
e4b7c2bd91 Set explicit deployment targets for RKSearchExample and RKMacOSX. refs #1077 2012-12-14 18:22:52 -05:00
Blake Watters
6299b22cc4 Fix breakage in Twitter example running under iOS 5.x. fixes #1077 2012-12-14 18:22:28 -05:00
Blake Watters
5f589bab2f Set deployment target to iOS 5. refs #1077 2012-12-14 13:14:21 -05:00
Blake Watters
8405ce5a04 Set deployment target to 6.0 for RKTwitterCoreData 2012-12-14 08:04:30 -05:00
Blake Watters
c75a05a754 Fix usage of subscript access in RKHTTPRequestOperation.m refs #1077 2012-12-14 07:55:06 -05:00
Blake Watters
a424908242 Expand test coverage and fix all known issues with managed object refetching and deletion. closes #1066 2012-12-13 22:42:34 -05:00
Blake Watters
406504ff2e Skip orphaned object deletion if the 304 optimization is in effect. Update log messages during orphaned object cleanup 2012-12-13 19:00:01 -05:00
Blake Watters
a9a1c3dc48 Don't crash when encountering nil in the mapping results dictionary 2012-12-13 18:12:50 -05:00
Blake Watters
abd07043f3 Output a string representation of the HTTP status code in the HTTP operation log. Add RKStringFromStatusCode convenience method to the HTTP utilities 2012-12-13 17:52:51 -05:00
Blake Watters
280fd5d571 Fix crashes during refetch if objects were deleted. Expand managed object deletion support to handle nested objects. refs #1066 2012-12-13 17:35:39 -05:00
Blake Watters
1289e769ac Add some organization to the RKMappingOperationDelegate headers 2012-12-13 16:03:45 -05:00
Blake Watters
0e5a7b836d Fix references to private Git repos in Podfile 2012-12-12 21:49:21 -05:00
Blake Watters
a471bdd8a3 Add support for refetching NSManagedObject instances mapped at any point in the object graph. refs #1066 2012-12-12 20:47:14 -05:00
Blake Watters
69c65ef8ab Override error implementation to correct the NSLocalizedDescription key for RKHTTPRequestOperation objects. fixes #1070 2012-12-11 23:12:20 -05:00
Blake Watters
138bbddfcd Switch the default date formatter to ISO-8601. closes #1069, refs #1010 2012-12-11 21:51:53 -05:00