Marcus Brito
ea100b6aac
Add a RKRequest attribute to control redirect handling
...
The default behavior is the same as before, to follow redirects. If RKRequest.followRedirect is set to NO, then a redirect (301, 302, 307) response will not be followed, and the request processing will proceed using the current request only.
2012-04-17 21:16:32 -04:00
Jon Nolen
e0b248da46
fixing RKDotNetDateFormatter not correctly mapping dates in RKObjectMappingOperation.
2012-04-17 21:00:28 -04:00
Sylvain Guillopé
46f668d7e9
Added support for connection:didReceiveResponse: to be forwarded from RKResponse through RKRequestDelegate
2012-04-17 20:57:52 -04:00
Blake Watters
7235499d15
Fix invalid spelling of persistent merged inadvertantly
2012-04-17 12:50:21 -04:00
Blake Watters
ef7dc24969
Implemented dynamic factories using blocks. closes #682
2012-04-17 12:41:26 -04:00
Blake Watters
a02b0f0d02
Merge pull request #674 from emcmanus/development
...
Fix spelling of "persistent store"
2012-04-16 18:55:55 -07:00
Blake Watters
75e59813e6
Migrate RKTestFactory didInitialize callback out of init
2012-04-16 14:45:04 -04:00
Ed McManus
0df8c7ea73
Fix spelling of persistent store.
2012-04-14 11:48:22 -07:00
Aaron Crespo
22225cf8a0
Fixed Static analysis warnings.
2012-04-11 22:44:58 -04:00
Blake Watters
fd9ee9952c
Add extern declaration to constants in RKRequestCache. fixes #649 , #652
2012-04-11 21:04:00 -04:00
Blake Watters
3eb4091ffb
Replace use of NSOrderedSet with NSArray to ensure compatibility with iOS 4.x SDK. fixes #664
2012-04-11 13:00:18 -04:00
Blake Watters
d95823d089
Fix incorrect handling of nil values when sectioning an array by keyPath
2012-04-10 19:22:30 -04:00
Blake Watters
de52c1ad52
Do not removeAllSections before loading table items into a section
2012-04-10 19:22:28 -04:00
Blake Watters
0d80bc3744
Switch default cacheStrategy to RKFetchRequestManagedObjectCache. closes #660
2012-04-10 15:16:28 -04:00
Blake Watters
386c7aea6d
Added convenience method numberOfRowsInSectionAtIndex: to RKTableController for easily counting rows in a section
2012-04-10 14:30:38 -04:00
Blake Watters
76f2344582
Replace implementation of sectionsGroupedByKeyPath: due to issues with valueForKeyPath: mutating ordering
2012-04-10 14:30:38 -04:00
Blake Watters
b282e3a813
Added support for grouping objects into sections within RKTableController. closes #658
2012-04-10 11:34:22 -04:00
Blake Watters
b27be1cbc5
Invoke self instead of self.delegate in thread safe invocation from managed object loader. refs #655
2012-04-10 11:33:36 -04:00
Blake Watters
aa7778bbfd
Guard notification configurations for nil in RKAbstractTableController
2012-04-09 17:38:49 -04:00
Blake Watters
757e01e1f3
Change reachabilityObserver reference to retain for RKRequest
2012-04-09 17:38:49 -04:00
Blake Watters
af7ecee223
Added parameter assertions to RKParams and cleaned up spacing issues
2012-04-09 17:38:49 -04:00
Blake Watters
b9d72ce7fc
Fixed invalid spelling RKManagedObjectCacheing -> RKManagedObjectCaching. Updated filenames to match.
2012-04-09 17:38:22 -04:00
Blake Watters
515a8dfcfb
Normalized the bundle identifier for Logic and Application Tests to 'org.restkit.tests'
2012-04-09 17:38:21 -04:00
Blake Watters
b18abc04ed
Fix broken build from merge of 0.10.0
2012-04-06 00:04:20 -04:00
Blake Watters
a8483ca643
Merge branch 'release/0.10.0' into development
2012-04-04 20:19:43 -04:00
Blake Watters
5abf5569b6
Remove import of RKTableView.h
2012-04-04 13:47:54 -04:00
Jawwad Ahmad
ad7da9054f
Add RKLogConfigureFromEnvironment() to RKLog.m.
...
Added a new RKLogConfigureFromEnvironment() function to RKLog.m to allow the configuration of logging components and logging levels via environment variables. Closes #640 .
2012-04-04 13:27:25 -04:00
Blake Watters
cfd473e547
Added support for configuring class -> table cell mappings using objectClassName instead of Class object
2012-04-04 10:39:36 -04:00
Blake Watters
2723a11294
Reorganized categories under RKAdditions naming convention. Expanded documentation.
2012-04-04 09:08:55 -04:00
Blake Watters
423df93a59
Add Apache license notice to RKMappingTest
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
61aefd5eda
Restore default cache strategy to In Memory Cache
2012-04-04 08:20:21 -04:00
Blake Watters
d943d9b932
Ensure In Memory Cache is scoped to the target managed object context
2012-04-04 08:17:23 -04:00
Blake Watters
732b0cd181
Namespace the RKRequestCache constants
2012-04-03 23:39:55 -04:00
Blake Watters
ed26aa2d82
Remove inaccurate comment about MD5 generation for files
2012-04-03 23:39:55 -04:00
Blake Watters
9cffb75174
Add Objective-C Category fix to mapping provider core data extensions
...
and add source file to OS X build target.
2012-04-03 23:39:55 -04:00
Blake Watters
0771b3e9b3
Added macro for ignoring delegate messages sent after an RKRequest has been cancelled.
...
Fixes intermittent crash in the test suite due to authentication challenge callbacks being
processed after the request is through. fixes #639
2012-04-03 23:39:55 -04:00
Blake Watters
59eec38f6e
Updated RKDirectory with method for ensuring existence of directories. RKTestEnvironment
...
now ensures the Caches and Application Data directories exist at test initialization.
Enables test suite to run from command line or with a CI environment. refs #293
2012-04-03 23:39:43 -04:00
Blake Watters
1f53d45bf9
Raise an assertion in the event a mapping test is invoked with a mapping containing a nil
...
target object class.
2012-04-03 23:39:43 -04:00
Blake Watters
73f7bf88a2
Ensure that managed object mapping instances fail to initialize if they target
...
a managedObjectClass that is not part of the project (i.e. source files are missing).
2012-04-03 23:39:43 -04:00
Blake Watters
e79b79ebac
Change behavior of delegate callbacks during 204 (No Content) response. refs #633
2012-04-03 23:39:43 -04:00
Blake Watters
887b4a4743
Added support for configuring objectClass using the class name instead of Class object.
2012-04-03 23:39:43 -04:00
Blake Watters
ddf2cb1a79
Added support for connecting relationships where the destination entity does not have an inherited
...
managedObjectClass. refs #627 [AWAITING TESTS]
2012-04-03 23:39:42 -04:00
Blake Watters
54a441783c
Delete the store file on every instantiation of the managedObjectStore via the test factory
2012-04-03 23:39:42 -04:00
Blake Watters
d633cf4c2d
Updated RKMappingTest to make performMapping public and assign instantiated destinationObject to
...
the property to support testing portions of the mapping not expressed via key path transformations
(the connection of Core Data relationships, for example).
2012-04-03 23:39:42 -04:00
Blake Watters
67d5cf08c1
Log the name of the entity during failure to connect relationships
2012-04-03 23:39:42 -04:00
Blake Watters
212c243203
Added rootKeyPath option to RKMappingTest
2012-04-03 23:39:42 -04:00
Blake Watters
8aedbeb1a5
Added helper methods for deleting managed object stores
2012-04-03 23:39:42 -04:00
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
1b324ccc80
Temporary workaround for duplicated objects caused by RKInMemoryMappingCache. refs #612
...
There are some issues with the current implementation of the RKInMemoryMappingCache that
are allowing the creation of duplicated objects. This commit switches the default cacheStrategy
to RKFetchRequestMappingCache. The primary key branch (#613 ) contains architecture
improvements that allow for a robust fix to the issues in the memory based cache.
2012-03-31 16:44:35 -04:00