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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/modl/parser/modl_class.rb +5 -4
- data/lib/modl/parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e391e57bad47d661e08c986b5a5b660fc10312e8c6a196b00318fbfe57ec621
|
4
|
+
data.tar.gz: df205763034d607acf635c6d2b2ce37c3b48bdf39626c17d9eead2f99f351a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7208bfae428e5f0de6a54f0727f525f2db44a11c2022dc493e5696a5cfaff50b3a45722f2a657ee93f242eae670e273071a3e137dd70859777810120c1751bc1
|
7
|
+
data.tar.gz: ac22712bed4d0d4dd9ac46b129136f1617d381367ddbe6dc0c47173ecc0ef22bc110b08fbdccfa515e818834ab7ebf70d13c19bc241f4b946d897013e2f28dd2
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/modl/parser/version.rb
CHANGED