Blake Watters
161ea6aa95
Conditionally compile RKDotNetDateFormatter.h for iOS > 4.0 and OS X > 10.6. fixes #378 , refs #568
2012-02-25 11:42:44 -05:00
Blake Watters
bf1b8c5366
Merge pull request #541 from amallavarapu/patch-1
...
Added documentation for handling GET and POST params.
2012-02-24 09:05:47 -08:00
Aneil Mallavarapu
e0e30195e8
Added documentation for handling GET and POST params.
2012-02-01 04:11:16 -08:00
Blake Watters
c19a500ca8
Fix indentation inconsistencies in dealloc
2012-01-24 20:45:20 -05:00
Blake Watters
98cb113abf
Invalidate the timer before dispatching error delegate callbacks
2012-01-24 20:45:17 -05:00
Christopher Swasey
1a4bd9b4e8
Fix test for pull request 519
2012-01-24 11:10:18 -05:00
Brian Morton
7174937bb8
Remove duplicate timer creation. Fixes #517 .
2012-01-24 11:10:17 -05:00
Brian Morton
b2c4b2f677
Move RKRequest timeoutTimer creation to a helper method so that we can test the number of times it is invoked.
2012-01-24 11:10:17 -05:00
Brian Morton
e9bf8a2c92
Add test to make sure that only one timeoutTimer is created.
2012-01-24 11:10:16 -05:00
Jeff Arena
fa44916184
Merge pull request #505 from spenrose/xml-attributes-bug
...
This fixes a bug where attributes of a object would also get added to parent object.
2012-01-20 08:36:51 -08:00
Blake Watters
d0b859484e
Merge branch 'feature/513-dates-before-1970'
2012-01-20 09:36:42 -05:00
Marlon Andrade
377d350259
adding treatment for dates before jan 1st 1970
2012-01-20 09:36:22 -05:00
Blake Watters
55c72a5f35
Merge branch 'bmorton-timeouts'
2012-01-20 09:25:50 -05:00
Brian Morton
035e7732b8
Add RKRequestConnectionTimeoutError to throw when our connection timeout has been exceeded.
2012-01-20 09:20:09 -05:00
Brian Morton
90716335f5
Add support for timing out an RKRequest via a timeoutTimer and a timeout property.
...
* Add timeoutInterval property on RKRequest with a default value of 120.0
* Add timeout method that is called by the timer when the timeout interval has been exceeded to cancel the request and return an error via didFailLoadWithError:
* Add invalidateTimeoutTimer method that is called by RKResponse when the NSURLConnection begins receiving data.
* Add call to invalidateTimeoutTimer in RKRequest cancelAndInformDelegate: so we don't have a dangling timer.
* Add timer creation to sendAsynchronously and sendSynchronously
2012-01-20 09:19:45 -05:00
Brian Morton
8051fbd9ab
Invalidate the RKRequest timer in RKResponse when the NSURLConnection begins receiving data.
2012-01-20 09:17:26 -05:00
Brian Morton
8946f4d702
Add timeoutInterval property to RKClient so that it can be passed on to RKRequest.
2012-01-20 09:17:16 -05:00
Brian Morton
dab403a9c1
Responsibly invalidate the timeoutTimer when the RKRequest is deallocated. Move location of timer creation for asynchronous request.
2012-01-20 09:17:00 -05:00
Brian Morton
15d05f1493
Move the invalidateTimeoutTimer call in RKResponse from didReceiveData to didReceiveResponse and didFailWithError so we are sure its always called and as early as possible.
2012-01-20 09:15:35 -05:00
Brian Morton
23858146fc
Add /timeout route to fake a long response for testing RKRequest's timeout interval. We need to leave this around 4 seconds so we don't hold up the ruby process too long and cause the tests launched after to fail.
2012-01-20 09:15:20 -05:00
Brian Morton
b88bba9853
Add test for confirming that an RKClient object can pass through a timeoutInterval to a request.
2012-01-20 09:10:59 -05:00
Brian Morton
f9dd0e9999
Add cast to int to failureError.code so this test works on both the iOS and Mac OS X frameworks.
2012-01-20 09:10:35 -05:00
Scott Penrose
c6fd924b73
This fixes a bug where attributes of a object would also get added to parent object.
...
XML to parse
```
<exchange_rate type="XML_RATE_TYPE_EBNK_MIDDLE" valid_from="2011-08-03 00:00:00.0">
<currency name="AUD" quota="1" rate="18.416"/>
<currency name="HRK" quota="1" rate="3.25017"/>
<currency name="DKK" quota="1" rate="3.251"/>
</exchange_rate>
```
BEFORE FIX
```
<CFBasicHash 0xab93140 [0x520b38]>{type = mutable dict, count = 1,
entries =>
0 : <CFString 0xabacac0 [0x520b38]>{contents = "exchange_rate"} = <CFBasicHash 0xaba99e0 [0x520b38]>{type = mutable dict, count = 6,
entries =>
0 : <CFString 0xabc1e40 [0x520b38]>{contents = "currency"} = (
{
name = AUD;
quota = 1;
rate = "18.416";
},
{
name = HRK;
quota = 1;
rate = "3.25017";
},
{
name = DKK;
quota = 1;
rate = "3.251";
}
)
1 : <CFString 0xaba9940 [0x520b38]>{contents = "name"} = <CFString 0xaba9960 [0x520b38]>{contents = "DKK"}
2 : <CFString 0xaba9990 [0x520b38]>{contents = "rate"} = <CFString 0xaba99c0 [0x520b38]>{contents = "3.251"}
3 : <CFString 0xaba9980 [0x520b38]>{contents = "quota"} = <CFString 0xaba99a0 [0x520b38]>{contents = "1"}
4 : <CFString 0xab93180 [0x520b38]>{contents = "type"} = <CFString 0xab931b0 [0x520b38]>{contents = "XML_RATE_TYPE_EBNK_MIDDLE"}
5 : <CFString 0xab93190 [0x520b38]>{contents = "valid_from"} = <CFString 0xab93220 [0x520b38]>{contents = "2011-08-03 00:00:00.0"}
}
}
```
AFTER FIX
```
<CFBasicHash 0xa689830 [0x520b38]>{type = mutable dict, count = 1,
entries =>
0 : <CFString 0xa6816a0 [0x520b38]>{contents = "exchange_rate"} = <CFBasicHash 0xa6897c0 [0x520b38]>{type = mutable dict, count = 3,
entries =>
0 : <CFString 0xa692100 [0x520b38]>{contents = "valid_from"} = <CFString 0xa692190 [0x520b38]>{contents = "2011-08-03 00:00:00.0"}
1 : <CFString 0xa680860 [0x520b38]>{contents = "currency"} = (
{
name = AUD;
quota = 1;
rate = "18.416";
},
{
name = HRK;
quota = 1;
rate = "3.25017";
},
{
name = DKK;
quota = 1;
rate = "3.251";
}
)
2 : <CFString 0xa6920f0 [0x520b38]>{contents = "type"} = <CFString 0xa692120 [0x520b38]>{contents = "XML_RATE_TYPE_EBNK_MIDDLE"}
}
}
```
2012-01-14 17:12:17 -05:00
Blake Watters
e3264a7bfb
Merge pull request #504 from bmorton/ordered-set
...
Integrate support for NSOrderedSet
2012-01-14 08:24:14 -08:00
Brian Morton
3f0844f0d3
Add test to make sure an NSOrderedSet can be mapped to an NSArray.
2012-01-14 01:38:23 -08:00
Brian Morton
0f3f3d5702
Add support for mapping an array to an NSOrderedSet.
2012-01-13 00:04:40 -08:00
Brian Morton
3cf2ea5824
Add test for an array being mapped to an NSOrderedSet.
2012-01-13 00:04:16 -08:00
Blake Watters
d5da3ae42e
Updated visual install guide images to reflect build process changes
2012-01-11 22:27:21 -05:00
Blake Watters
8363d35e30
Remove 'file' from Specs/Uploads group. This is a test asset that should not be part of the project.
2012-01-09 21:33:13 -05:00
Ray Fix
7be7da61cb
Fix for ocassional crashes using http basic auth
2012-01-09 20:10:39 -05:00
David Young-Chan Kay
6a18ebd91b
RKRequest: Added null check for HTTP Basic username and password. Closes #493 .
2012-01-09 20:08:26 -05:00
Blake Watters
89a4e579fd
Revert "Merge branch 'nolanw-request-delegate-gets-failed-auth-challenge'"
...
This reverts commit d6510d963f , reversing
changes made to a1e2061106 .
2012-01-09 19:53:23 -05:00
Blake Watters
722d08095b
Remove UISpecRunner gem
2012-01-04 08:49:48 -05:00
Blake Watters
4d99d28a4d
Merge pull request #477 from rayfix/fix-log-root-key-path
...
Fixed logging of root key path on object mapping. Remove TODO comment.
2011-12-16 21:23:21 -08:00
chethan
ea0cbed8dc
Fixed logging of root key path on object mapping. Remove TODO comment that is done.
2011-12-16 18:20:24 -08:00
Blake Watters
091b49a553
Bump version number
2011-12-15 19:32:13 -05:00
Blake Watters
af7a7d22b6
Lowered logging level for body from Info to Debug
2011-12-15 13:41:00 -05:00
Blake Watters
d6510d963f
Merge branch 'nolanw-request-delegate-gets-failed-auth-challenge'
2011-12-13 21:17:44 -05:00
Blake Watters
e5e05a0563
Added delegate callback when authentication challenge fails. closes #462
2011-12-13 21:16:30 -05:00
Julien Grimault
a1e2061106
Modified asserts in RKObjectLoader processMappingResult to allow synchronous requests.
2011-12-13 20:58:15 -05:00
Blake Watters
d488452bcd
Fix issues with string ordering on OS X vs. iOS in unit tests
2011-12-13 20:57:26 -05:00
Blake Watters
4f24470d13
Merge pull request #465 from rayfix/url-encoding-fix
...
Encoded params from RKURLs getting extra 25's.
2011-12-13 15:02:37 -08:00
Matthias Bartelmeß
e123eaa5fb
Updated RKResponse to respect the encoding returned in the Content-Type header (charset=XXX). Exposed
...
encoding information as methods on RKResponse
2011-12-13 17:03:31 -05:00
Blake Watters
dd80df135d
Merge pull request #467 from rayfix/test-fix-2
...
Fix test: date conversion failure
2011-12-13 13:09:02 -08:00
Blake Watters
ef8bba11d6
Upgrade to LibComponentLogging Core 1.1.6 and NSLog 1.0.4 to pick up fixes for ARC builds. closes #426
2011-12-13 15:56:18 -05:00
Blake Watters
5d8e62e6a5
Merge pull request #468 from rayfix/should-delete-orphans-451
...
Add Delegate for shouldDeleteOrphanedObject:
2011-12-13 12:42:06 -08:00
Blake Watters
8a4c96d96f
Merge branch 'rayfix-test-fix-1'
2011-12-13 15:38:07 -05:00
Ray Fix
1af71ff385
Fix static analayzer warning for uninitialized variable
2011-12-13 15:37:07 -05:00
Blake Watters
aa7e76f924
Updated TESTING.md documentation to remove references to UISpecRunner
2011-12-13 15:36:41 -05:00
Blake Watters
9a37c1bd66
Moved OS X headers to Public/ and updated README.md
2011-12-13 15:36:40 -05:00