Commit Graph

732 Commits

Author SHA1 Message Date
Blake Watters
93d84bc463 Added comments about cache 2011-06-29 13:42:19 -04:00
Blake Watters
2a8ece97c1 Improvements to reachability, the request queue, logging throughout the network layer, decoupling of components via notifications, reliability improvements for unit tests in the cache layer. Improved thread-local cleanup routines inside the managed object store. Changing base URL's is now more reliable. fixes #171, #158, #113, #104, #102 2011-06-29 13:28:14 -04:00
Blake Watters
537a9d2fd1 Removed NSAssert and added logging about cases in which there is no error object or a collection is coerced into a single result. closes #159 2011-06-28 19:41:30 -04:00
Blake Watters
8fe8e5cc75 Rework queue iteration to use a while loop and maintain a count of dequeued requests to ensure finite iteration. refs #164 2011-06-28 19:20:17 -04:00
Blake Watters
1cfa273224 Added new logging to the RKRequestQueue for inspecting what is happening. Eliminated use of copy during iteration of the request queue to avoid issues with re-entrant invocations of the queue resulting in the queue becoming starved. Fixed a number of flaky tests by making the RKSpec helpers stub out network availability. closes #164 2011-06-28 18:18:49 -04:00
Blake Watters
b9ceef340e Merge branch 'master' of github.com:twotoasters/RestKit 2011-06-28 15:31:55 -04:00
Blake Watters
3dfbaf1810 Updated to support setting default value instead of nil when an attribute is missing in the payload. For Core Data backed models, we consult the entity definition to obtain the default value. closes #117 2011-06-28 15:22:04 -04:00
Blake Watters
d72ed28000 Merge pull request #176 from hotwoofy/master
Use MIMEType as parser registry key, not content type
2011-06-28 11:42:40 -07:00
Blake Watters
851df3bcba Changed signature of willMapData: to allow you to completely replace the mappableData. 2011-06-28 11:46:03 -04:00
Thom Lawrence
c982cac037 Retrieve parsers using MIME type, not content type. 2011-06-28 15:58:14 +01:00
Blake Watters
0949337749 Allow modification of the data in objectLoader:willMapData: by creating a mutable copy of the parsed data if the delegate method is implemented. 2011-06-27 16:37:55 -04:00
Blake Watters
e4320f7ea9 Added error reporting when RKManagedObjectLoader fails to save the object context. This was silently masking validation failures post-mapping. 2011-06-24 15:59:40 -04:00
Blake Watters
5dff3088e2 Added trace logging for Response body 2011-06-24 10:23:54 -04:00
Blake Watters
6f0b0b38f8 Broke out logging for requests into meaningfully differentiated Debug and Trace messages. 2011-06-24 10:13:59 -04:00
Blake Watters
4773542a9e Fix breakage in Core Data 2011-06-23 09:21:54 -04:00
Blake Watters
0ca4a0feea Added unit tests to loaders to investigate loading an array bug reports 2011-06-23 08:49:20 -04:00
Blake Watters
64db97ce60 Helper methods for retrieving attribute and relationship mappings by attribute/relationship keyPath. Useful for customizing serialization mappings that were built using inverseMapping. 2011-06-22 10:43:42 -04:00
Blake Watters
8ad1a84281 Reworked object loader to check if a response is mappable even if it is an error. We had an assertion failure that could be triggered by trying to load a remote error payload in a non-mappable format (i.e. text/html). 2011-06-21 13:27:15 -04:00
Blake Watters
903ab19eae Ensure that logging is configured on first invocation of RKLogConfigureByName. This
allows you to initialize the log level before you have configured any other part of the
framework.
2011-06-21 13:26:06 -04:00
Blake Watters
2a23531379 Merge branch 'master' of github.com:twotoasters/RestKit 2011-06-21 10:14:27 -04:00
Blake Watters
1ab61ad735 Check for nil target object ID before performing deletion. Log info about the process. 2011-06-21 10:13:34 -04:00
Blake Watters
58de93895c Merge pull request #160 from kitsched/patch-1
replaced deprecated methods with the current ones
2011-06-21 06:58:51 -07:00
Janos Rusiczki
52666d6147 replaced deprecated methods with the current ones 2011-06-21 04:25:15 -07:00
Blake Watters
13da6aa77e Fix memory leak in the Three20 data source 2011-06-20 15:49:29 -04:00
Blake Watters
0954d4a063 Fixing more memory leaks 2011-06-20 15:03:35 -04:00
Blake Watters
99ae37037a Fixes for memory leaks with RKParams related to HTTPBodyStream causing a retain 2011-06-20 13:41:42 -04:00
Blake Watters
8f91e85e04 Merge branch 'restkit-sprint' 2011-06-20 10:54:04 -04:00
Blake Watters
4cc6a86a73 Merge branch 'restkit-sprint' 2011-06-20 10:52:13 -04:00
Jeremy Ellison
a5cc456351 Merge branch 'restkit-sprint' of github.com:twotoasters/RestKit into restkit-sprint 2011-06-20 10:51:30 -04:00
Jeremy Ellison
de154e21b8 Fix -reset in RKManagedObjectLoader.m 2011-06-20 10:50:56 -04:00
Blake Watters
3204682f72 Added object mapping management to the mapping provider for folks who don't have keyPaths. Deprecated setMapping:forKeyPath: in favor of setObjectMapping:forKeyPath: for consistency with the other method signatures. 2011-06-20 10:49:40 -04:00
Blake Watters
2006633491 Memory and ivar cleanups for RKParams 2011-06-20 10:49:40 -04:00
Rachit Shukla
a7f363a0e3 Removed dead link to blog post. 2011-06-20 10:49:40 -04:00
Victor Kryukov
9cb4e91ec6 Fix types: _body should be NSMutableData 2011-06-20 10:49:40 -04:00
Victor Kryukov
b14578436b Fix typo in documentation string 2011-06-20 10:49:40 -04:00
Victor Kryukov
714be36907 Code cleanup: initWithDictionary is used in RKObjectLoader and should be declared 2011-06-20 10:49:39 -04:00
Victor Kryukov
00ee7e93c3 Code cleanup: **error may be null as per coding standards in 'Creating and Returning NSError Objects' (found with Analyzer) 2011-06-20 10:49:39 -04:00
Victor Kryukov
5eb654b76a Code cleanup: sent == 0 at that point (found with XCode's Analyzer) 2011-06-20 10:49:39 -04:00
Victor Kryukov
b25d1395ee Code cleanup: background policy is iOS 4.x and higher only 2011-06-20 10:49:39 -04:00
Blake Watters
80f6ff0a64 Merge branch 'master' of github.com:twotoasters/RestKit 2011-06-20 10:43:17 -04:00
Jeremy Ellison
de684989db Fix memory leaks in -reset on RKObjectLoader and RKManagedObjectLoader. 2011-06-20 09:12:56 -04:00
Rachit Shukla
2d9c774e01 Removed dead link to blog post. 2011-06-20 04:28:05 -07:00
Blake Watters
a0f332889f Merge pull request #155 from victorkryukov/code-cleanup
Code cleanup
2011-06-18 14:24:03 -07:00
Victor Kryukov
1ccb919317 Fix types: _body should be NSMutableData 2011-06-18 21:49:31 +04:00
Victor Kryukov
ba5e934bee Fix typo in documentation string 2011-06-18 21:37:11 +04:00
Victor Kryukov
2b0fa4790b Code cleanup: initWithDictionary is used in RKObjectLoader and should be declared 2011-06-18 16:07:31 +04:00
Victor Kryukov
609102dcf8 Code cleanup: **error may be null as per coding standards in 'Creating and Returning NSError Objects' (found with Analyzer) 2011-06-18 16:07:31 +04:00
Victor Kryukov
384942b893 Code cleanup: sent == 0 at that point (found with XCode's Analyzer) 2011-06-18 16:07:31 +04:00
Victor Kryukov
f26a21cf61 Code cleanup: background policy is iOS 4.x and higher only 2011-06-18 16:07:31 +04:00
Blake Watters
3bf4b7bc0f Implemented nested mapping for structures similar to the BuildBot JSON structure. fixes #112 2011-06-17 15:36:28 -04:00