Commit Graph

1376 Commits

Author SHA1 Message Date
Blake Watters
153c230751 Suppress logging of referential integrity errors if the objectID is temporary as it likely indicates the object is not accessible from the requested context 2012-11-06 15:19:13 -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
e85cf659c0 Improve Request Descriptor registration and lookup behaviors:
* Add assertion to object manager when you attempt to register an overlapping request descriptor
* Improve search algorithm to handle subclass matches
2012-11-05 23:10:57 -05:00
Blake Watters
7f7bef3e9f Remove superfluous baseURLString methods from RKTestFactory 2012-11-05 18:38:24 -05:00
Blake Watters
28c8262b0d Port commented out unit tests from 0.10.x to latest development sources to nail down issues with targetObject behaviors 2012-11-05 18:38:24 -05:00
Blake Watters
e7505df56c Fix retain cycles detected by Xcode 4.6 static analyzer 2012-11-05 18:38:23 -05:00
Blake Watters
d71a6a3482 Add LICENSE boilerplate 2012-11-05 18:38:23 -05:00
Blake Watters
45c6e1611e Add delegate for didFailToConnectRelationship: 2012-11-05 18:38:23 -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
Jeff Arena
2612604df3 Fix accept header issue with multipart requests. 2012-11-03 11:37:54 -04:00
Blake Watters
aec4f66c5c Expand documentation regarding potential for deadlock scenarios. refs #1018 2012-11-01 10:02:54 -04:00
Jeff Arena
2cf7d4651d Add assertion requiring an instance of NSManagedObject in RKRelationshipConnectionOperation. 2012-10-29 12:45:26 -04: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
7af8d0ac8b Change isEqual: checks for entity to isKindOfEntity: fixes #816 2012-10-29 01:28:17 -04:00
Blake Watters
6d487dbc9e Add support for excluding the SQLite store file from iCloud Backups to conform with the iOS Data Storage Guidelines. closes #929 2012-10-29 01:22:50 -04:00
Blake Watters
c44f4010fa Add support for specifying a configuration and customizing the options when adding a SQLite persistent store to the managed object store. closes #984 2012-10-29 00:32:56 -04:00
Blake Watters
94318d1cb2 Add support for returning fetched objects when a 304 'Not Modified' response is loaded. closes #1006 2012-10-28 21:44:42 -04:00
Blake Watters
5cab23b3af Fix autoreleasepool error under iOS 5.x. fixes #1008 2012-10-28 20:32:10 -04:00
Blake Watters
de016e22f3 Refetch the mapping results from the original managed object context before returning to the caller. fixes #1011
Eliminate the thread safe invocation class.
2012-10-28 20:22:53 -04:00
Blake Watters
f58c6fbea9 Normalize commenting style 2012-10-28 19:40:53 -04:00
Blake Watters
454eb2e8fa Correct usage of 'method' instead of 'function' in comment 2012-10-28 19:40:22 -04:00
Blake Watters
337d078942 nil out the mapping result in the event we have encountered an error 2012-10-28 19:39:14 -04:00
Blake Watters
d71893bf43 Remove errantly committed logging statement 2012-10-27 18:08:15 -04:00
Blake Watters
9fa32fb08c Formatting tweak 2012-10-27 17:48:00 -04:00
Blake Watters
e457aba0fa Fix issue with nil arguments to success/failure block introduced earlier today 2012-10-27 16:41:46 -04:00
Blake Watters
a3bef1699a Add missing assert message 2012-10-27 16:21:13 -04:00
Blake Watters
29fecfd8bc Drop GG prefix in examples in header 2012-10-27 16:20:55 -04:00
Blake Watters
d2dc222766 FIx inappropriate use of __block when we mean __weak 2012-10-27 10:25:14 -04:00
Blake Watters
a484af05f5 Update logger to display basic info about an input stream used to send a request instead of wrongly logging request.body=(null) 2012-10-25 13:18:01 -04:00
Blake Watters
9ef8be412e Update docs to include note about setHTTPOperationClass: 2012-10-25 10:07:14 -04:00
Jeff Arena
37ae82c695 Add additional default date formatter to handle rails dates. 2012-10-24 13:23:54 -04:00
Blake Watters
b4b8a45b08 Restore progress logging for synchronous indexing 2012-10-23 18:44:14 -04:00
Blake Watters
4a79ab6b68 Conditionalize log message regarding awaiting execution of connection operations and move to Trace logging level 2012-10-23 11:18:45 -04:00
Blake Watters
dccff97644 Add support for cancelling in progress indexing operations 2012-10-22 19:33:08 -04:00
Blake Watters
dfc27be911 Cancel response mapping operations during tear down 2012-10-22 19:31:30 -04:00
Blake Watters
f96fee87b6 Add a decent description method to the object request operations 2012-10-22 19:29:58 -04:00
Blake Watters
79c854b1bd Added assertion and cancellation hardening within the Search Indexer 2012-10-22 16:07:32 -04:00
Blake Watters
a267f5ac71 Drop extraneous space between class and object address in property description 2012-10-21 16:16:04 -04:00
Blake Watters
117fcbb18c Fix horrible bugs in previous commit 2012-10-21 15:58:03 -04:00
Blake Watters
f93a044561 Add error condition when attempting to map an RKEntityMapping containing connection mappings with a nil managed object cache.
* Add support for the data source to fail mapping operation with an error.
* Clean up error handling within RKMappingOperation
2012-10-21 15:47:16 -04:00
Blake Watters
ef46ff2d1d Add assertion that gives the developer a hint of how to fix an attempt to add an array of attribute mappings that already exist in another mapping 2012-10-20 17:43:49 -04:00
Christopher Swasey
3ca889fd28 Fix a bug in previous commit 2012-10-20 17:02:35 -04:00
Blake Watters
63c9a9e4a0 Fix bug in which relationship connection operations are not enqueued for RKMappingOperation instances whose mapping is an RKDynamicMapping 2012-10-20 16:53:14 -04:00
Jeff Arena
b3adc29535 Add support for connection mappings to the RKManagedObjectImporter. 2012-10-20 14:38:27 -04:00
Blake Watters
7bed7b6f03 Update stubbing routines for fetch requests to support copying of fetch request blocks that require parameters to construct a matching URL 2012-10-20 13:21:23 -04:00
Blake Watters
c7ce86e9ac Improve docs on success/failure blocks 2012-10-20 10:51:49 -04:00
Blake Watters
08110ca300 Implement support for cancellation and prioritization of response mapping operations using an operation queue global to all object request operations.
* Passes through cancellation from object request operation to HTTP request operation and response mapping operation. closes #993
* Performs all object mapping within an NSOperationQueue to enable constraining of mapping activities.
* Add default mapping queue with concurrency limit of 1 operation.
* Migrate deserialization of the response body into a serial dispatch queue to ensure that only one parse occurs at a time.
2012-10-20 00:13:48 -04:00
Blake Watters
0738f59231 Added assertion to trap very nasty Core Data mapping error in which existingObjectWithID:error: returns an object in another context, indicating that the object graph has been poisoned, most likely by obtaining a permanent managed object ID from the wrong context. 2012-10-19 17:53:09 -04:00