Blake Watters
c45d3b2d33
Implemented example application building RestKit into a CLI utility for parsing files and evaluating keyPaths against the results. refs #409
2011-10-16 02:37:22 -04:00
Blake Watters
585d4aafc8
Implemented MIMETypeForPathExtension for NSURL and NSString. refs #409
...
Refactored duplicated code for returning the MIME Type based on file path extension using
Core Services UTI.
2011-10-16 02:06:58 -04:00
Blake Watters
0e08147d5b
Updated RKAlert to build in cases where NSAlert and UIAlert are not available (i.e. CLI app). refs #409
2011-10-16 01:17:17 -04:00
Blake Watters
214efd31d5
Fix issue with incorrectly built OAuth 1.0 invocation of TDOAuth. fixes #396
...
Began cleanup of some category methods to eliminate duplicated functionality across the library.
2011-10-12 09:55:38 -04:00
Blake Watters
2823d60ba7
Added new RKLog helpers for changing the log level during the execution of a block. Very helpful for debugging. closes #387
2011-10-01 11:10:24 -04:00
Blake Watters
19738ff61f
Update outdated comments in the XML parser header
2011-09-26 20:05:22 -04:00
Blake Watters
30b08ba85b
Added default parser registration for text/xml MIME Type. fixes #370
2011-09-23 09:49:54 -04:00
Blake Watters
e535f3abf0
Removed unnecessary InflectionSupport
2011-09-20 12:36:39 -04:00
Greg Combs
c49310162e
RKPathMatcher can now accommodate non-KVM dots that follow parameter keys in the pattern. Where /:filename.json would fail before, we use special escapes like /:filename\.json ... this fixes #349 . Thanks @jverkoey for the fix and @coryalder for the catch.
2011-09-16 15:35:27 -05:00
Greg Combs
62d7042ebc
Merge pull request #334 from parkerboundy/add-apache-license
...
Add the Apache License to headers (Issue #145 ) Closes #145 . Thanks @parkerboundy.
2011-09-14 21:56:15 -07:00
Blake Watters
b946fc3cd9
Small header file changes for Appledoc output changes
2011-09-13 13:13:11 -04:00
Greg Combs
fc5f2b38be
Minor cleanup of some whitespace after recent feature pull requests
2011-09-13 01:30:43 -05:00
Greg Combs
6dd1e8da40
Now gracefully handles escaping interpolated resource paths in RKRouter, RKMakePathWithObject, and RKPathMatcher. By adding an encoding handler to SOCKit, we now (by default, but optionally) add percent escapes to each object's property value while it's being interpolated into a resource path pattern, like /stuff/things/:others?apikey=:apikey ... that way it won't brutally mangle the slashes and question marks and ampersands that exist in the resource path pattern, while at the same time properly escaping those same characters when they occur inside the object's property value. Closes #221
2011-09-13 00:50:55 -05:00
Greg Combs
2bd113fd42
Added two static initializers to RKDotNetDateFormatter and amended the specs.
2011-09-09 09:51:35 -05:00
Greg Combs
9ce25f5689
Added RKDotNetDateFormatter to translate back and forth between NSDate and strings like /Date(1234567890123-0500)/ Also includes header docs and specs. Fixes #264
2011-09-09 03:26:46 -05:00
Parker
990ab16a6b
Added Apache License to files in Support directory
...
Didn't add license to: NSString+InflectionSupport.h,
NSString+InflectionSupport.m, RKParser.h
2011-09-07 12:02:29 -04:00
Parker
a58eb6dcf2
Added Apache License to files in Support/Parsers directory
2011-09-07 11:58:16 -04:00
Greg Combs
feb941d241
Oops … RKPathMatcher merge didn't actually have RKPathMatcher .h and .m in it … Thanks @dmthomas for the heads up.
2011-09-06 16:44:55 -05:00
Greg Combs
e38562ffce
Introduces RKPathMatcher. This is basically a dressed up front end to jverkoey/SOCKit. Using this will make it very easy to do complex things with patterns, resource paths, and object property interpolation thereof. Whereas RKMakePathWithObject() once took parenthesized parameters like "/stuff/(things)" it now uses colons like "/stuff/:things". It has specs and updated header docs where appropriate. Closes #305 .
2011-09-06 15:51:18 -05:00
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