Blake Watters
05b94cae5d
Added assertions for object store nilness.
...
The managedObjectContext helper method will now raise an exception if there is not a sharedManager or the current sharedManager does not have an objectStore configured.
2011-09-13 13:13:12 -04:00
Blake Watters
b946fc3cd9
Small header file changes for Appledoc output changes
2011-09-13 13:13:11 -04:00
Greg Combs
20fb9043b3
Clarified header documentation for RKRequest's cancel method.
2011-09-13 10:53:19 -05: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
64d496672e
Changed reference of 'email' to 'username' in nested example. Fixes #340 .
2011-09-11 19:53:44 -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
Blake Watters
5c359edfc5
Use relative imports for headers in Support module. Removed import of SCNetworkReachability in RKClient
2011-09-08 19:26:33 -04:00
Blake Watters
4226067b8a
Use Grand Central Dispatch to fire reachability notifications for IP addresses
2011-09-08 19:22:58 -04:00
Blake Watters
bebc08e34c
Remove improper import of RKObjectLoader in RKClient
2011-09-08 19:22:28 -04:00
Blake Watters
12bacf9be4
Removed references to sharedQueue from Advanced Tutorial sources
2011-09-08 09:38:26 -04:00
Blake Watters
6ed37f0eb9
Fix Cocoa 512 errors logged from RKRequestCache. fixes #246
...
The following changes were made:
* Added isCacheable to RKRequest
* Return nil for cacheKey on non-cacheable RKRequests
* Updated RKRequestCache to ensure attempts to cache uncacheable requests has no effect
* Added basic unit tests and expanded comments on some parts of the cache API
2011-09-07 22:39:57 -04:00
Blake Watters
2a89404f7d
Return nil from needNewBodyStream: to avoid weirdness with connections being revived. refs #335
2011-09-07 21:37:11 -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
ef3dd69283
Merge pull request #332 from RestKit/rkpathmatcher
...
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 13:54:55 -07: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
4299cab994
Added convenience accessors on RKObjectManager for the requestCache and requestQueue. Cleaned up some styling and normalized method names.
2011-09-06 11:36:50 -04:00
Blake Watters
e5ac48d47f
Added images for troubleshooting page
2011-09-06 08:46:02 -04:00
Blake Watters
2ccc44954a
Configured default locale to en_US_POSIX for default date formatters. closes #273
2011-09-05 17:54:07 -04:00
Blake Watters
54007c78d4
Reworked Brendan Ribera's contributions around time zone handling to eliminate the use of transient
...
NSDateFormatters, added a preferredDateFormatter for use when serializing dates to strings,
replaced the use of the description method for date encoding to strings with invocation of the
preferredDateFormatter, added new attribute transformation strategy from NSDate -> NSString properties
(also using the preferred date formatter), and provided customization support for date handling globally
and on a per-mapping basis. closes #200 , closes #313 , closes #309 , closes #308
2011-09-05 17:25:43 -04:00
Blake Watters
ad754a9b2a
Added header search path back to quick start.
2011-09-04 16:46:03 -04:00
Blake Watters
5f090f0478
Re-enabled copy headers task and added new install image for configuring the include/ path since Xcode is behaving poorly without it for folks on the mailing list.
2011-09-04 16:38:05 -04:00
Blake Watters
5122a17075
Adding images for configuring the DerivedData directory section of the installation troubleshooting page
2011-09-04 15:57:11 -04:00
Blake Watters
d2aab62ce6
Removed existing install guide and replaced with link to the wiki installation page.
2011-09-03 19:58:28 -04:00
Blake Watters
36b7af6a79
Add Xcode 4 Installation Screenshots
2011-09-03 19:19:11 -04:00
Blake Watters
f88e3dc0cb
Added test coverage for parsing XML from the national weather service. fixes #298
2011-09-03 18:32:54 -04:00
Blake Watters
ffeb022a61
Added test coverage for single close tag. fixes #195
2011-09-03 18:19:39 -04:00
Blake Watters
6cc7f1e4d6
Added test coverage for queue loading count being decremented when the response is unmappable. fixes #230 , fixes #286
2011-09-03 17:29:58 -04:00
Blake Watters
d9d0f7a650
Eliminated the global sharedQueue in favor of allowing each RKClient to own its a private queue. This eliminates problems where multiple clients are tracking reachability notifications and mutating the suspension state on a single queue. If you want to use a single queue across multiple RKClient instances, you can assign a single queue to both and worry about suspension and reachability yourself. fixes #278
2011-09-03 15:52:45 -04:00
Blake Watters
2f123a44f5
Bump appledoc binary
2011-09-03 15:50:38 -04:00
Blake Watters
32461e916f
Added support for parsing XML containing CDATA content. fixes #327
2011-09-03 14:30:07 -04:00
Greg Combs
de6c611338
Added RKFixCategoryBug.h to the YAJL target, in order to successfully compile without errors.
2011-09-02 00:52:02 -05:00
Blake Watters
ef11b13c8e
Reworked installation and build process to eliminate the need to configure the Header and Library search paths. Updated all example projects to match. This makes the use of the DerivedData directory a requirement going forward. fixes #323
2011-09-01 21:54:45 -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
7ca39d8127
Rename spec target. Remove .orig file hanging out in git
2011-08-29 20:35:24 -04:00
Blake Watters
c4a946c5bf
Expanded documentation of objectLoaderDidLoadUnexpectedResponse: for clarity of additional use-cases beyond HTTP status code.
2011-08-28 16:00:36 -04:00
Blake Watters
f0768cc03c
Fix memory leak of hostname attribute in reachability observer. fixes #268
2011-08-27 21:13:24 -04:00
Blake Watters
edd3c8a065
Added test coverage for parsing orders XML. fixes #255
2011-08-27 21:12:17 -04:00
Jeff Arena
aceb75200a
Fix for issues setting many-to-many relationships on NSManagedObjects, as well as some additional test coverage for the issue. fixes #271
2011-08-27 21:00:19 -04:00
Blake Watters
07830b5d87
Merge branch 'numbers-can-map-to-strings' of https://github.com/crayment/RestKit into crayment-numbers-can-map-to-strings
...
Conflicts:
Code/ObjectMapping/RKObjectMappingOperation.m
Specs/ObjectMapping/RKObjectMappingOperationSpec.m
2011-08-27 19:32:35 -04:00
Blake Watters
218555b195
Do not add headers for params if the request is a GET or a HEAD. refs #303
2011-08-27 19:10:48 -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
Greg Combs
a77bdf0314
Added various tests for url encoding dictionaries.
2011-08-27 16:23:11 -05:00
Blake Watters
dba1586b53
Added test for empty response processing with 204 status code.
2011-08-27 08:41:13 -04:00
Blake Watters
f987dc56f5
Added test coverage for mapping from NSNumber -> NSDecimalNumber. refs #269
2011-08-25 23:15:07 -04:00
Nolan Waite
8520d3e28b
Transform numbers to decimal numbers.
2011-08-25 23:15:07 -04:00
Blake Watters
1f66ce7e46
Added support for mapping a single object into a destination collections. fixes #310
2011-08-25 22:21:54 -04:00
emil.wojtaszek
de5b7111a1
bug fix with wrong path to data store on mac
2011-08-25 20:38:33 -04:00