Skip to content

Commit

Permalink
Merge branch 'development' into IgnoreContentTypeWhenEmptyBody
Browse files Browse the repository at this point in the history
  • Loading branch information
stnslw committed Jul 4, 2017
2 parents 95371cd + 052b33f commit a2c5d0b
Show file tree
Hide file tree
Showing 20 changed files with 170 additions and 131 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
@@ -1 +1 @@
2.2.4
2.4.1
16 changes: 9 additions & 7 deletions .travis.yml
@@ -1,17 +1,19 @@
osx_image: xcode7.3
osx_image: xcode8.3
language: objective-c
rvm: 2.2.4
rvm: 2.4.1
cache:
- bundler
- cocoapods
before_install:
- gem install bundler
install:
- bundle install
- bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
- travis_wait 30 bundle exec pod repo update --silent
- travis_wait 30 bundle exec pod install
script:
- travis_wait 50 bundle exec rake ci
jobs:
include:
- stage: test
script: travis_retry bundle exec rake ci
- stage: pod lib lint
script: travis_wait 50 bundle exec rake lint
branches:
only:
- master
Expand Down
3 changes: 1 addition & 2 deletions Code/Network/RKObjectRequestOperationSubclass.h
Expand Up @@ -32,8 +32,7 @@
The `RKObjectRequestOperation` superclass is responsible for the invocation of this method and the subsequent handling of the mapping result or error.
@param error A pointer to an `NSError` object to be set in the event that the object mapping process has failed.
@return A mapping result or `nil` if an error has occurred.
@param completionBlock A mapping result or `nil` if an error has occurred.
*/
- (void)performMappingOnResponseWithCompletionBlock:(void(^)(RKMappingResult *mappingResult, NSError *error))completionBlock;

Expand Down
2 changes: 1 addition & 1 deletion Code/ObjectMapping/RKMappingOperationDataSource.h
Expand Up @@ -57,8 +57,8 @@
as obtaining that value is somewhat expensive.
@param mappingOperation The mapping operation requesting the target object.
@param representation A dictionary representation of the properties to be mapped onto the retrieved target object.
@param mapping The object mapping to be used to perform a mapping from the representation to the target object.
@param relationshipMapping A dictionary representation of the properties to be mapped onto the retrieved target object.
@return A key-value coding compliant object to perform the mapping on to.
*/
- (id)mappingOperation:(RKMappingOperation *)mappingOperation targetObjectForMapping:(RKObjectMapping *)mapping inRelationship:(RKRelationshipMapping *)relationshipMapping;
Expand Down
5 changes: 2 additions & 3 deletions Code/ObjectMapping/RKObjectMappingMatcher.h
Expand Up @@ -52,8 +52,7 @@
Creates and returns a key path matcher object with a given key path, and a map of expected values to associated RKObjectMapping objects that applies in the event of a positive match with its associated value. This method can evaluate the keyPath once
@param keyPath The key path to obtain the comparison value from the object being matched via `valueForKeyPath:`.
@param expectedValue The value that is expected to be read from `keyPath` if there is a match.
@param objectMapping The object mapping object that applies if the comparison value is equal to the expected value.
@param valueToObjectMapping The value that is expected to be read from `keyPath` if there is a match.
@return The receiver, initialized with the given key path and expected value map.
*/
+ (instancetype)matcherWithKeyPath:(NSString *)keyPath expectedValueMap:(NSDictionary *)valueToObjectMapping;
Expand All @@ -75,7 +74,7 @@
/**
Creates and returns a matcher object with a given block which returns the RKObjectMapping instance to use, and an optional array of possible object mappings which could be returned.
@param possibleMappings The list of known possible RKObjectMapping instances which could be returned. This is used to aid RKDynamicMapping's -objectMappings method which is used in some instances, but is not required for mapping. The block could return a new instance if needed.
@param mappings The list of known possible RKObjectMapping instances which could be returned. This is used to aid RKDynamicMapping's -objectMappings method which is used in some instances, but is not required for mapping. The block could return a new instance if needed.
@param block The block with which to evaluate the matched object, and return the object mapping to use. Return nil if no match (i.e. a `NO` return from the `-matches:` method).
@return The receiver, initialized with the given block ans possible mappings.
*/
Expand Down
9 changes: 8 additions & 1 deletion Code/Testing/RKTestFactory.m
Expand Up @@ -74,7 +74,7 @@ - (instancetype)init
{
self = [super init];
if (self) {
self.baseURL = [NSURL URLWithString:@"http://127.0.0.1:4567"];
self.baseURL = [NSURL URLWithString:@"http://localhost:4567"];
self.factoryBlocks = [NSMutableDictionary new];
self.sharedObjectsByFactoryName = [NSMutableDictionary new];
[self defineDefaultFactories];
Expand Down Expand Up @@ -254,6 +254,13 @@ + (void)setUp
if ([[NSFileManager defaultManager] fileExistsAtPath:path]) {
[[NSFileManager defaultManager] removeItemAtPath:path error:nil];
}
// Check for and remove -shm and -wal files
for (NSString *suffix in @[ @"-shm", @"-wal" ]) {
NSString *supportFilePath = [path stringByAppendingString:suffix];
if ([[NSFileManager defaultManager] fileExistsAtPath:supportFilePath]) {
[[NSFileManager defaultManager] removeItemAtPath:supportFilePath error:nil];
}
}

if ([RKTestFactory sharedFactory].setUpBlock) [RKTestFactory sharedFactory].setUpBlock();
}
Expand Down
7 changes: 4 additions & 3 deletions Examples/RKTwitter/RKTwitter.xcodeproj/project.pbxproj
Expand Up @@ -99,7 +99,7 @@
name = Products;
sourceTree = "<group>";
};
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
29B97314FDCFA39411CA2CEA = {
isa = PBXGroup;
children = (
25063C9016021B16007CAC2B /* Default-568h@2x.png */,
Expand Down Expand Up @@ -204,7 +204,8 @@
French,
German,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
mainGroup = 29B97314FDCFA39411CA2CEA;
productRefGroup = 19C28FACFE9D520D11CA2CBB /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
Expand Down Expand Up @@ -243,7 +244,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
B73887517504A74F7323976B /* [CP] Embed Pods Frameworks */ = {
Expand Down
13 changes: 7 additions & 6 deletions Gemfile
@@ -1,9 +1,10 @@
source "https://rubygems.org"

gem 'bundler'
gem 'rakeup', '~> 1.2.0'
gem 'sinatra', '~> 1.4.0'
gem 'sinatra-contrib', '~> 1.4.0'
gem 'thin', '~> 1.5.0'
gem 'cocoapods', '1.0.1'
gem 'xctasks', '~> 0.5.0'
gem 'xcpretty', '~> 0.1.6'
gem 'sinatra', '~> 1.4.8'
gem 'sinatra-contrib', '~> 1.4.7'
gem 'thin', '~> 1.7.1'
gem 'cocoapods', '1.2.1'
gem 'xctasks', '~> 0.6.0'
gem 'xcpretty', '~> 0.2.8'
122 changes: 65 additions & 57 deletions Gemfile.lock
@@ -1,61 +1,64 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.6)
CFPropertyList (2.3.5)
activesupport (4.2.9)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
backports (3.6.5)
claide (1.0.0)
cocoapods (1.0.1)
activesupport (>= 4.0.2)
claide (>= 1.0.0, < 2.0)
cocoapods-core (= 1.0.1)
cocoapods-deintegrate (>= 1.0.0, < 2.0)
cocoapods-downloader (>= 1.0.0, < 2.0)
backports (3.8.0)
claide (1.0.2)
cocoapods (1.2.1)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.1, < 2.0)
cocoapods-core (= 1.2.1)
cocoapods-deintegrate (>= 1.0.1, < 2.0)
cocoapods-downloader (>= 1.1.3, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.0.0, < 2.0)
cocoapods-try (>= 1.0.0, < 2.0)
colored (~> 1.2)
cocoapods-trunk (>= 1.2.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 0.3.0)
molinillo (~> 0.4.5)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.5.7)
nap (~> 1.0)
xcodeproj (>= 1.1.0, < 2.0)
cocoapods-core (1.0.1)
activesupport (>= 4.0.2)
ruby-macho (~> 1.1)
xcodeproj (>= 1.4.4, < 2.0)
cocoapods-core (1.2.1)
activesupport (>= 4.0.2, < 5)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.0)
cocoapods-downloader (1.0.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.3)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.0.0)
cocoapods-trunk (1.2.0)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
cocoapods-try (1.0.0)
colored (1.2)
daemons (1.2.3)
cocoapods-try (1.1.0)
colored2 (3.1.2)
daemons (1.2.4)
escape (0.0.4)
eventmachine (1.0.7)
fourflusher (0.3.1)
eventmachine (1.2.3)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
i18n (0.7.0)
json (1.8.3)
mini_portile (0.6.2)
minitest (5.9.0)
molinillo (0.4.5)
multi_json (1.11.2)
gh_inspector (1.0.3)
i18n (0.8.4)
mini_portile2 (2.2.0)
minitest (5.10.2)
molinillo (0.5.7)
multi_json (1.12.1)
nanaimo (0.2.3)
nap (1.1.0)
netrc (0.7.8)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
rack (1.5.5)
rack-protection (1.5.3)
rack
Expand All @@ -65,45 +68,50 @@ GEM
rakeup (1.2.0)
rack (~> 1.5.0)
rake (~> 10.3.0)
sinatra (1.4.6)
rack (~> 1.4)
rouge (2.0.7)
ruby-macho (1.1.0)
sinatra (1.4.8)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
sinatra-contrib (1.4.6)
sinatra-contrib (1.4.7)
backports (>= 2.0)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (>= 1.3, < 3)
thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thread_safe (0.3.5)
tilt (2.0.1)
tzinfo (1.2.2)
thin (1.7.1)
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
thread_safe (0.3.6)
tilt (2.0.7)
tzinfo (1.2.3)
thread_safe (~> 0.1)
xcodeproj (1.1.0)
activesupport (>= 3)
claide (>= 1.0.0, < 2.0)
colored (~> 1.2)
xcpretty (0.1.10)
xctasks (0.5.0)
xcodeproj (1.5.0)
CFPropertyList (~> 2.3.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.3)
xcpretty (0.2.8)
rouge (~> 2.0.7)
xctasks (0.6.0)
nokogiri (~> 1.6, >= 1.6.3.1)
rake (~> 10.0, >= 10.0.0)

PLATFORMS
ruby

DEPENDENCIES
cocoapods (= 1.0.1)
bundler
cocoapods (= 1.2.1)
rakeup (~> 1.2.0)
sinatra (~> 1.4.0)
sinatra-contrib (~> 1.4.0)
thin (~> 1.5.0)
xcpretty (~> 0.1.6)
xctasks (~> 0.5.0)
sinatra (~> 1.4.8)
sinatra-contrib (~> 1.4.7)
thin (~> 1.7.1)
xcpretty (~> 0.2.8)
xctasks (~> 0.6.0)

BUNDLED WITH
1.12.5
1.15.1
2 changes: 1 addition & 1 deletion Podfile
Expand Up @@ -9,7 +9,7 @@ def import_pods
pod 'RestKit/Testing', :path => '.'
pod 'RestKit/Search', :path => '.'

pod 'Specta', '1.0.5'
pod 'Specta', '1.0.6'
pod 'OCMock', '2.2.4'
pod 'OCHamcrest', '3.0.1'
pod 'Expecta', '1.0.5'
Expand Down
24 changes: 12 additions & 12 deletions Podfile.lock
Expand Up @@ -12,27 +12,27 @@ PODS:
- RKValueTransformers (~> 1.1.0)
- OCHamcrest (3.0.1)
- OCMock (2.2.4)
- RestKit/CoreData (0.27.0):
- RestKit/CoreData (0.27.1):
- RestKit/ObjectMapping
- RestKit/Network (0.27.0):
- RestKit/Network (0.27.1):
- RestKit/ObjectMapping
- RestKit/Support
- SOCKit
- RestKit/ObjectMapping (0.27.0):
- RestKit/ObjectMapping (0.27.1):
- ISO8601DateFormatterValueTransformer (~> 0.6.1)
- RestKit/Support
- RKValueTransformers (~> 1.1.0)
- RestKit/Search (0.27.0):
- RestKit/Search (0.27.1):
- RestKit/CoreData
- RestKit/Support (0.27.0):
- RestKit/Support (0.27.1):
- TransitionKit (~> 2.2)
- RestKit/Testing (0.27.0):
- RestKit/Testing (0.27.1):
- RestKit/Network
- RKCLLocationValueTransformer (1.1.0):
- RKValueTransformers (~> 1.1.0)
- RKValueTransformers (1.1.3)
- SOCKit (1.1)
- Specta (1.0.5)
- Specta (1.0.6)
- TransitionKit (2.2.1)

DEPENDENCIES:
Expand All @@ -46,7 +46,7 @@ DEPENDENCIES:
- RKCLLocationValueTransformer (~> 1.1.0)
- RKValueTransformers (~> 1.1.0)
- SOCKit
- Specta (= 1.0.5)
- Specta (= 1.0.6)
- TransitionKit (~> 2.2)

EXTERNAL SOURCES:
Expand All @@ -59,13 +59,13 @@ SPEC CHECKSUMS:
ISO8601DateFormatterValueTransformer: 52da467d6ec899d6aedda8e48280ac92e8ee97e6
OCHamcrest: e19857683e4eefab64b878668eac04c2f4567118
OCMock: a6a7dc0e3997fb9f35d99f72528698ebf60d64f2
RestKit: a0244db34e14ed9cf059fcee2be6733cc162c34a
RestKit: 1a69eb0ab22046d4479f62bfa42186bc87623533
RKCLLocationValueTransformer: 2cf0ea0fb7cd4bc70c56834fb92abc717c66f982
RKValueTransformers: e5ed67e3811229b616fe01bddeeafe3bb337b1b9
SOCKit: c7376ac262bea9115b8f749358f762522a47d392
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
Specta: f506f3a8361de16bc0dcf3b17b75e269072ba465
TransitionKit: 9ceccda4cd0cdc0a05ef85eb235e5a3292c3c250

PODFILE CHECKSUM: 2fcdadbabd8d5e734e1a95ec3ca7e2ef9fa9a3f9
PODFILE CHECKSUM: b8958dcfe595d2829cf28ef5cb76c4da13eb2ed0

COCOAPODS: 1.0.1
COCOAPODS: 1.2.1

0 comments on commit a2c5d0b

Please sign in to comment.