Blake Watters
32461e916f
Added support for parsing XML containing CDATA content. fixes #327
2011-09-03 14:30:07 -04:00
Blake Watters
b96940cc64
Eliminated requirement to use -all_load linker flag. Fixed breakage in OS X builds due to ivar/property name disagreement. Removed references to all_load from the install docs. fixes #239
2011-09-01 20:52:46 -04:00
Blake Watters
3832ec7b9f
Added new unit tests for XML support and merged fixes from @Edubits pull request #262 and changes from @cellcortex #314 . Attributes and nesting should behave better. closes #262 , #314
2011-08-27 18:44:46 -04:00
Robin Eggenkamp
30826a0b8f
Fixed XML parser
...
The XML parser did put attributes in a strange place in the hierarchy,
which caused them to be overwritten when multiple elements exists with
the same attribute.
2011-08-27 18:44:46 -04:00
Arne Harren
351006a4ea
Remove trailing semicolons from RKLog macros.
2011-08-07 13:31:00 +02: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
Evan Cordell
f73888e4a3
Added NextiveJSON as a JSON parser.
2011-07-28 17:53:19 -04:00
rehos
d46dcef8fe
RKJSONParserSBJSON serializes itself instead of the object
2011-07-27 21:29:37 +03: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
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
a78b4c654d
Added special 'App' logging component for logging messages via RKLog() from your app. closes #183
2011-06-30 15:11:58 -04: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
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
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
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
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
130135013c
fix xml parser from overwriting dupe keys. Add a spec for this case.
2011-06-16 17:55:06 -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
27ea307816
Fix crash in RKCatalog. Suppress warning about symbol visibility during linking.
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
Blake Watters
9299cabc11
Implemented flexible logging solution utilizing the excellent LibComponentLogging library.
2011-06-11 20:25:28 -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
Jeremy Ellison
40b7363004
Stop leaking memory in the XML parser (call xmlFree() after xmlNodeGetContent()).
2011-05-27 13:00:23 -04:00
Blake Watters
c35d0bab1d
Implemented substantial catalog example application covering advanced usage of RestKit:
...
* Cleaned up remaining warnings about if (self = [super init])
* RKParamsExample - Highlights multi-part uploads
* RKRequestQueueExample - Working with the request queue
* RKBackgroundRequestExample - Examples of using the background policies for backgrounding requests
* RKReachabilityExample - Shows how to work with the reachability observer
* RKRelationshipMappingExample - Shows how to map related objects from JSON into an object graph
* RKCoreDataExample - Shows the basics of using RestKit's Core Data examples
Also rearranged dispatch of RKRequest delegate method for didStartLoad: to ensure requeue callbacks get invoked in a timely manner. refs #62
2011-04-22 11:28:56 -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
Jeremy Ellison
322599e14a
Updates from development of Go Try It On v2.0:
...
* Updates YAJL Parser not to raise an exception and crash when it encounters invalid JSON. The other parsers need to be aligned with this behavior and the delegate methods updated. See Pivotal Story: https://www.pivotaltracker.com/story/show/11925617
* Added requestDidCancel: delegate invocation for tracking cancellation of requests.
* Ensure that the request queue timer is cleared during indeterminate deferral of request loads.
2011-04-05 10:02:34 -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
Jeremy Ellison
6a4b3d78b3
Merge branch 'unit-testing' into xml-parser
...
Conflicts:
RestKit.xcodeproj/project.pbxproj
2011-03-23 10:34:02 -04:00
Jeff Arena
e938a4d277
add support for jsonkit parser
2011-03-16 20:21:36 -07:00
Jeremy Ellison
4bb021e0c7
add attribute parsing to RKXMLParser
2011-03-15 10:21:26 -04:00
Jeremy Ellison
a49977c906
make RKXMLParser support RKParser protocol
2011-03-01 12:44:10 -05:00
Jeremy Ellison
bf25a17678
add RKXMLParser
2011-03-01 12:42:59 -05:00
Jeremy Ellison
6a5ee2af7e
Revert "Remove per-file copyrights"
...
This reverts commit 91e7c6bb5e .
2011-01-12 15:27:19 -05:00
Jeremy Ellison
91e7c6bb5e
Remove per-file copyrights
2011-01-12 15:05:22 -05:00
Jeremy Ellison
340e587704
Refactor JSONRepresentation to stringFromObject: on RKParser. Fixes https://github.com/twotoasters/RestKit/issues/#issue/6
2011-01-03 12:40:20 -05:00
Jeff Arena
39f3d568e2
added reachability support at the manager and client level; added code to short circuit requests if offline; fixed issue with source parameter on loader related to passing managed objects across thread boundaries; added resource path property to the loader
2010-11-30 19:38:27 -08:00
Jeff Arena
c19d305b45
fix for mapper bug that was assuming a 1:1 mapping between object classes and elements; removed method from dictionary category that made the 1:1 mapping assumption that caused the mapper bug; collapsed the RKRequestModel and RKRequestTTModel classes into RKRequestTTModel; made changes to the Three20 integration to perform all cache loading and network loading in response to Three20 load calls; used isOutdated TTModel method to enforce refreshRate on RKRequestTTModel
2010-11-30 15:08:05 -08:00
Jeff Arena
89f26fbe7f
fix use of released object in debug message by relocating the release call
2010-10-19 10:28:34 -04:00
Blake Watters
bd93d43f94
Finished split into more logical components. Library now copies Headers to Build/RestKit and you can selectively link against the components your app needs. libRestKit.a contains everything from the core library.
2010-10-01 13:02:24 -04:00