Commit Graph

844 Commits

Author SHA1 Message Date
Cameron Royal
27fc1dbb5e Merged latest from upstream 2011-08-04 14:54:32 +08:00
Blake Watters
7c7ddf2558 Added .rvmrc for setting up Ruby spec environment. Replace shotgun with Sinatra reloader and enabled spec server code reloading. Wrote some file uploads specs for RKParams. 2011-08-03 20:01:06 -04:00
Blake Watters
b8c03375f4 Clean up all of the build warnings coming out of the UISpec code 2011-08-03 19:26:58 -04:00
Blake Watters
ff01e4bec8 Use parentheses instead of angle brackets in Git submodule install instructions 2011-08-02 10:51:10 -04:00
Blake Watters
ac5d2d58c1 Don't fail out rake docs:install when Appledoc exits with warning exitstatus 2011-08-02 10:15:24 -04:00
Blake Watters
db0b97621b Allow exit status of 1 (Warning) for rake docs:generate 2011-08-02 10:06:20 -04:00
Blake Watters
946c558675 Updated appledoc binary and templates. Fixed ampersands in some comments that were blocking Docset generation. Updated Appledoc rake tasks to reflect the exit statuses emitted by appledoc. Pushed 0.9.3 appledoc to restkit.org 2011-08-02 08:42:59 -04:00
Blake Watters
991bd5c2c9 Updates to documentation reflect preference for OCHamcrest matchers over UIExpectation. Fixed broken link to pull request to the Two Toasters repository. Prepping to tag 0.9.3 0.9.3 2011-08-02 07:44:08 -04:00
Blake Watters
ca91226129 Fix for incorrect delegate invocation on cache load. fixes #267 2011-08-01 21:54:04 -04:00
Blake Watters
9e56cfa1e2 Merge pull request #265 from eschan/master
fixed "internal compiler error tree check" on ASSERT (iOS Device Scheme only)
2011-08-01 04:52:35 -07:00
Cameron Royal
a5854bb325 Fixes a compile error from an ASSERT inside the NXJsonParser 2011-08-01 15:17:00 +08:00
Blake Watters
4e03ba7bef Renamed Polymorphic mapping to dynamic mapping after consulting with the community. Dropped abstract superclass in favor of a RKObjectMappingDefinition protocol. Caught missing cases with dynamic object mapping + targetObject. Updated docs and method signatures to reflect the updates. 2011-07-31 19:37:42 -04:00
Blake Watters
eab35ef3f7 Updated polymorphic mapping to use valueForKeyPath. Slight updates to the documentation. refs #105 2011-07-30 16:18:14 -04:00
Blake Watters
670234b775 Added support for polymorphic object mapping (Github #105, #244). This enables you to dynamically map objects to different destination classes or using different mapping strategies via configuration or callbacks. See Docs/Object Mapping.md for details.
Other changes include:
* Eliminated the RKObjectFactory protocol and implementations. Object mapping instances themselves are
now responsible for instantiating target objects for mapping.
* Introduced RKObjectAbstractMapping superclass for RKObjectMapping and RKObjectPolymorphicMapping.
* Updated example applications to use block object loaders (RKTwitter and RKTwitterCoreData)
* Refactored method signatures of RKObjectMapper, RKObjectMapping, and RKObjectMappingProvider to reflect the
existence of abstract mapping types. This was necessary to make polymorphic mappings integrate cleanly.
* Fixed overlap in RestKit error domains between network and object mapping. fixes #208
2011-07-30 16:00:36 -04:00
Edward Chan
f177e4f1ef fixed "internal compiler error tree check" compiler error 2011-07-30 09:06:13 -07:00
Cameron Royal
d24c6d5180 Merge branch 'master' of git://github.com/RestKit/RestKit 2011-07-29 11:41:37 +08:00
Evan Cordell
072e1ee58b Made the appropriate changes to the RestKit project to load NextiveJSON, added record to RKParserRegistry 2011-07-28 18:00:41 -04:00
Evan Cordell
f73888e4a3 Added NextiveJSON as a JSON parser. 2011-07-28 17:53:19 -04:00
Blake Watters
f547439254 Merge pull request #247 from rehos/patch-1
Use the actual class instead of hardcoded RKObjectManager class
2011-07-28 14:27:20 -07:00
Blake Watters
d7c87be60e Merge pull request #252 from rehos/patch-2
RKJSONParserSBJSON serializes itself instead of the object
2011-07-28 13:45:51 -07:00
Blake Watters
d22ae1c172 Merge pull request #254 from pkthor/patch-2
Added objc formatting tag to paragraph in Handling Dynamic Nesting Attrib
2011-07-28 13:42:56 -07:00
Blake Watters
46ab501cab Introduced loadObjectsAtResourcePath:delegate:block: helper 2011-07-28 16:41:41 -04:00
Blake Watters
4ed7a20f85 Merge pull request #258 from GateGuru/improve-block-loaders
Improved the flexibility of the block loaders significantly by allowing t
2011-07-28 11:00:07 -07:00
Blake Watters
e6e528fcf1 Improved the flexibility of the block loaders significantly by allowing them to override the object mapping and routing selection. Made sendObject:method:delegate:block private and introduced public sendObject:delegate:block method instead. Wrote some basic specs for overriding the router. 2011-07-28 13:56:16 -04:00
pkthor
1eb6ae24a6 Added objc formatting tag to paragraph in Handling Dynamic Nesting Attributes section 2011-07-27 20:20:58 -06:00
rehos
d46dcef8fe RKJSONParserSBJSON serializes itself instead of the object 2011-07-27 21:29:37 +03:00
Blake Watters
afc6167554 Merge pull request #248 from dhilus/master
Requests were not sent at all after 5 requests with 40x HTTP Code response.
2011-07-27 05:44:33 -07:00
Blake Watters
d5cc021014 Merging SSL certificate validation support from #131 2011-07-27 08:40:33 -04:00
Blake Watters
bd29ee038b Added non-underscored class name for NSCFBoolean matches in transformation from Boolean to String 2011-07-27 08:00:15 -04:00
Blake Watters
6e87cd5ffd Add missing release for rootKeyPath ivar 2011-07-27 07:59:08 -04:00
Cameron Royal
1a4191be11 Merge branch 'master' of git://github.com/RestKit/RestKit 2011-07-27 10:11:29 +08:00
Rémy SAISSY
2bdf855fbe finalizeLoad:error: call added in handleResponseError thus avoiding non finalized requests when receiving 40x HTTP response to requests. 2011-07-26 17:45:39 +02:00
rehos
b9d29b8759 Use the actual class instead of hardcoded RKObjectManager class in objectManagerWithBaseURL: 2011-07-26 16:01:43 +03:00
Blake Watters
ee5457105e Fix memory leak of mapping provider 2011-07-25 17:58:03 -04:00
Blake Watters
32e08d31a6 Fix issues with login/logout on discussion board and show off new block helpers and URL mutation in the DBUser class. fixes #214 2011-07-24 19:16:36 -04:00
Blake Watters
7c6507cacf Update the mutable URL request when switching out the URL or resourcePath 2011-07-24 19:15:45 -04:00
Blake Watters
406c5a1f7c Added support for mutating URL and resourcePath on RKRequest and RKObjectLoader. closes #242 2011-07-24 16:51:19 -04:00
Blake Watters
7ac588fccc Added missing bracket 2011-07-24 12:31:54 -04:00
Blake Watters
a0cb33d391 Updates comments on inferMappingsFromObjectTypes and add documentation to the Object Mapping document. Defaulted it to off
as it can complicate things for KVC mappable data.
2011-07-24 12:28:42 -04:00
Blake Watters
3a5354c4a0 Added specs around behavior of empty mappable payloads and RKObjectLoaderDelegate invocations. Fixed issue where empty hashes ({}) would result in no delegate methods being invoked. fixes #225 2011-07-24 01:25:50 -04:00
Blake Watters
570b13ca07 Updated Object Mapping documentation, added support for inferring object mappings based off of the type of the object used in postObject:, putObject:, etc. Made KVC validation optional. 2011-07-23 23:47:03 -04:00
Blake Watters
80366afa84 Added Object Mapping block helpers to RKObjectManager and RKObjectMapping. These enable you to perform ad-hoc object mapping very easily. Extended RKObjectRouter to match on superclasses if no specific route is found. This is helpful when using mocked objects with frameworks like Kiwi. fixes #238 2011-07-23 23:04:16 -04:00
Blake Watters
06e2f6665d Updated testing Doc to use bundle exec 2011-07-22 08:25:27 -04:00
Blake Watters
d12568580d Merge pull request #234 from GateGuru/unit-testing-and-queue-fixes
Unit testing and queue fixes
2011-07-22 05:15:01 -07:00
Blake Watters
611167b968 Merge pull request #236 from victorkryukov/patch-7
Fix RestKit XCode project to reflect recent UISpecRunner changes
2011-07-22 05:13:02 -07:00
Victor Kryukov
c88bb0fa49 Fix RestKit XCode project to reflect recent UISpecRunner changes 2011-07-22 14:27:23 +04:00
Cameron Royal
9990f3ee51 First attempt at recursive implementation of URLEncodedString 2011-07-22 17:09:42 +08:00
Blake Watters
205f1140af Dropped UISpec in favor of slimmed down UISpecRunner extraction. Killed off the submodule to simplify testing. 2011-07-21 22:14:21 -04:00
Blake Watters
f1b0815e1a Fixes to some violations of the contracts around delegate methods and background threads 2011-07-21 22:01:47 -04:00
Blake Watters
b778af11d7 Fix for issue where authentication challenges without credentials would cause stream errors when coupled with an RKParams (NSInputStream) based params payload 2011-07-21 21:47:02 -04:00