Commit Graph

277 Commits

Author SHA1 Message Date
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
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
0ca4a0feea Added unit tests to loaders to investigate loading an array bug reports 2011-06-23 08:49:20 -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
Jeremy Ellison
de684989db Fix memory leaks in -reset on RKObjectLoader and RKManagedObjectLoader. 2011-06-20 09:12:56 -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
Jeremy Ellison
9073b25988 Merge branch 'master' of github.com:twotoasters/RestKit into restkit-sprint 2011-06-16 19:06:25 -04:00
Duncan Lewis
718c67039a Project updates 2011-06-16 18:29:22 -04:00
Blake Watters
3dd7361116 Pushing code up for Jeremy 2011-06-16 17:11:13 -04:00
Blake Watters
a75ace87d0 Deprecated RKObjectManager methods that use queryParams. Added NSString category for achieving the same results without bloating the API 2011-06-16 17:04:34 -04:00
Blake Watters
2493828414 Make imports of RKParser relative so they resolve correctly outside of the library project 2011-06-13 08:33:34 -04:00
Blake Watters
a41917af66 Ensure parsers are in the public dir 2011-06-12 18:52:11 -04:00
Blake Watters
ce9f49a061 Move Three20 headers into Public 2011-06-12 15:01:55 -04:00
Blake Watters
8e5fa664e8 Cleaned up miscellaneous artifacts from squashing object mapping 2.0 2011-06-11 20:34:10 -04:00
Blake Watters
8aef0a36b5 UISpec update 2011-06-11 20:27:34 -04:00
Blake Watters
27ea307816 Fix crash in RKCatalog. Suppress warning about symbol visibility during linking. 2011-06-11 20:27:33 -04:00
Blake Watters
9299cabc11 Implemented flexible logging solution utilizing the excellent LibComponentLogging library. 2011-06-11 20:25:28 -04:00
Blake Watters
69ded29245 Improved Three20 integration by leveraging object mapping to instantiate TTTableItems 2011-06-11 19:33:42 -04:00
Blake Watters
f2ceefa012 Merge Request Queue (See issue #75):
* Introduces RKRequestCache for cacheing responses (supports ETag conditional GET, use cache if available, use cache on error, etc.) closes #75
    * Updates to Three20 layer to eliminate need for intermediary TTTableItem classes closes #76
    * Fixes to ensure iOS 3.x compatability:
        * Switched compiler to Clang
        * Updated conditional checks for UIBackgroundTask symbols to ensure runtime safety on iOS 3.x
        * Removed unnecessary linkage against UIKit and CoreFoundation from library targets
    * Fix for issue where RKRequest objects could become stuck in infinite loop within RKRequestQueue loadNextInQueue if you start
      a request and then cancel immediately. On cancel only decrement loadCount if the request has start loading. refs #122
2011-06-11 19:28:44 -04:00
Blake Watters
9416ad9cf6 Added gcov to specs. Added HTTP Basic Authorization optimization 2011-06-11 19:27:18 -04:00
Blake Watters
f3c0995d5e Implementation of Object Mapping 2.0 design:
* Removed RestKit from inheritance hierarchy
  * Mappings are implemented as concrete classes
  * Mapper is much more flexible & powerful
  * Much more robust error handling
  * Serialization is reimplemented as an object mapping operation
  * Added ability to serialize to JSON natively
  * Reworked Core Data integration
  * Simplified the codebase substantially
2011-06-11 19:26:56 -04:00
Blake Watters
4321da03b1 Expanded specs and began migrating all the content for testing out in the Fixtures directory. Fixtures is now the root for the Sinatra app and there are new helpers in RKSpecEnvironment.m. Added specs for several users use cases from the mailing list. Introduced a new warning when attempting to map did not set any properties. 2011-05-02 20:57:18 -04:00
Blake Watters
87d0cd13de Added support for registering object class mappings as keyPaths in addition to element names. closes #82 2011-04-28 13:09:50 -04:00
Blake Watters
308b6c5dd2 Updates to RKObjectLoader to fix issues where keyPath was not always respected and willSendForObjectLoader: not invoked as expected. Expanded spec coverage to fix these issues. fixes #80, fixes #81 2011-04-28 00:05:55 -04:00
Blake Watters
9b3428a446 Migrated UISpecRunner code into Two Toaster UISpec fork for reuse across projects. 2011-04-20 17:14:04 -04:00
Robert McNally
b7df8e1f0a Eliminate use of 'class' in method signatures. It is a reserved word in Objective-C++. Replaced with 'objectClass'. fixes #58 2011-04-19 14:22:04 -04:00
Blake Watters
381ccadbe2 Added support for spinning the Network activity indicator when busy 2011-04-19 09:59:57 -04:00
Blake Watters
7837e245d9 Implemented support and tests for queue processing delegate methods. 2011-04-19 09:38:25 -04:00
Blake Watters
1817fcccd8 Added i386 architecture back to the Three20 target 2011-04-15 15:11:06 -04:00
Blake Watters
c9e0d3ffdd Remove legacy script from Doxygen. refs #48 2011-04-14 23:15:05 -04:00
Blake Watters
9af6a59c79 Initial implementation of documentation generation using the Appledoc parser. refs #48
* Cleaned up various mismatches in method signatures that were preventing documentation generation
* Removed naked ampersands from comments as they cause XML parser failures during docset generation via appledoc
2011-04-14 22:55:58 -04:00
Blake Watters
9593612aab Closes gh-47. Initial implementation of OS X build integrating changes submitted by Felix Holmgren (https://github.com/Felixyz/RestKit).
* Factored out display of alerts into RKAlert interface that hides the differences between UIKit and OS X Cocoa.
* Added macosx to supported platforms to enable build on OS X.
* Configured project to use conditional architectures to enable building on OS X and iOS from the same targets.
* Implemented a bare-bones OS X example app.
* Create `rake build` task for building RestKit against iOS and OS X SDK for quick testing.
2011-04-12 21:02:25 -04:00
Blake Watters
a648d26460 [#11477593] Implemented background request policies and Specs. This provides functionality for continuing a request in the background using an iOS background task.
Introduces four modes for handling background requests:
* RKRequestBackgroundPolicyNone - The default behavior replicating pre-background behavior. No special action is taken with regards to backgrounding.
* RKRequestBackgroundPolicyCancel - On transition to the background, requests with this policy set will be cancelled automatically and the delegate informed.
* RKRequestBackgroundPolicyContinue - Requests with this policy will be continued in the background after the app has been transitioned.
* RKRequestBackgroundPolicyRequeue - Requests with this policy will be cancelled and then immediately placed onto the queue for processing the next time the app is returned to the foreground.
2011-04-05 13:06:06 -04:00
Blake Watters
1086ecc09b add RKManagedObjectLoader.h to public Copy Headers task 2011-03-31 20:10:49 -04:00
Jeremy Ellison
09bcbd023d Added some specs for the RKXMLParser 2011-03-29 08:43:44 -04:00
Blake Watters
c90ec2770d Finished cleanup of HTTP AUTH and XML Support. Ready to tag 0.9.1 2011-03-28 23:29:06 -04:00
Blake Watters
69c051a57a Aligned target name with JSON parsers 2011-03-27 23:05:24 -04:00
Blake Watters
a298bc4dcf Fix build problems 2011-03-27 22:53:08 -04:00
Blake Watters
227f35a20d Merge branch '0.9' into xml-parser
Conflicts:
	Examples/RKTwitter/Classes/RKTwitterViewController.m
	README.md
	RestKit.xcodeproj/project.pbxproj
2011-03-27 22:29:19 -04:00
Blake Watters
6ae94fb0bf Cleaned up target name and dependencies for XML support 2011-03-27 22:03:32 -04:00
Blake Watters
6fd9586e9c Fixed RestKit aggregate build scheme 2011-03-25 10:54:43 -04:00
Blake Watters
6e6144dc26 Fixed warning with UISpec dependency 2011-03-25 10:36:11 -04:00
Blake Watters
c9611526e6 Ditching workspace for the RestKit project. May add one for the Examples/ directory later 2011-03-24 22:41:55 -04:00
Blake Watters
0795112df0 Merge branch '0.9' into unit-testing
Conflicts:
	RestKit.xcodeproj/project.pbxproj
2011-03-24 22:21:16 -04:00
Blake Watters
2b159fefc2 Removed pch reference created earlier today, add legacy copy headers script to project 2011-03-24 22:12:19 -04:00
Blake Watters
4266ca5981 Switched target dependency to aggregate target to ensure headers are populated in proper order 2011-03-24 22:01:24 -04:00
Blake Watters
4809d9e0a6 Run Copy Headers task after compilation of libRestKitThree20 to ensure they are copied into Build dir. Story #11526713 2011-03-24 21:54:51 -04:00
Blake Watters
4c717e2a5b Merge branch '0.9' into unit-testing
Conflicts:
	RestKit.xcodeproj/project.pbxproj
2011-03-24 15:00:13 -04:00
Blake Watters
9d0fbbfc0c Work around permission issue when copying RestKit.h header 2011-03-24 13:37:37 -04:00