Skip to content

Commit 105ec1b

Browse files
committed
Merge pull request #31 from macoscope/xcode-7.3
update to Xcode 7.3
2 parents 406a750 + 0a3835b commit 105ec1b

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

Cartfile.private

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "Quick/Nimble" == 3.0.0
2-
github "Quick/Quick" == 0.8.0
1+
github "Quick/Nimble" "master"
2+
github "Quick/Quick" "master"

Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "Quick/Nimble" "v3.0.0"
2-
github "Quick/Quick" "v0.8.0"
1+
github "Quick/Nimble" "0877214872b31ac393be4d8a4563b7c87b2e91e9"
2+
github "Quick/Quick" "d30f9e93402b6fcc7013c86afeb77da4c38e9f27"

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## [0.3.0][] • work in progress
22

3-
- Updated to Swift 2.1 (Xcode 7.1).
3+
- Updated to Swift 2.2 (Xcode 7.3).
44

55
- Made references to class-based subjects weak. This helps to remove
66
subject-machine reference cycles, but it also means you have to keep a

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ for clarity and maintainability. Can create diagrams:
1212
![example digraph](example-digraph.png)
1313

1414
- Version 0.3.0-work-in-progress (following [Semantic Versioning][])
15-
- Developed and tested under Swift 2.1 (Xcode 7.1)
15+
- Developed and tested under Swift 2.2 (Xcode 7.3)
1616
- Published under the [MIT License](LICENSE)
1717
- [Carthage][] compatible
1818
- [CocoaPods][] compatible

StateMachine/GraphableStateMachineSchema.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public struct GraphableStateMachineSchema<A: DOTLabelable, B: DOTLabelable, C>:
8484
///
8585
/// [DOT]: http://en.wikipedia.org/wiki/DOT_%28graph_description_language%29
8686
/// [Graphviz]: http://www.graphviz.org/
87-
public func saveDOTDigraphIfRunningInSimulator(filepathRelativeToCurrentFile filepathRelativeToCurrentFile: String, file: String = __FILE__) throws {
87+
public func saveDOTDigraphIfRunningInSimulator(filepathRelativeToCurrentFile filepathRelativeToCurrentFile: String, file: String = #file) throws {
8888
if TARGET_IPHONE_SIMULATOR == 1 {
8989
let filepath = ((file as NSString).stringByDeletingLastPathComponent as NSString).stringByAppendingPathComponent(filepathRelativeToCurrentFile)
9090
try DOTDigraph.writeToFile(filepath, atomically: true, encoding: NSUTF8StringEncoding)

StateMachine/StateMachine.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
/// transition. The transition block is optional and it gets passed
2020
/// the `Subject` object as an argument.
2121
public protocol StateMachineSchemaType {
22-
typealias State
23-
typealias Event
24-
typealias Subject
22+
associatedtype State
23+
associatedtype Event
24+
associatedtype Subject
2525

2626
var initialState: State { get }
2727
var transitionLogic: (State, Event) -> (State, (Subject -> ())?)? { get }

0 commit comments

Comments
 (0)