Commit Graph

46 Commits

Author SHA1 Message Date
Blake Watters
a545c3942b Integrated primaryKey extension to NSEntityDescription and refactored cache strategy
classes to eliminate issues with duplicated objects. closes #611, #612, #613, #618

* NSEntityDescription is now aware of the primaryKeyAttribute. Can be configured via
Interface Builder within Xcode or programatically.
* Added findByPrimaryKey: interface to the Core Data extensions.
* Relaxed dependencies on RKManagedObjectMapping across the system now that primaryKey is
available without a reference to the mapping.
2012-04-03 23:39:42 -04:00
Blake Watters
c210b10299 Add missing resourcePath to fix exception during unit test execution 2012-03-31 16:33:34 -04:00
Blake Watters
73fe4f1237 Added support for object mapping a single object instance onto an NSOrderedSet collection. fixes #616 2012-03-30 09:29:41 -04:00
Blake Watters
b726be36f4 Merge branch 'jstallings-objectloader-error' into release/0.9.4 2012-03-30 09:01:43 -04:00
John Stallings
e07ea7910b Ensure RKManagedObjectLoader invokes onDidFailWithError as well as the delegate callback. refs #624 2012-03-30 09:01:11 -04:00
Blake Watters
e40200b95b Added test that existing Core Data object instances are updated rather than duplicated when mapping an array. refs #612 2012-03-30 08:46:21 -04:00
Bob Spryn
8fc0d9e46c Added test and fix for empty date @"" being set to a very strange date by the ISO date formatter". refs #622 2012-03-29 20:12:50 -04:00
Brian Morton
a1d7991d29 Fix failing cache hit test by adding the appropriate rootKeyPath to the mapping. 2012-03-20 22:39:13 -07:00
Brian Morton
de4100bfd6 Rearrange SSL validation test so that it isn't stepped on by configureRequest:. 2012-03-20 19:58:51 -07:00
Blake Watters
bc82f5a1ac Integrated support and test coverage for mapping relationships onto NSOrderedSet values. closes #578 2012-03-20 22:14:31 -04:00
Blake Watters
20aa05573c Added additional tests to explore behaviors for proposed patch in pull request. refs #578 2012-03-20 21:42:51 -04:00
Brian Morton
6c76546008 Add require bundler/setup to help enforce gem versions. 2012-03-20 18:35:24 -07:00
Blake Watters
368f5bf11a Fix issue with incorrect quoting within the mapping cache causing duplicated objects. closes #598. refs #578 2012-03-20 21:11:29 -04:00
Brian Morton
145682fdbc Fixed bug raising exception during testing when using an RKObjectLoader with no resource path. 2012-03-20 17:28:22 -07:00
Blake Watters
b0ab880868 Fixed bug raising exception when loaderForObject: is invoked with a method of RKRequestMethodInvalid. fixes #601 2012-03-19 16:03:25 -04:00
Blake Watters
868372272f Ported RestKit tests over to using the RKTestFactory and completed documentation. fixes #318 2012-03-15 23:06:49 -04:00
Blake Watters
57183b364f Fix for warning emitted due to elimination of findOrCreateInstanceOfEntity:. Search Word functionality restored. closes #584
* Updates to the Core Data layer such that NSManagedObjectContexts now have a reference to the managed object store
they belong to.
* NSManagedObject instances can now return the managed object store they belong to.
* Relaxed the coupling to the sharedManager present within the RKSearchableManagedObject class.
* Expanded documentation of RKSearchableManagedObject
2012-03-14 17:08:02 -04:00
Blake Watters
0775e1d28e Eliminate use of public in favor of public_folder to suppress Sinatra warnings. refs #293 2012-03-13 14:06:43 -04:00
Blake Watters
605f07b05b Add tmp to .gitignore and rescue LoadError when attempting to require ruby-debug. refs #293 2012-03-13 14:02:36 -04:00
Blake Watters
83ae571b0a Remove Sinatra reloader. refs #293 2012-03-13 13:51:41 -04:00
Blake Watters
8483472ffb Added rackup for executing unit test server via Thin 2012-03-13 13:18:38 -04:00
Brian Morton
80103bb6b3 Change test for allowing newly added date formatters priority so that it uses the updated fixture and reversable favoriteDate. Rearrange order of defaultDateFormatters to match their order before changing defaultDateFormatters to being prepended. 2012-03-13 09:43:37 -07:00
Brian Morton
cadf5107b8 Add favoriteDate field to RKTestUser and user fixture with a reversable dd/MM and MM/dd. 2012-03-13 09:41:49 -07:00
Brian Morton
5844de061d Add test for confirming that a newly added date formatter gets priority to be attempted first during mapping. Fix 2 tests that are going to break on the incoming pull request for inserting date formatters. 2012-03-13 09:24:09 -07:00
Blake Watters
e560578f9e Prepare project to build under Jenkins 2012-03-13 09:49:37 -04:00
Blake Watters
1bd3bfd514 Fix retain cycle issue with queued relationship connection. fixes #588 2012-03-12 20:42:52 -04:00
Blake Watters
5ffeee38d4 Ensure serializationMIMEType is configured when initializing object loaders via loaderWithURL: or loaderWithResourcePath: fixes #567 2012-03-12 20:34:31 -04:00
Blake Watters
896de8f1eb Respect modified values set for properties within key-value validation callbacks. fixes #565 2012-03-12 20:22:11 -04:00
Blake Watters
f31b586dae Rework initialization of fixtureBundle 2012-03-12 19:03:44 -04:00
Blake Watters
b8d9a0a423 Add test coverage for memory leak due to background policy. refs #548 2012-03-12 19:03:42 -04:00
Blake Watters
0448090504 Disabled invalid caching behavior for PUT & POST responses. fixes #589 2012-03-12 18:33:35 -04:00
Blake Watters
1c59f5fc1e Cleaned up the naming on RKManagedObjectStore to primaryManagedObjectContext and managedObjectContextForCurrentThread 2012-03-09 09:02:21 -05:00
Robert Altman
99a108096f Added support for parser class specification by regular expression. closes #489 2012-02-25 13:27:41 -05:00
Blake Watters
53bbeca099 Clean up build issues on OS X 2012-02-25 12:07:06 -05:00
Blake Watters
6723502372 Merge branch 'hotfix/545-conditional-nsorderedset' into development 2012-02-25 12:03:48 -05:00
Jeff Arena
32ab17fe0b Incorporate code review feedback 2012-02-23 22:39:27 -05:00
Jeff Arena
1cd22d5b33 First pass at replacing RKManagedObjectCache with a more flexible block approach that leverages the new resource path pattern matching approach to registering objectMappings. 2012-02-23 22:30:08 -05:00
Blake Watters
0660f28fc1 Sunset RKTestNewManagedObjectStore in favor of RKTestFactory 2012-02-23 20:51:11 -05:00
Blake Watters
769d4cbc0c Ensure Uploads directory stays on tree 2012-02-17 16:37:37 -05:00
Blake Watters
e904394b6b Miscellaneous cleanups 2012-02-17 16:34:03 -05:00
Blake Watters
44ff8826f7 Invalidate timeout timer when POST body data is sent. fixes #535 2012-02-16 11:07:16 -05:00
Blake Watters
4d48ef4729 Fixed breakage in OS X support 2012-02-15 17:48:59 -05:00
Rui D Lopes
693d839364 Adding the ability to set a default content decoding other than NSUTF8StringEncoding whenever HTTP headers do not contain any information. closes #547 2012-02-15 14:28:03 -05:00
Blake Watters
789b0b99eb Implemented support for hydrating to-many relationships. closes #284 2012-02-15 11:09:21 -05:00
Blake Watters
c613681dd1 Remove reference to Specs directory 2012-02-14 14:11:42 -05:00
Blake Watters
4142ffdb42 Reorganization and cleanups of Unit Tests
* Reorganized tests to accommodate split into Logic & Application.
* Eliminated 'Spec' naming in favor of 'Test' as the suite is entirely based on SenTest.
* Pulled majority of testing support classes up into the library and documented them.
* Introduced RKApplicationTests app for running the RKTableController UI tests
2012-02-10 17:32:23 -05:00