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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 999776c7602a6d66137041332ac53ffa4b88c006
4
- data.tar.gz: ba931846ab6dee04bfb08b236a4420f00b7d45bf
3
+ metadata.gz: 77a01b6fe9e41f3b05790e8818d55c831b46fc60
4
+ data.tar.gz: 51d22cfa528a46b4597fc83bd3d3695aafa2a9d2
5
5
  SHA512:
6
- metadata.gz: d8972e1018c50349e1151890804e6c0bb80fb7f206196624bf4b03a1bedff9341cf96c013a652e4ac0e77b6e35832bc5c5c8e369502d022a52949aabd1a0a140
7
- data.tar.gz: f0868e4984988365618b5c818ead54a8e4a9fbc865c60129028aec13950e19a673982f9f98005122fdabd2e9a361500aa5b16594131b027fac35263583976d78
6
+ metadata.gz: 8fdca898c31ef7f6f8ded53c2457a6eb777217b8c9f32a0074f2a351ac35c8461e12931e63be51dce8dda44d607f054eb00df3dda309c105b590f53434533724
7
+ data.tar.gz: 6436e9d9e8f47f280d309c3bb724c1f7d14dc5596d5cdd5ec80785d232e8ddd24548dff35faacd17c9625f1d785f5d045eda8f1f6cfd18bdde08f7657c9279e9
@@ -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
- raise InvalidFormatError.new("#{self.class}: type of run_inst must be RunInstruction (but #{@run_inst.class})") unless @run_inst.is_a?(RunInstruction)
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
 
@@ -1,3 +1,3 @@
1
1
  module TorigoyaKit
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -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, 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, nil)
43
+ TorigoyaKit::Ticket.new("", 0, "", [], dummy_bi, 2)
44
44
  end.to raise_error(TorigoyaKit::InvalidFormatError)
45
45
 
46
46
  expect do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torigoya_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - yutopp