Skip to content

Commit

Permalink
Merge pull request #260 from bustoutsolutions/1.4
Browse files Browse the repository at this point in the history
Version 1.4
  • Loading branch information
pcantrell authored Jun 26, 2018
2 parents 64ea41c + 8a0b89b commit 360861a
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 41 deletions.
14 changes: 8 additions & 6 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exclude:
- "Source/SiestaUI/SiestaUI-ObjC.swift" # ditto
- "Source/Siesta/Support/Ω_Deprecations.swift" # ditto

copyright: '© 2016 [Bust Out Solutions](http://bustoutsolutions.com) under [open source license](https://github.com/bustoutsolutions/siesta/blob/master/LICENSE).'
copyright: '© 2018 [Bust Out Solutions](http://bustoutsolutions.com) under [open source license](https://github.com/bustoutsolutions/siesta/blob/master/LICENSE).'

swift_version: 4.1.2

Expand Down Expand Up @@ -39,6 +39,9 @@ custom_categories:
- RequestError
- Response
- ResponseInfo

- name: Request Customization
children:
- RequestChainAction
- RequestDelegate
- RequestCompletionHandler
Expand All @@ -55,6 +58,10 @@ custom_categories:
- TextResponseTransformer(_:)
- ImageResponseTransformer(_:)

- name: Logging
children:
- SiestaLog

- name: Caching
children:
- EntityCache
Expand All @@ -74,8 +81,3 @@ custom_categories:
- URLSessionProvider
- SessionTaskContainer
- AlamofireProvider

- name: Logging
children:
- LogCategory
- logger
2 changes: 1 addition & 1 deletion Cartfile.private
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ github "Alamofire/Alamofire" ~> 4.0

# Testing

github "pcantrell/Quick" "expose-current-spec-swift3" # fork for Swift 3, use of XCTestExpectation
github "Quick/Quick"
github "Quick/Nimble"
github "pcantrell/Nocilla" "siesta" # fork adds delay() / go(), nullability annotations
6 changes: 3 additions & 3 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "Alamofire/Alamofire" "4.5.1"
github "Quick/Nimble" "v7.0.2"
github "Alamofire/Alamofire" "4.7.2"
github "Quick/Nimble" "v7.1.2"
github "Quick/Quick" "v1.3.0"
github "pcantrell/Nocilla" "bd7ec7caa0576f08c00bbbf993a9204f93be16e3"
github "pcantrell/Quick" "ea7d540048645e84748310854e10c19ad8a1b404"
4 changes: 2 additions & 2 deletions Docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ For example, if you want to drive yourself and everyone around you into a wild r

```swift
let speechSynth = AVSpeechSynthesizer()
let originalLogger = Siesta.logger
Siesta.logger = { category, message in
let originalLogger = SiestaLog.messageHandler
SiestaLog.messageHandler = { category, message in
originalLogger(category, message)
speechSynth.speak(AVSpeechUtterance(string: message))
}
Expand Down
2 changes: 1 addition & 1 deletion Docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ A more drastic measure is to forcibly cut off all requests that attempt to reach
service.configure(whenURLMatches: { $0.host != "api.example.com" }) {
$0.decorateRequests {
_,_ in Resource.failedRequest(
RequestError(
returning: RequestError(
userMessage: "Attempted to connect to unauthorized server",
cause: UnauthorizedServer()))
}
Expand Down
16 changes: 0 additions & 16 deletions Examples/GithubBrowser/GithubBrowser.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
DA7462361B4C768B00406D67 /* Frameworks */,
DA7462371B4C768B00406D67 /* Resources */,
ABBC5F5CF6B83AF37EB2D67F /* [CP] Embed Pods Frameworks */,
DD66E6435D504CAF585B7E20 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -264,21 +263,6 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GithubBrowser/Pods-GithubBrowser-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
DD66E6435D504CAF585B7E20 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GithubBrowser/Pods-GithubBrowser-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down
10 changes: 5 additions & 5 deletions Examples/GithubBrowser/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
PODS:
- Siesta/Core (1.3.1)
- Siesta/UI (1.3.1):
- Siesta/Core (1.4.0)
- Siesta/UI (1.4.0):
- Siesta/Core

DEPENDENCIES:
- Siesta/UI (from `../..`)

EXTERNAL SOURCES:
Siesta:
:path: ../..
:path: "../.."

SPEC CHECKSUMS:
Siesta: afb4ac3ff3f7701ccd5539c7fcd9e15a05509540
Siesta: 25cfcc0aebc514af30291e62ece8ea0379539c84

PODFILE CHECKSUM: ae415ad9ad375272eab63ab45853da2148a7aa21

COCOAPODS: 1.3.1
COCOAPODS: 1.5.3
4 changes: 2 additions & 2 deletions Examples/GithubBrowser/Source/API/GithubAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class _GitHubAPI {

service.configureTransformer("/search/repositories") {
try jsonDecoder.decode(SearchResults<Repository>.self, from: $0.content)
.items
.items // Transformers can do arbitrary post-processing
}

service.configureTransformer("/repos/*/*") {
Expand All @@ -92,7 +92,7 @@ class _GitHubAPI {
}

service.configureTransformer("/repos/*/*/languages") {
// For the request, GitHub gives a response of the form {"Swift": 421956, "Objective-C": 11000, ...}.
// For this request, GitHub gives a response of the form {"Swift": 421956, "Objective-C": 11000, ...}.
// Instead of using a custom model class for this one, we just model it as a raw dictionary.
try jsonDecoder.decode([String:Int].self, from: $0.content)
}
Expand Down
1 change: 0 additions & 1 deletion Extensions/SwiftyJSON/Siesta+SwiftyJSON.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@@ -1,23 +0,0 @@
//
// Siesta+SwiftyJSON.swift
// GithubBrowser
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016 Bust Out Solutions, Inc. http://bustoutsolutions.com
Copyright (c) 2018 Bust Out Solutions, Inc. http://bustoutsolutions.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions Siesta.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Siesta"
s.version = "1.3.1"
s.version = "1.4.0"
s.summary = "Swift REST client library"

s.description = <<-DESC
Expand Down Expand Up @@ -69,7 +69,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.11"

s.source = { :git => "https://github.com/bustoutsolutions/siesta.git", :tag => "1.3.1" }
s.source = { :git => "https://github.com/bustoutsolutions/siesta.git", :tag => "1.4.0" }

s.subspec "Core" do |s|
s.source_files = "Source/Siesta/**/*"
Expand Down
2 changes: 1 addition & 1 deletion Source/Info-macOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016 Bust Out Solutions, under MIT license</string>
<string>Copyright © 2018 Bust Out Solutions, under MIT license</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down

0 comments on commit 360861a

Please sign in to comment.