Skip to content

Commit

Permalink
updated TurnstileWeb to 8-24
Browse files Browse the repository at this point in the history
  • Loading branch information
edjiang committed Aug 26, 2016
1 parent eac3f4a commit 3b1a49f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 171 deletions.
4 changes: 0 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ var package = Package(
.Package(url: "https://github.com/vapor/json.git", majorVersion: 0, minor: 5)
]
)

#if os(Linux)
package.dependencies.append(Package.Dependency.Package(url: "https://github.com/czechboy0/SecretSocks.git", majorVersion: 0, minor: 6))
#endif
6 changes: 1 addition & 5 deletions Sources/TurnstileWeb/OAuth2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ public class OAuth2 {
/// The Token Endpoint of the OAuth 2 Server
public let tokenURL: String

#if os(Linux)
let HTTPClient = Client<TLSClientStream>.self
#else
let HTTPClient = Client<FoundationStream>.self
#endif
let HTTPClient = BasicClient.self


/// Creates the OAuth 2 client
Expand Down
70 changes: 0 additions & 70 deletions Sources/TurnstileWeb/TLSClientStream.swift

This file was deleted.

3 changes: 1 addition & 2 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ XCTMain([
testCase(URandomTests.allTests),
testCase(BCryptTests.allTests),
testCase(FacebookTests.allTests),
testCase(OAuth2Tests.allTests),
testCase(TLSClientStreamTests.allTests)
testCase(OAuth2Tests.allTests)
])
16 changes: 4 additions & 12 deletions Tests/TurnstileWebTests/FacebookTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,15 @@ import JSON
import Turnstile
import Foundation
import Transport
import URI

class FacebookTests: XCTestCase {
var facebook: Facebook!
#if os(Linux)
let HTTPClient = Client<TLSClientStream>.self
#else
let HTTPClient = Client<FoundationStream>.self
#endif
let HTTPClient = BasicClient.self

override func setUp() {
#if os(OSX) || os(iOS)
let clientID = ProcessInfo.processInfo.environment["FACEBOOK_CLIENT_ID"] ?? ""
let clientSecret = ProcessInfo.processInfo.environment["FACEBOOK_CLIENT_SECRET"] ?? ""
#elseif os(Linux)
let clientID = ProcessInfo.processInfo().environment["FACEBOOK_CLIENT_ID"] ?? ""
let clientSecret = ProcessInfo.processInfo().environment["FACEBOOK_CLIENT_SECRET"] ?? ""
#endif
let clientID = ProcessInfo.processInfo.environment["FACEBOOK_CLIENT_ID"] ?? ""
let clientSecret = ProcessInfo.processInfo.environment["FACEBOOK_CLIENT_SECRET"] ?? ""

facebook = Facebook(clientID: clientID, clientSecret: clientSecret)
}
Expand Down
78 changes: 0 additions & 78 deletions Tests/TurnstileWebTests/TLSClientStreamTests.swift

This file was deleted.

0 comments on commit 3b1a49f

Please sign in to comment.