Skip to content

Commit c9692a5

Browse files
committed
Add support for Cuckoo runtime 0.4.0.
1 parent 118f355 commit c9692a5

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

Source/CuckooGeneratorFramework/CuckooRuntimeVersion.swift

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,32 @@
99
import Commandant
1010

1111
public enum CuckooRuntimeVersion: String {
12-
public static let latest: CuckooRuntimeVersion = .v0_3_0
13-
public static let all: [CuckooRuntimeVersion] = [.v0_1_0, .v0_3_0]
14-
12+
public static let latest: CuckooRuntimeVersion = .v0_4_0
13+
public static let all: [CuckooRuntimeVersion] = [.v0_1_0, .v0_3_0, .v0_4_0]
14+
1515
case v0_1_0 = "0.1.0"
1616
case v0_3_0 = "0.3.0"
17-
17+
case v0_4_0 = "0.4.0"
18+
1819
public var generator: Generator.Type {
1920
switch self {
2021
case .v0_1_0:
2122
return Generator_r1.self
22-
case .v0_3_0:
23+
case .v0_3_0, .v0_4_0:
2324
return Generator_r2.self
2425
}
2526
}
26-
27+
2728
public var tokenizer: Tokenizer.Type {
2829
switch self {
29-
case .v0_1_0, .v0_3_0:
30+
case .v0_1_0, .v0_3_0, v0_4_0:
3031
return Tokenizer_r1.self
3132
}
3233
}
33-
34+
3435
public var fileHeaderHandler: FileHeaderHandler.Type {
3536
switch self {
36-
case .v0_1_0, .v0_3_0:
37+
case .v0_1_0, .v0_3_0, v0_4_0:
3738
return FileHeaderHandler_r1.self
3839
}
3940
}
@@ -47,8 +48,8 @@ extension CuckooRuntimeVersion: CustomStringConvertible {
4748

4849
extension CuckooRuntimeVersion: ArgumentType {
4950
public static let name: String = "Mockery runtime version"
50-
51+
5152
public static func fromString(string: String) -> CuckooRuntimeVersion? {
5253
return CuckooRuntimeVersion(rawValue: string)
5354
}
54-
}
55+
}

0 commit comments

Comments
 (0)