Commit Graph

50 Commits

Author SHA1 Message Date
Blake Watters
ce6b0829e4 Convert RestKit to ARC 2012-08-28 17:34:58 -04:00
Blake Watters
d926e240f8 Introduce RKPropertyMapping abstract superclass for RKAttributeMapping and RKRelationshipMapping.
Add primitives for working with attribute, relationship, and property mapping objects.
2012-08-28 14:14:20 -04:00
Blake Watters
632a1de039 Minor method signature change on serializer 2012-08-07 17:06:57 -04:00
Blake Watters
64c378a8bf Fix warnings related to deprecation of managed object store save 2012-08-07 17:04:17 -04:00
Blake Watters
232b3eb861 Implemented new search engine for managed objects. 2012-08-01 18:12:53 -04:00
Blake Watters
6b315fbd54 Updates to entity cache and other components to operate in parent/child context world. 2012-07-20 14:48:09 -04:00
Blake Watters
e952f451fb Eliminated the use of the ActiveRecord pattern across the library. 2012-07-20 14:48:09 -04:00
Blake Watters
a8f64e7982 Continued cleanup related to managed object context work 2012-07-17 13:44:50 -04:00
Blake Watters
b25a1833b3 Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates. 2012-07-16 22:47:06 -04:00
Blake Watters
f0706dbdbf Work in progress
Conflicts:
	Code/CoreData/RKManagedObjectLoader.h
	Code/CoreData/RKManagedObjectLoader.m
	Code/CoreData/RKManagedObjectMapping.m
	Code/CoreData/RKManagedObjectMappingOperation.m
	Code/CoreData/RKManagedObjectStore.m
	Code/CoreData/RKManagedObjectThreadSafeInvocation.h
	Code/CoreData/RKManagedObjectThreadSafeInvocation.m
	Code/CoreData/RKSearchableManagedObject.m
	Code/ObjectMapping/RKObjectLoader.m
	Code/ObjectMapping/RKObjectMapper.h
	Code/ObjectMapping/RKObjectMappingOperation.m
	RestKit.xcodeproj/project.pbxproj
	Tests/Logic/CoreData/RKManagedObjectThreadSafeInvocationTest.m
2012-07-13 13:07:42 -04:00
Blake Watters
f825579a2a Cleaned up all but one remaining broken test 2012-07-11 18:53:46 -04:00
Blake Watters
a51f7ddc51 [REBASE] Cleaned up routing tests and dealloc 2012-07-11 17:01:32 -04:00
Blake Watters
fe9bfe59da [REBASE] Rename Router -> RouteSet. Add new Router class for generating URL's from the routes. 2012-07-11 17:00:32 -04:00
Blake Watters
6c3b75039b [REBASE ME] Refactored Router for simplicity, nearly done with design. Initial support for relationship loading from object manager. 2012-07-11 16:52:46 -04:00
Blake Watters
57e4e0933a Migrated from Grand Central Dispatch queue for mapping into an NSOperationQueue to enable KVO 2012-07-11 16:43:19 -04:00
Blake Watters
f18f9337f3 Added support for comparison of attribute, relationship, and object mappings via isEqualToMapping:. closes #803 2012-07-11 16:16:27 -04:00
Blake Watters
ffa2fc685e Introduced named route support. refs #779
* Provides for the registration of route either by class and method or via symbolic name
* Changed routes representation from simple dictionary to RKRoute model
* Eliminated RKRouter as a protocol
* Migrated RKObjectRouter to Network layer and renamed to RKRouter
* Added router as property of RKClient, RKObjectManager now proxies access
2012-07-11 16:06:55 -04:00
Jawwad Ahmad
82f4630d36 Whitespace syntax cleanup. Refs #614 2012-07-11 10:41:38 -04:00
Jawwad Ahmad
abb46c382c Ensure the stars for all pointers belong to the variable rather than the type. Refs #614 2012-06-04 22:47:30 -04:00
Jawwad Ahmad
eaa5484b01 Placing opening braces on a new line for methods to match Apple convention. Refs #614
Used uncrustify's "nl_fdef_brace = add" option to detect issues.
2012-06-04 00:36:19 -04:00
Jawwad Ahmad
746f31c26d Fix issues identified by uncrustify's "sp_assign = add" option. Refs #614 2012-06-03 23:14:09 -04:00
Blake Watters
016f13dad0 Convert all tabs to four spaces. refs #743 2012-05-17 18:10:59 -04:00
Blake Watters
fcb973056b Cleanup trailing whitespace. refs #743 2012-05-17 18:00:16 -04:00
Boris Dušek
e932c31cde Update RKObjectManager to observe changes to the reachability observer of
the underlying RKClient object. refs #717
2012-05-16 15:10:18 -04:00
Blake Watters
6bbc00296d Add delegate methods to RKObjectMappingOperationDelegate for tracking mappable content that is not
set due to an unchanged value. Update RKMapperTest to correctly validate mappings that do not result
in a value change (typically nil => nil). closes #72, fixes #634
2012-05-09 19:12:09 -04:00
Blake Watters
ef7dc24969 Implemented dynamic factories using blocks. closes #682 2012-04-17 12:41:26 -04:00
Ed McManus
0df8c7ea73 Fix spelling of persistent store. 2012-04-14 11:48:22 -07:00
Blake Watters
2723a11294 Reorganized categories under RKAdditions naming convention. Expanded documentation. 2012-04-04 09:08:55 -04:00
Blake Watters
457a6126cf Refresh copyright notices for all source files 2012-04-04 09:08:54 -04:00
Blake Watters
e6c4d2a24b OS X specific test fixes 2012-04-03 23:39:55 -04:00
Blake Watters
4c124ab5bf Fix broken test due to missing resourcePath 2012-04-03 23:39:55 -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
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
Blake Watters
bc82f5a1ac Integrated support and test coverage for mapping relationships onto NSOrderedSet values. closes #578 2012-03-20 22:14:31 -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
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
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
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
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
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
e904394b6b Miscellaneous cleanups 2012-02-17 16:34:03 -05:00
Blake Watters
4d48ef4729 Fixed breakage in OS X support 2012-02-15 17:48:59 -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