Commit Graph

776 Commits

Author SHA1 Message Date
Blake Watters
c7d8d0db3b Fix and test coverage for base URLs containing a path 2011-07-06 15:57:05 -04:00
Blake Watters
6376274900 Fixes for URL encoding of paramters in GET request. closes #193 2011-07-06 15:27:40 -04:00
Blake Watters
2b8379cac3 Fix for missing prototype warnings due to not including void in the parameters list for C functions that take no arguments. 2011-07-06 10:10:21 -04:00
Blake Watters
82ce444489 Unwind nil behavior introduced in previous commit and add test coverage for asObject behaviors. 2011-07-05 17:22:27 -04:00
Blake Watters
dddc4c3d0a Fix for crash when coercing an empty object mapping result set into a singular result with asObject. closes #190 2011-07-05 16:56:34 -04:00
Blake Watters
e86507f4ed Bug fix for potential invocation of setObject:forKey: with a nil key value 2011-07-05 16:30:16 -04:00
Blake Watters
348e86cbc8 Fix for inappropriate suspension of the main queue when using an IP address instead of a hostname. 2011-07-05 16:23:38 -04:00
Gal Steinitz
1014656328 modified README.md to allow the #import lines to be recognized as a code block 2011-07-04 19:15:39 -04:00
Blake Watters
f0e8e8d44f Coerce primary keys to strings in the thread-local lookup cache to handle lookups for numeric or string keys coming back in the JSON 2011-07-02 15:03:08 -04:00
Blake Watters
546eb627cd Respect the root keyPath when constructing a temporary object mapping provider. Covers the case where an object mapping targeting nested content is being directly specified. 2011-07-02 11:04:56 -04:00
Blake Watters
213ad291b6 Merge branch 'master' of github.com:twotoasters/RestKit 2011-07-02 00:33:02 -04:00
Blake Watters
5e8b7e85c3 Updating README 2011-07-01 19:23:05 -04:00
Blake Watters
c7d5f3e821 Merge pull request #187 from bmctigue/patch-1
Adjusted seed database code so the seed database is saved with the defaul
2011-07-01 13:52:51 -07:00
bmctigue
f1fdbe96ca Adjusted seed database code so the seed database is saved with the default seed database name. 2011-07-01 11:42:24 -07:00
Blake Watters
aa6102f022 Cleaning up analyzer warnings in the cache 2011-07-01 10:00:18 -04:00
Blake Watters
bea40036a9 Fixing breakage and log silence on Twitter Core Data seeding example. 2011-07-01 09:25:56 -04:00
Blake Watters
b24ca81deb Adding an "Ad Hoc" configuration to side-step the Archive build problem. 2011-07-01 07:57:54 -04:00
Blake Watters
72f26690ed Fixing crash from over-release of RKParams. 2011-06-30 17:19:12 -04:00
Blake Watters
a78b4c654d Added special 'App' logging component for logging messages via RKLog() from your app. closes #183 2011-06-30 15:11:58 -04:00
Blake Watters
1c7f90c6ad Added build conditional to ensure RestKit builds for OS X 2011-06-30 13:59:30 -04:00
Blake Watters
6f4058749c Updated appledoc binary 2011-06-30 13:59:28 -04:00
Blake Watters
3b89382da7 Fix broken test around creation of request serialization 2011-06-30 13:11:31 -04:00
Jeremy Ellison
ce445a284e fix indentation 2011-06-30 12:54:03 -04:00
Jeremy Ellison
8ce9bb83a5 Fix crash when trying to call HTTPBody on params objects that do no respond to it.
Solution is to not cache _params objects using HTTPBodyStreams in stead of HTTPBody.
2011-06-30 12:54:03 -04:00
Jeremy Ellison
eea75bdb3c Allow Timeout caching and ETag caching to play nice with each other. Update the internal cache date when we get a 304 back. 2011-06-30 12:54:03 -04:00
Jeremy Ellison
67a6df359d add missing spec module 2011-06-30 12:54:03 -04:00
Jeremy Ellison
ffe46ffeaa If the RKObjectLoaderTTModel wants to load without Disk cache (TTURLRequestCachePolicyDisk), tell the object loader not to use the RK cache. 2011-06-30 12:54:03 -04:00
Jeremy Ellison
f98566b837 Implement Timeout Based Caches 2011-06-30 12:54:02 -04:00
Blake Watters
16f6f004b5 Merge branch 'master' of github.com:twotoasters/RestKit 2011-06-30 12:53:22 -04:00
Duncan Lewis
403bf29f57 Added helper functions to RKObjectSerializer to map local objects into json 2011-06-30 12:28:28 -04:00
Blake Watters
42d4849f41 Fixing invalid instantiation of reachability observer 2011-06-30 10:37:37 -04:00
Blake Watters
7053a8ca97 Add support for sending objects of one type and getting back another. Target object has been disambiguated into sourceObject and targetObject
and act independently with regards to serialization and destination mapping. When you leverage the getObject:mapResponseWith: flavor of methods,
the type of your sourceObject is checked with the destination type of the object mapping. If they agree, it is assumed that you are trying to update
the object with the results of the mapping and targetObject is set appropriately. If they do not match, the targetObject is set to nil so that new
objects will be loaded. closes #161, #168
2011-06-30 10:33:39 -04:00
Blake Watters
2ac45f5ccc Refactored object loaders to provide easier support for non-nested JSON responses. There are new flavors of getObject:, postObject:, etc.
that allow the developer to explicitly specify the object mapping to use for processing the response. closes #168
2011-06-30 10:33:39 -04:00
Blake Watters
e18c1f2811 Merge pull request #181 from dhilus/master
YAJL serialization option modified so NSURL properties are serialized as String.
2011-06-30 05:18:13 -07:00
Rémy SAISSY
69460fdc4f YAJLGenOptionsIncludeNone -> YAJLGenOptionsIncludeUnsupportedTypes thus enabling NSURL properties to be serialized as string. 2011-06-30 09:40:41 +02:00
Blake Watters
2e7adbdc1e Restore the managed object cache functionality and add test coverage so it does not break again. fixes #167 2011-06-29 22:08:35 -04:00
Blake Watters
d57b784c30 Don't delete the managed object unless we were responsible for saving it in the first place. closes #125 2011-06-29 21:04:17 -04:00
Blake Watters
5a2f937a52 Reworked notifications for consistency with Cocoa idioms. Simplified code paths through the queue. Tweaked the logging for easier info at the Debug level without having to drop down to Trace. 2011-06-29 16:18:18 -04:00
Blake Watters
853704b2fd Rework notifications to allow request queue to observe only the requests it dispatches instead of all of them. Fixes incorrectly decrementing loading count. 2011-06-29 15:36:10 -04:00
Blake Watters
6faa525344 Added specs and support for either failing out the mapping operation or skipping over an attribute depending on key/value validation response. If NO is returned and a validation error is returned, the mapping operation will fail. If NO is returned without an error, the attribute will be skipped and a warning will be logged. You can also mutate the values. closes #166 2011-06-29 15:07:43 -04:00
Scott Penrose
41071ad61a Added Key-Value validation checking during object mapping operation. If you return NO it will continue mapping but skip that key path. If you set the error it will error out of object mapping operation. Issue #166 2011-06-29 14:11:00 -04:00
Blake Watters
4b4d3d1af6 Remove dead RKRailsRouter code. fixes #178 2011-06-29 14:08:21 -04:00
Blake Watters
c97af0802b Added new spec for RKURL. Implemented encoding of plus characters. fixes #170 2011-06-29 13:59:40 -04:00
Blake Watters
852d7f1dab Upgrade to LibComponentLogging 1.1.3. closes #163 2011-06-29 13:44:59 -04:00
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