mumuki-qsim-runner 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/test_hook.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e328f5107c8be0e6be6afbfc57da5155a8bf9b94
4
- data.tar.gz: 933c6c30132d17a78166df63bb672a3306944af3
3
+ metadata.gz: e3fdeb0cce90ec3d253d8f0d06e639f2d23e16fd
4
+ data.tar.gz: d9458ba7abbd0cc4e9aee44bb369534b13dc0cc1
5
5
  SHA512:
6
- metadata.gz: e1211643581f06df53885d4cc368da7b05e18524b3ad37766cb2cd0018bbae1d8aff01db35adc2771bdbe4e50a11565eb6f9aff50c29bb981c350202a86f4682
7
- data.tar.gz: db5bcf5ed50f23e1ecb33b100be94c97c5ec6a2efa4ad1ed115bc682e6cdbcc63358c0448bf92076e54d59597299e9e1d61a1d49ae218d6c8d36a24f1178f763
6
+ metadata.gz: 5d94865bae2566a37a374f439e64b91c8f6a2e16b7dc74e521f0724383c4b98d26eebf8db2f9df474d532c785bc2c291a262a44c05dffcb0d23adf201c3697bd
7
+ data.tar.gz: 2a8cdb07a009b9d74d7c2f40a8ae3f4e157309481dec127f05acae657580e41b9da18f76471d495506c751f2fcfa1a155951ca81c97fb1ff3d8c71d7bd6b21f3
data/lib/test_hook.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  class QsimTestHook < Mumukit::Templates::FileHook
2
2
  include Mumukit::WithTempfile
3
+ attr_reader :examples
4
+
3
5
  isolated true
4
6
 
5
7
  def tempfile_extension
@@ -91,7 +93,7 @@ EOF
91
93
  end
92
94
 
93
95
  def initial_state_file
94
- initial_states = @examples.map { |example| default_initial_state.merge(id: example[:id]).merge(example[:preconditions]) }
96
+ initial_states = @examples.map { |example| default_initial_state.merge(id: example[:id]).deep_merge(example[:preconditions]) }
95
97
  JSON.generate initial_states
96
98
  end
97
99
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-qsim-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli