Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the missing importing #108

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
5.0
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Core
github "antitypical/Result" ~> 3.2
github "antitypical/Result" ~> 4.1
6 changes: 3 additions & 3 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github "jspahrsummers/xcconfigs" ~> 0.11
github "AliSoftware/OHHTTPStubs" ~> 6.0
github "AliSoftware/OHHTTPStubs" ~> 8.0

# Specifications
github "Quick/Quick" ~> 1.1.0
github "Quick/Quick" ~> 2.1.0

# Matchers
github "Quick/Nimble" ~> 7.0.0
github "Quick/Nimble" ~> 8.0.0
8 changes: 4 additions & 4 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github "AliSoftware/OHHTTPStubs" "6.0.0"
github "Quick/Nimble" "v7.0.2"
github "Quick/Quick" "v1.2.0"
github "antitypical/Result" "3.2.4"
github "AliSoftware/OHHTTPStubs" "8.0.0"
github "Quick/Nimble" "v8.0.2"
github "Quick/Quick" "v2.1.0"
github "antitypical/Result" "4.1.0"
github "jspahrsummers/xcconfigs" "0.11"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 139 files
2 changes: 1 addition & 1 deletion Carthage/Checkouts/OHHTTPStubs
Submodule OHHTTPStubs updated 95 files
+1 −0 .gitignore
+30 −19 .travis.yml
+64 −0 CHANGELOG.md
+9 −8 Examples/ObjC/MainViewController.m
+130 −87 Examples/ObjC/MainViewController.xib
+27 −39 Examples/ObjC/OHHTTPStubsDemo.xcodeproj/project.pbxproj
+4 −1 Examples/ObjC/OHHTTPStubsDemo.xcodeproj/xcshareddata/xcschemes/OHHTTPStubsDemo.xcscheme
+5 −0 Examples/ObjC/OHHTTPStubsDemo.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+1 −1 Examples/ObjC/Podfile
+10 −10 Examples/ObjC/Podfile.lock
+3 −3 Examples/ObjC/Pods/Local Podspecs/OHHTTPStubs.podspec.json
+10 −10 Examples/ObjC/Pods/Manifest.lock
+312 −362 Examples/ObjC/Pods/Pods.xcodeproj/project.pbxproj
+4 −5 Examples/ObjC/Pods/Target Support Files/OHHTTPStubs/OHHTTPStubs.xcconfig
+17 −4 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-frameworks.sh
+16 −9 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-resources.sh
+4 −4 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.debug.xcconfig
+4 −4 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.release.xcconfig
+9 −2 Examples/Swift/AppDelegate.swift
+39 −34 Examples/Swift/Main.storyboard
+9 −9 Examples/Swift/MainViewController.swift
+32 −23 Examples/Swift/OHHTTPStubsDemo.xcodeproj/project.pbxproj
+6 −1 Examples/Swift/OHHTTPStubsDemo.xcodeproj/xcshareddata/xcschemes/OHHTTPStubsDemo.xcscheme
+5 −0 Examples/Swift/OHHTTPStubsDemo.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+10 −10 Examples/Swift/Podfile.lock
+3 −3 Examples/Swift/Pods/Local Podspecs/OHHTTPStubs.podspec.json
+10 −10 Examples/Swift/Pods/Manifest.lock
+359 −409 Examples/Swift/Pods/Pods.xcodeproj/project.pbxproj
+1 −1 Examples/Swift/Pods/Target Support Files/OHHTTPStubs/OHHTTPStubs-Info.plist
+5 −6 Examples/Swift/Pods/Target Support Files/OHHTTPStubs/OHHTTPStubs.xcconfig
+26 −0 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-Info.plist
+80 −16 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-frameworks.sh
+16 −9 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-resources.sh
+7 −6 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.debug.xcconfig
+7 −6 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.release.xcconfig
+2 −3 OHHTTPStubs.podspec
+59 −166 OHHTTPStubs/OHHTTPStubs.xcodeproj/project.pbxproj
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs Mac Framework.xcscheme
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs iOS Framework.xcscheme
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs iOS StaticLib.xcscheme
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs tvOS Framework.xcscheme
+30 −0 OHHTTPStubs/OHHTTPStubsProject.xcconfig
+1 −1 OHHTTPStubs/Podfile
+6 −2 OHHTTPStubs/Podfile.lock
+6 −2 OHHTTPStubs/Pods/Manifest.lock
+786 −959 OHHTTPStubs/Pods/Pods.xcodeproj/project.pbxproj
+5 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-c94d3492/AFNetworking-c94d3492-dummy.m
+8 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-c94d3492/AFNetworking-c94d3492-prefix.pch
+9 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-c94d3492/AFNetworking-c94d3492.xcconfig
+5 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS/AFNetworking-iOS-dummy.m
+8 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS/AFNetworking-iOS-prefix.pch
+9 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS/AFNetworking-iOS.xcconfig
+0 −5 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS7.0/AFNetworking-iOS7.0-dummy.m
+0 −15 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS7.0/AFNetworking-iOS7.0-prefix.pch
+0 −9 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS7.0/AFNetworking-iOS7.0.xcconfig
+0 −5 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS8.0/AFNetworking-iOS8.0-dummy.m
+0 −9 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS8.0/AFNetworking-iOS8.0.xcconfig
+5 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS/AFNetworking-tvOS-dummy.m
+8 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS/AFNetworking-tvOS-prefix.pch
+9 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS/AFNetworking-tvOS.xcconfig
+0 −5 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS9.0/AFNetworking-tvOS9.0-dummy.m
+0 −9 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS9.0/AFNetworking-tvOS9.0.xcconfig
+0 −5 ...chability-Security-Serialization/AFNetworking.root-NSURLSession-Reachability-Security-Serialization-dummy.m
+0 −9 ...hability-Security-Serialization/AFNetworking.root-NSURLSession-Reachability-Security-Serialization.xcconfig
+3 −1 ... Files/Pods-TestingPods-OHHTTPStubs Mac Tests/Pods-TestingPods-OHHTTPStubs Mac Tests-acknowledgements.plist
+5 −4 ... Support Files/Pods-TestingPods-OHHTTPStubs Mac Tests/Pods-TestingPods-OHHTTPStubs Mac Tests.debug.xcconfig
+5 −4 ...upport Files/Pods-TestingPods-OHHTTPStubs Mac Tests/Pods-TestingPods-OHHTTPStubs Mac Tests.release.xcconfig
+3 −1 ...ods-TestingPods-OHHTTPStubs iOS Fmk Tests/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests-acknowledgements.plist
+5 −4 ... Files/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests.debug.xcconfig
+5 −4 ...iles/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests.release.xcconfig
+3 −1 ...ods-TestingPods-OHHTTPStubs iOS Lib Tests/Pods-TestingPods-OHHTTPStubs iOS Lib Tests-acknowledgements.plist
+5 −4 ... Files/Pods-TestingPods-OHHTTPStubs iOS Lib Tests/Pods-TestingPods-OHHTTPStubs iOS Lib Tests.debug.xcconfig
+5 −4 ...iles/Pods-TestingPods-OHHTTPStubs iOS Lib Tests/Pods-TestingPods-OHHTTPStubs iOS Lib Tests.release.xcconfig
+3 −1 ...s-TestingPods-OHHTTPStubs tvOS Fmk Tests/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests-acknowledgements.plist
+5 −4 ...iles/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests.debug.xcconfig
+5 −4 ...es/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests.release.xcconfig
+6 −6 OHHTTPStubs/Sources/HTTPMessage/OHHTTPStubsResponse+HTTPMessage.m
+1 −1 OHHTTPStubs/Sources/JSON/OHHTTPStubsResponse+JSON.m
+26 −26 OHHTTPStubs/Sources/Mocktail/OHHTTPStubs+Mocktail.m
+8 −0 OHHTTPStubs/Sources/OHHTTPStubs.h
+69 −19 OHHTTPStubs/Sources/OHHTTPStubs.m
+4 −4 OHHTTPStubs/Sources/OHHTTPStubsResponse.m
+66 −1 OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift
+22 −22 OHHTTPStubs/UnitTests/Test Suites/AFNetworkingTests.m
+21 −20 OHHTTPStubs/UnitTests/Test Suites/MocktailTests.m
+44 −44 OHHTTPStubs/UnitTests/Test Suites/NSURLConnectionDelegateTests.m
+13 −13 OHHTTPStubs/UnitTests/Test Suites/NSURLConnectionTests.m
+324 −108 OHHTTPStubs/UnitTests/Test Suites/NSURLSessionTests.m
+37 −37 OHHTTPStubs/UnitTests/Test Suites/NilValuesTests.m
+1 −1 OHHTTPStubs/UnitTests/Test Suites/OHPathHelpersTests.m
+133 −31 OHHTTPStubs/UnitTests/Test Suites/SwiftHelpersTests.swift
+6 −6 OHHTTPStubs/UnitTests/Test Suites/TimingTests.m
+8 −8 OHHTTPStubs/UnitTests/Test Suites/WithContentsOfURLTests.m
+15 −30 README.md
+2 −2 Rakefile
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
Submodule Quick updated 99 files
+2 −2 .gitignore
+4 −2 .hound.yml
+1 −1 .swift-version
+48 −40 .travis.yml
+2 −2 Dangerfile
+1 −0 Documentation/README.md
+2 −2 Documentation/en-us/ConfiguringQuick.md
+14 −14 Documentation/en-us/NimbleAssertions.md
+1 −1 Documentation/en-us/QuickExamplesAndGroups.md
+1 −1 Documentation/en-us/SharedExamples.md
+75 −0 Documentation/en-us/TestingApps.md
+14 −14 Documentation/ja/NimbleAssertions.md
+1 −1 Documentation/ja/QuickExamplesAndGroups.md
+203 −0 Documentation/ko-kr/ArrangeActAssert.md
+80 −0 Documentation/ko-kr/BehavioralTesting.md
+99 −0 Documentation/ko-kr/ConfiguringQuick.md
+25 −0 Documentation/ko-kr/InstallingFileTemplates.md
+141 −0 Documentation/ko-kr/InstallingQuick.md
+25 −0 Documentation/ko-kr/MoreResources.md
+97 −0 Documentation/ko-kr/NimbleAssertions.md
+462 −0 Documentation/ko-kr/QuickExamplesAndGroups.md
+49 −0 Documentation/ko-kr/QuickInObjectiveC.md
+35 −0 Documentation/ko-kr/README.md
+80 −0 Documentation/ko-kr/SettingUpYourXcodeProject.md
+116 −0 Documentation/ko-kr/SharedExamples.md
+129 −0 Documentation/ko-kr/TestUsingTestDoubles.md
+173 −0 Documentation/ko-kr/TestingApps.md
+10 −0 Documentation/ko-kr/Troubleshooting.md
+12 −12 Documentation/zh-cn/NimbleAssertions.md
+1 −1 Documentation/zh-cn/QuickExamplesAndGroups.md
+1 −1 Externals/Nimble
+1 −1 Gemfile
+65 −57 Gemfile.lock
+16 −0 Package.resolved
+35 −37 Package.swift
+6 −4 [email protected]
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.h
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.m
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Swift/___FILEBASENAME___.swift
+1 −1 Quick Templates/Quick Spec Class.xctemplate/Objective-C/___FILEBASENAME___.m
+1 −1 Quick Templates/Quick Spec Class.xctemplate/Swift/___FILEBASENAME___.swift
+10 −3 Quick.podspec
+127 −71 Quick.xcodeproj/project.pbxproj
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-iOS.xcscheme
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-macOS.xcscheme
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-tvOS.xcscheme
+8 −0 Quick.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+8 −0 Quick.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+3 −1 README.md
+13 −5 Rakefile
+1 −1 Sources/Quick/Behavior.swift
+17 −12 Sources/Quick/Callsite.swift
+2 −2 Sources/Quick/Configuration/Configuration.swift
+4 −4 Sources/Quick/Configuration/QuickConfiguration.swift
+10 −10 Sources/Quick/DSL/DSL.swift
+20 −15 Sources/Quick/DSL/World+DSL.swift
+1 −1 Sources/Quick/ErrorUtility.swift
+6 −9 Sources/Quick/Example.swift
+3 −9 Sources/Quick/ExampleMetadata.swift
+3 −9 Sources/Quick/Filter.swift
+2 −2 Sources/Quick/NSBundle+CurrentTestBundle.swift
+0 −33 Sources/Quick/NSString+C99ExtendedIdentifier.swift
+2 −2 Sources/Quick/QuickMain.swift
+1 −1 Sources/Quick/QuickSelectedTestSuiteBuilder.swift
+31 −11 Sources/Quick/QuickSpec.swift
+1 −1 Sources/Quick/QuickTestSuite.swift
+46 −0 Sources/Quick/String+C99ExtendedIdentifier.swift
+6 −12 Sources/Quick/World.swift
+6 −1 Sources/QuickObjectiveC/Configuration/QuickConfiguration.m
+6 −2 Sources/QuickObjectiveC/DSL/QCKDSL.m
+0 −20 Sources/QuickObjectiveC/DSL/World+DSL.h
+6 −0 Sources/QuickObjectiveC/QuickSpec.h
+11 −3 Sources/QuickObjectiveC/QuickSpec.m
+0 −18 Sources/QuickObjectiveC/World.h
+5 −0 Sources/QuickObjectiveC/XCTestSuite+QuickTestSuiteBuilder.m
+16 −15 Tests/LinuxMain.swift
+3 −2 Tests/QuickTests/QuickTestHelpers/SpecRunner.swift
+3 −8 Tests/QuickTests/QuickTestHelpers/TestRun.swift
+5 −5 Tests/QuickTests/QuickTestHelpers/XCTestCaseProvider.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/AfterEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/BeforeEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/BehaviorTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/ContextTests.swift
+37 −0 Tests/QuickTests/QuickTests/FunctionalTests/CurrentSpecTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/DescribeTests.swift
+2 −2 Tests/QuickTests/QuickTests/FunctionalTests/ItTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/ObjC/ItTests+ObjC.m
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/SharedExamplesTests.swift
+8 −24 Tests/QuickTests/QuickTests/Helpers/QCKSpecRunner.m
+24 −0 Tests/QuickTests/QuickTests/Helpers/QuickSpec+MethodList.swift
+0 −11 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.h
+0 −31 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.m
+57 −0 Tests/QuickTests/QuickTests/Helpers/QuickSpecRunner.swift
+1 −2 Tests/QuickTests/QuickTests/Helpers/QuickTestsBridgingHeader.h
+0 −20 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.h
+0 −54 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.m
+47 −0 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.swift
+1 −1 script/release
+0 −4 script/travis-install-macos
17 changes: 9 additions & 8 deletions Heimdallr.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = DC545DB81A89F0F10051A575;
Expand Down Expand Up @@ -738,7 +739,7 @@
DYLIB_CURRENT_VERSION = 1;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -753,7 +754,7 @@
DYLIB_CURRENT_VERSION = 1;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -765,7 +766,7 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -777,7 +778,7 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -790,7 +791,7 @@
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -803,7 +804,7 @@
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -814,7 +815,7 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -825,7 +826,7 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
8 changes: 8 additions & 0 deletions Heimdallr.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
1 change: 1 addition & 0 deletions Heimdallr/OAuthAccessToken.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import Result

/// An access token is used for authorizing requests to the resource endpoint.
Expand Down
1 change: 1 addition & 0 deletions Heimdallr/OAuthAccessTokenKeychainStore.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import Security

internal struct Keychain {
Expand Down
8 changes: 5 additions & 3 deletions Heimdallr/OAuthError.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/// See: The OAuth 2.0 Authorization Framework, 5.2 NSError Response
/// <https://tools.ietf.org/html/rfc6749#section-5.2>

import Foundation

public let OAuthErrorDomain = "OAuthErrorDomain"
public let OAuthErrorInvalidRequest = 1
public let OAuthErrorInvalidClient = 2
Expand All @@ -21,7 +23,7 @@ public enum OAuthErrorCode: String {
}

public extension OAuthErrorCode {
public var intValue: Int {
var intValue: Int {
switch self {
case .InvalidRequest:
return OAuthErrorInvalidRequest
Expand Down Expand Up @@ -60,7 +62,7 @@ public class OAuthError {
}

public extension OAuthError {
public var nsError: NSError {
var nsError: NSError {
var userInfo = [String: AnyObject]()

if let description = description {
Expand Down Expand Up @@ -88,7 +90,7 @@ extension OAuthError {
}

public class func decode(data: Data) -> OAuthError? {
guard let json: AnyObject? = try? JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions(rawValue: 0)) as AnyObject?,
guard let json: AnyObject = try? JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions(rawValue: 0)) as AnyObject?,
let jsonDictionary = json as? [String: AnyObject] else {
return nil
}
Expand Down
8 changes: 4 additions & 4 deletions Heimdallr/URLRequestExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private let HTTPRequestHeaderFieldAuthorization = "Authorization"

public extension URLRequest {
/// Returns the HTTP `Authorization` header value or `nil` if not set.
public var HTTPAuthorization: String? {
var HTTPAuthorization: String? {
return value(forHTTPHeaderField: HTTPRequestHeaderFieldAuthorization)
}

Expand All @@ -57,15 +57,15 @@ public extension URLRequest {
/// - parameter value: The value to be set or `nil`.
///
/// TODO: Declarations in extensions cannot override yet.
public mutating func setHTTPAuthorization(_ value: String?) {
mutating func setHTTPAuthorization(_ value: String?) {
setValue(value, forHTTPHeaderField: HTTPRequestHeaderFieldAuthorization)
}

/// Sets the HTTP `Authorization` header value using the given HTTP
/// authentication.
///
/// - parameter authentication: The HTTP authentication to be set.
public mutating func setHTTPAuthorization(_ authentication: HTTPAuthentication) {
mutating func setHTTPAuthorization(_ authentication: HTTPAuthentication) {
setHTTPAuthorization(authentication.value)
}

Expand All @@ -74,7 +74,7 @@ public extension URLRequest {
/// - parameter parameters: The parameters to be encoded or `nil`.
///
/// TODO: Tests crash without named parameter.
public mutating func setHTTPBody(parameters: [String: AnyObject]?) {
mutating func setHTTPBody(parameters: [String: AnyObject]?) {
if let parameters = parameters {
var components: [(String, String)] = []
for (key, value) in parameters {
Expand Down