posxml_parser 2.8.0 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/RELEASE_NOTES.md +5 -0
- data/lib/posxml_compiler/variable.rb +8 -3
- data/lib/posxml_parser/version.rb +1 -1
- data/out/posxml_parser/main.mrb +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75698368d9027886e4f0eb814f9dad2f189a9c4a
|
4
|
+
data.tar.gz: 7058de9d31f7e90186c69bf9c92595cdd0edf4bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 413314bda102faa426cef8426a7f7b4f10626ac405dfcafe00895ef8a877b7d632c77146a2fc4769ee10314ade4c075bb8c3c57bbf25f4f86c9683178bd1749e
|
7
|
+
data.tar.gz: 1adfcd2f7c148a9dc765acf2f8b46c5958b1f77b1d714b365ab5f0caa21cabedbceec860fdc82f3cd1d350ca134c65afcb007271066f734b7dc82c8cd5f82144
|
data/Gemfile.lock
CHANGED
data/RELEASE_NOTES.md
CHANGED
@@ -85,6 +85,7 @@ module PosxmlCompiler
|
|
85
85
|
# Return:
|
86
86
|
# {:original => "functionbla", :value => "functionbla", :type => :string}
|
87
87
|
# {:original => "$(sKeyTouchScreen)", :value => "$(1)", :type => :string}
|
88
|
+
# {:original => "$(!sBufRecv[2])", :value => "$(2.&2)", :type => :string}
|
88
89
|
# {:original => "$(!sBufRecv[$(iFound)])", :value => "$(2.$&3)", :type => :string}
|
89
90
|
# {:original => "$(sBufRecv[$(iFound)])", :value => "$(2.$3)", :type => :string}
|
90
91
|
# {:original => "equalto", :value => "equalto", :type => :string}
|
@@ -184,7 +185,7 @@ module PosxmlCompiler
|
|
184
185
|
def parse_index_variable(value, reference)
|
185
186
|
#if reference && value.include?("[")
|
186
187
|
if self.multiple_reference?(value, reference)
|
187
|
-
index = "
|
188
|
+
index = "#{value.match(/\[(.+)\]/)[1]}"
|
188
189
|
str = "$(#{value.split("[")[0]})"
|
189
190
|
|
190
191
|
if str[2] == "!"
|
@@ -201,9 +202,13 @@ module PosxmlCompiler
|
|
201
202
|
def format_multiple_reference(range_index, variable1, variable2)
|
202
203
|
str1 = variable1.sub(VARIABLE_REFERENCE, "").sub(")", "") # Format value to be like "123"
|
203
204
|
str2 = variable2.sub("(", "").sub(")", "") # format value to be "$123")
|
204
|
-
# At the end "$(123.$&456)"
|
205
|
+
# At the end "$(123.$&456)" or "$(123.&456)" (no reference)
|
205
206
|
if range_index
|
206
|
-
|
207
|
+
if str2.include?("$") # no reference
|
208
|
+
format = "#{VARIABLE_REFERENCE}#{str1}.#{str2.insert(1, "&")})"
|
209
|
+
else
|
210
|
+
format = "#{VARIABLE_REFERENCE}#{str1}.#{str2.insert(0, "&")})"
|
211
|
+
end
|
207
212
|
else
|
208
213
|
format = "#{VARIABLE_REFERENCE}#{str1}.#{str2})"
|
209
214
|
end
|
data/out/posxml_parser/main.mrb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posxml_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CloudWalk Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|