modl 0.3.18 → 0.3.19

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
  SHA256:
3
- metadata.gz: 2026e9660a82339e3d0c54bb6517df0c38a6612ae28fb454423a9f170b451e11
4
- data.tar.gz: 54a98f2f08d8a2b3691adc98abb7de41b38812a11bb3cb0a6c3773da99609547
3
+ metadata.gz: 0e391e57bad47d661e08c986b5a5b660fc10312e8c6a196b00318fbfe57ec621
4
+ data.tar.gz: df205763034d607acf635c6d2b2ce37c3b48bdf39626c17d9eead2f99f351a77
5
5
  SHA512:
6
- metadata.gz: 3bafcf9f75a72b96f2a390e0ff62e4647d47991703606aa56ea3460f8d60f5f5ee6f1b2f8553205751c0e0d5bb51f06f1ca8ed6850f9e0f9fccc11bfbac59873
7
- data.tar.gz: 83090d9e804d8f4a1be5ab1cb17ca37c9d6a1324986bca748e6ec58100346e08c47fc5abf51d24f552217ddb2efa146d0c3c3dd51a99d3e41c88ef88ba44dd3f
6
+ metadata.gz: 7208bfae428e5f0de6a54f0727f525f2db44a11c2022dc493e5696a5cfaff50b3a45722f2a657ee93f242eae670e273071a3e137dd70859777810120c1751bc1
7
+ data.tar.gz: ac22712bed4d0d4dd9ac46b129136f1617d381367ddbe6dc0c47173ecc0ef22bc110b08fbdccfa515e818834ab7ebf70d13c19bc241f4b946d897013e2f28dd2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.3.19
2
+ ===
3
+ - Fix bug with `*assign` when there is only 1 item in the array.
4
+
1
5
  0.3.18
2
6
  ===
3
7
  - Fix problems with `*assign`.
@@ -42,16 +42,17 @@ module MODL
42
42
  def keylist_of_length(len)
43
43
  return nil if @assign.nil?
44
44
 
45
- @assign.each do |kl|
46
- return kl if kl.length == len
47
- end
48
-
49
45
  # *assign can support iteration, e.g. *assign=[[person*]]
50
46
  # so return a list of the right length in this case
51
47
  if @assign.length == 1 && @assign[0].length == 1 && @assign[0][0].end_with?('*')
52
48
  key = Sutil.head @assign[0][0]
53
49
  return Array.new(len, key)
54
50
  end
51
+
52
+ @assign.each do |kl|
53
+ return kl if kl.length == len
54
+ end
55
+
55
56
  raise InterpreterError,
56
57
  'Interpreter Error: No key list of the correct length in class ' + @id + ' - looking for one of length ' + len.to_s
57
58
  end
@@ -24,6 +24,6 @@
24
24
 
25
25
  module MODL
26
26
  module Parser
27
- VERSION = "0.3.18"
27
+ VERSION = "0.3.19"
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Walmsley