torigoya_kit 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/torigoya_kit/ticket.rb +4 -2
- data/lib/torigoya_kit/version.rb +1 -1
- data/spec/cases/ticket_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77a01b6fe9e41f3b05790e8818d55c831b46fc60
|
4
|
+
data.tar.gz: 51d22cfa528a46b4597fc83bd3d3695aafa2a9d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fdca898c31ef7f6f8ded53c2457a6eb777217b8c9f32a0074f2a351ac35c8461e12931e63be51dce8dda44d607f054eb00df3dda309c105b590f53434533724
|
7
|
+
data.tar.gz: 6436e9d9e8f47f280d309c3bb724c1f7d14dc5596d5cdd5ec80785d232e8ddd24548dff35faacd17c9625f1d785f5d045eda8f1f6cfd18bdde08f7657c9279e9
|
data/lib/torigoya_kit/ticket.rb
CHANGED
@@ -273,7 +273,7 @@ module TorigoyaKit
|
|
273
273
|
@proc_version,
|
274
274
|
@source_codes.map {|x| x.to_tuple},
|
275
275
|
unless @build_inst.nil? then @build_inst.to_tuple else nil end,
|
276
|
-
@run_inst.to_tuple
|
276
|
+
unless @run_inst.nil? then @run_inst.to_tuple else nil end
|
277
277
|
]
|
278
278
|
end
|
279
279
|
|
@@ -302,7 +302,9 @@ module TorigoyaKit
|
|
302
302
|
unless @build_inst.nil?
|
303
303
|
raise InvalidFormatError.new("#{self.class}: type of build_inst must be BuildInstruction (but #{@build_inst.class})") unless @build_inst.is_a?(BuildInstruction)
|
304
304
|
end
|
305
|
-
|
305
|
+
unless @run_inst.nil?
|
306
|
+
raise InvalidFormatError.new("#{self.class}: type of run_inst must be RunInstruction (but #{@run_inst.class})") unless @run_inst.is_a?(RunInstruction)
|
307
|
+
end
|
306
308
|
end
|
307
309
|
end
|
308
310
|
|
data/lib/torigoya_kit/version.rb
CHANGED
data/spec/cases/ticket_spec.rb
CHANGED
@@ -36,11 +36,11 @@ describe :ticket do
|
|
36
36
|
end.to raise_error(TorigoyaKit::InvalidFormatError)
|
37
37
|
|
38
38
|
expect do
|
39
|
-
TorigoyaKit::Ticket.new("", 0, "", [], nil,
|
39
|
+
TorigoyaKit::Ticket.new("", 0, "", [], nil, 2)
|
40
40
|
end.to raise_error(TorigoyaKit::InvalidFormatError)
|
41
41
|
|
42
42
|
expect do
|
43
|
-
TorigoyaKit::Ticket.new("", 0, "", [], dummy_bi,
|
43
|
+
TorigoyaKit::Ticket.new("", 0, "", [], dummy_bi, 2)
|
44
44
|
end.to raise_error(TorigoyaKit::InvalidFormatError)
|
45
45
|
|
46
46
|
expect do
|