Commit Graph

659 Commits

Author SHA1 Message Date
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
e3a007fcf7 Add note about the library search path being unnecessary when using DerivedData 2011-06-16 09:11:53 -04:00
Blake Watters
964ea545ae Added support for HEAD requests. closes #151 2011-06-15 16:14:00 -04:00
Blake Watters
d84088277e Expand commentary around registerMapping 2011-06-15 11:14:57 -04:00
Blake Watters
e65ea71b20 Updates to make parsedBody: implementation ready for merge. Migrated all remaining specs to RKSpec so failures don't cause crashes when you use the Hamcrest helpers. closes #153 2011-06-15 10:47:45 -04:00
Blake Watters
d5e3fc33a1 Merge branch 'master' of https://github.com/leonradley/RestKit into leonradley-master 2011-06-15 10:35:15 -04:00
Blake Watters
5f7b8559cd Only build a serialization if we are a POST or a PUT 2011-06-15 10:29:11 -04:00
Blake Watters
420d20384f Add support for mapping yes and no to NSNumber boolean values 2011-06-15 09:59:45 -04:00
Blake Watters
1fb99c383b Added unit test for RKParams key/value issue from the mailing list 2011-06-15 09:50:28 -04:00
Leon
550edf9873 Added error to method signature and used RKLogError if the errror isn't nil 2011-06-15 14:51:56 +02:00
Leon
2c5700fded Implemented parsedBody based on the new RKParserRegistry 2011-06-15 13:53:05 +02: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
8d30413717 Add Ed McManus to contributors 2011-06-11 20:27:33 -04:00
Blake Watters
dafe3486e9 Added cache component to logging. Chased down some mystery failing tests. Added thorough logging to RKRequestCache. 2011-06-11 20:27:33 -04:00
Ed McManus
ecf808af1a Added boolean "reversible" property to RKObjectRelationshipMapping. This can be used to break cyclical
relationships in the object mapping graph. Relationships can be optionally included in an inverse mapping
generation for serialization purposes.
2011-06-11 20:25:28 -04:00
Blake Watters
9299cabc11 Implemented flexible logging solution utilizing the excellent LibComponentLogging library. 2011-06-11 20:25:28 -04:00
Blake Watters
bc355d69fd Added NSAssert statements to try and prevent accidental configuration of a Three20 model with an object loader that has already been sent. 2011-06-11 20:24:27 -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
7bf3e0f273 Added support for mapping boolean strings to NSNumber with values t or f in addition to true and false. refs #130 2011-06-11 19:31:21 -04:00
Blake Watters
8be34582a5 Ported DiscussionBoard to new Three20 class structure 2011-06-11 19:31:21 -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
3a76780f76 Merge pull request #150 from victorkryukov/master
Clean up of Discussion Board example
2011-06-11 11:21:01 -07:00
Victor Kryukov
16ee0d278c Format lines better 2011-06-11 21:55:55 +04:00
Victor Kryukov
26e240d224 Customize view in loadView, not createModel 2011-06-11 21:55:31 +04:00
Victor Kryukov
71fb2d1a0c Remove unused _tableTitleHeaderLabel from DBResourceListTableViewController 2011-06-11 21:55:05 +04:00
Victor Kryukov
b25be71bab Use relative paths in #imports to prevent XCode 4.2 from complaining 2011-06-11 21:54:17 +04:00
Victor Kryukov
5db087a73a Remove duplicate declarations for createdAt, updatedAt, userID and user from DBPost
DBPost inherits from DBContentObject which has these accessors already defined.
2011-06-11 21:41:20 +04:00
Blake Watters
cd11934498 Merge pull request #149 from victorkryukov/master
Add Three20 bundle. fixes #148
2011-06-11 08:38:12 -07:00
Victor Kryukov
eca655abbd Add Three20.bundle to make sure TTAlert works 2011-06-11 14:47:41 +04:00
Scott Penrose
d6bd24a350 RKRequestQueue loadNextInQueue stuck in infinite loop if you start a request and then cancel immediately. On cancel only decrement loadCount if the request has start loading. This needs to be merged into master #122 2011-05-29 00:52:16 -04:00
Blake Watters
288034e439 Merge pull request #128 from pashields/targetObject_leak
Added release for targetObject to the object loader
2011-05-27 10:55:38 -07:00
Jeremy Ellison
40b7363004 Stop leaking memory in the XML parser (call xmlFree() after xmlNodeGetContent()). 2011-05-27 13:00:23 -04:00
Pat Shields
eecf87e71a Don't leak object passed in to loader. 2011-05-27 12:46:36 -04:00
Blake Watters
ade94534a5 Cancel all requests during dealloc. 2011-05-10 22:58:33 -04:00
Blake Watters
d665f79af8 Added optional note next to libRestKitCoreData.a. closes #53 2011-05-10 21:29:58 -04:00
Blake Watters
e5093a38dd Merge pull request #83 from sixten/0.9-error-handling 0.9.2 2011-05-10 17:58:46 -07:00
Blake Watters
8d7a490c40 Merge pull request #91 from jch/add_prepare_url_request_to_rkrequest_header
Add prepare url request to rkrequest header
2011-05-09 05:46:35 -07:00
Jerry Cheung
4ac85a6cb1 add -(void)prepareURLRequest to RKRequest.h to remove build warning 2011-05-08 15:13:21 -07:00
Blake Watters
9c17614bc4 Added Andras Hatvani to the contributors list 2011-05-04 10:00:50 -04:00
Blake Watters
4889ff9b5f Removed use of Objective-C block in new serialization code from Andras 2011-05-04 09:59:47 -04:00
Andras Hatvani
d6d92fc6d4 * Implemented relation mapping in RKDynamicRouter
* Added specs covering the functionality
2011-05-04 12:27:50 +02:00
Blake Watters
2c6f8ff8e9 Merge branch '0.9' of github.com:twotoasters/RestKit into 0.9 2011-05-02 21:00:03 -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