Skip to content

Commit

Permalink
Migrating code to swift 06-06.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolivieri committed Jun 24, 2016
1 parent fe97002 commit 70acf67
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEVELOPMENT-SNAPSHOT-2016-06-06-a
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let package = Package(
],
dependencies: [
//.Package(url: "https://github.com/behrang/YamlSwift.git", majorVersion: 1),
.Package(url: "https://github.com/IBM-Swift/SwiftyJSON.git", majorVersion: 7)
.Package(url: "https://github.com/IBM-Swift/SwiftyJSON.git", majorVersion: 9)
],
testDependencies: []
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This library determines if you are running your application "locally" or on the
For the implementation of this Swift package, we used as inspiration a similar module that had been developed for Node.js applications, [node-cfenv](https://github.com/cloudfoundry-community/node-cfenv).

## Swift version
The latest version of Swift-cfenv works with the `DEVELOPMENT-SNAPSHOT-2016-05-03-a` version of the Swift binaries. You can download this version of the Swift binaries by following this [link](https://swift.org/download/).
The latest version of Swift-cfenv works with the `DEVELOPMENT-SNAPSHOT-2016-06-06-a` version of the Swift binaries. You can download this version of the Swift binaries by following this [link](https://swift.org/download/).

## Usage
To leverage the Swift-cfenv package in your Swift application, you should specify a dependency for it in your `Package.swift` file:
Expand Down
2 changes: 1 addition & 1 deletion Tests/CloudFoundryEnv/MainTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import SwiftyJSON
*/
class MainTests : XCTestCase {

static var allTests : [(String, MainTests -> () throws -> Void)] {
static var allTests : [(String, (MainTests) -> () throws -> Void)] {
return [
("testGetApp", testGetApp),
("testGetServices", testGetServices),
Expand Down
2 changes: 1 addition & 1 deletion Tests/CloudFoundryEnv/UtilsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import SwiftyJSON
*/
class UtilsTests : XCTestCase {

static var allTests : [(String, UtilsTests -> () throws -> Void)] {
static var allTests : [(String, (UtilsTests) -> () throws -> Void)] {
return [
("testConvertStringToJSON", testConvertStringToJSON),
("testConvertJSONArrayToStringArray", testConvertJSONArrayToStringArray)
Expand Down

0 comments on commit 70acf67

Please sign in to comment.