Skip to content

Commit

Permalink
Merge branch 'release/1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
akashivskyy committed Nov 3, 2017
2 parents 3fe63f0 + 50ce0e2 commit 4e2f63e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ pod 'ResponseDetective'

This project is made with <3 by [Netguru](https://netguru.co) and maintained by [Adrian Kashivskyy](https://github.com/akashivskyy).

### Release names

Starting from version 1.0.0, ResponseDetective's releases are named after [Sherlock Holmes canon stories](http://www.sherlockian.net/investigating/canon/), in chronological order. **What happens if we reach 60 releases and there are no more stories?** We don't know, maybe we'll start naming them after cats or something.

### License

ResponseDetective is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for more info.
2 changes: 1 addition & 1 deletion ResponseDetective.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
# Description

spec.name = 'ResponseDetective'
spec.version = '1.2.1'
spec.version = '1.2.2'
spec.summary = 'Sherlock Holmes of the networking layer'
spec.homepage = 'https://github.com/netguru/ResponseDetective'

Expand Down
2 changes: 1 addition & 1 deletion ResponseDetective/Configuration/Common-Base.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// MARK: Build

_BUILD_VERSION = 1.2.1
_BUILD_VERSION = 1.2.2

// MARK: Deployment

Expand Down
12 changes: 10 additions & 2 deletions ResponseDetective/Sources/ConsoleOutputFacility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ import Foundation
$0 + ["\($1.0): \($1.1)"]
}
let body = request.deserializedBody.map {
$0.characters.split { $0 == "\n" }.map(String.init)
#if swift(>=3.2)
return $0.split { $0 == "\n" }.map(String.init)
#else
return $0.characters.split { $0 == "\n" }.map(String.init)
#endif
} ?? ["<none>"]
printBoxString(title: "<\(request.identifier)> [REQUEST] \(request.method) \(request.urlString)", sections: [
("Headers", headers),
Expand All @@ -76,7 +80,11 @@ import Foundation
$0 + ["\($1.0): \($1.1)"]
}
let body = response.deserializedBody.map {
$0.characters.split { $0 == "\n" }.map(String.init)
#if swift(>=3.2)
return $0.split { $0 == "\n" }.map(String.init)
#else
return $0.characters.split { $0 == "\n" }.map(String.init)
#endif
} ?? ["<none>"]
printBoxString(title: "<\(response.requestIdentifier)> [RESPONSE] \(response.statusCode) (\(response.statusString.uppercased())) \(response.urlString)", sections: [
("Headers", headers),
Expand Down

0 comments on commit 4e2f63e

Please sign in to comment.