-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from qutheory/snapshot-06-06
update to 06-06
- Loading branch information
Showing
8 changed files
with
59 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
3.0-preview-1-SNAPSHOT-2016-05-31-a | ||
DEVELOPMENT-SNAPSHOT-2016-06-06-a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Fluent" | ||
name: "Fluent", | ||
dependencies: [ | ||
//Standards package. Contains protocols for cross-project compatability. | ||
.Package(url: "https://github.com/open-swift/C7.git", majorVersion: 0, minor: 8), | ||
|
||
// Syntax for easily accessing values from generic data. | ||
.Package(url: "https://github.com/qutheory/polymorphic.git", majorVersion: 0, minor: 1) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import C7 | ||
|
||
public typealias StructuredData = C7.StructuredData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@_exported import Polymorphic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,4 +134,4 @@ extension Model { | |
|
||
return "[\(id)] \(readable)" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
extension Value { | ||
public var isNull: Bool { | ||
return structuredData.isNull | ||
} | ||
|
||
public var bool: Bool? { | ||
return structuredData.bool | ||
} | ||
|
||
public var float: Float? { | ||
return structuredData.float | ||
} | ||
|
||
public var double: Double? { | ||
return structuredData.double | ||
} | ||
|
||
public var int: Int? { | ||
return structuredData.int | ||
} | ||
|
||
public var string: String? { | ||
return structuredData.string | ||
} | ||
|
||
public var array: [Polymorphic]? { | ||
return structuredData.array | ||
} | ||
|
||
public var object: [String: Polymorphic]? { | ||
return structuredData.object | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters