posxml_parser 2.8.6 → 2.9.0

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: cbb623fb6e1875b3ecf68fd33ddfc6f5038fe762
4
- data.tar.gz: 2a649c53956a7c75b429e6b8133167e483f0cbb1
3
+ metadata.gz: e9d6ca14921757616f43430fa87e52c8cd810ae7
4
+ data.tar.gz: 39c6df0ccfe1c8754e0214de8d0ee500d35fa5ff
5
5
  SHA512:
6
- metadata.gz: 9c8211e89c37151914dcbaf0e009e042aabb5118a8b14b37ad54065ca5b70674ead20bd74c3634c6704a08fe4938d939b396a6d8ffc3e0eabddf971d3e6097a2
7
- data.tar.gz: c3451ff44eaf78f2a8f72b010c0ffb9dffb678e083ffb878fdddff47f50f3c088dce0ae4a3e23ac617cec6e8072067904a927fdc8e2344d72eaa68c8d6edb80c
6
+ metadata.gz: 4a01ce162d8659cf64d0e8de152be92c996f6407615edbeac808122ca357844ba417832ff4157e62e8b8d5039e2dbf03e1df880d8cb813e08c67d2bbd6ef2054
7
+ data.tar.gz: 22727fb98285baef3a5ac264c52f0586b2f56ed55b7d3c40b3135e3c9a45f94f747b750f3eb0396e4c9f0e1fe63a2f279bdef502d5c33fd495b6b02f32f76e1a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- posxml_parser (2.8.6)
4
+ posxml_parser (2.9.0)
5
5
  funky-emv (~> 0.3)
6
6
 
7
7
  GEM
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Posxml Parser
2
2
 
3
+ ### 2.9.0 - 2018-11-13
4
+
5
+ - Fix network.cloudwalkhandshake variable type declaration;
6
+ - Fix integer type check at posxml compilation, support camelcase declarations;
7
+ - Update test xsd from PosxmlParser version;
8
+ - Fix instruction not found check to instruction with parameters;
9
+ - Supporr to system.getlog instruction compilation.
10
+
3
11
  ### 2.8.6 - 2018-11-22
4
12
 
5
13
  - Fix parseticket xsd;
@@ -1793,6 +1793,18 @@ In case of sucess in this function, the content of the 'child' node will be copi
1793
1793
  <xs:documentation>Add a tag in a ISO 20022 Payment message</xs:documentation>
1794
1794
  </xs:annotation>
1795
1795
  </xs:element>
1796
+ <xs:element name="system.getlog" type="system.getlog">
1797
+ <xs:annotation>
1798
+ <!-- ordem dos parametros -->
1799
+ <xs:appinfo>logfilename,zipfilename,variablereturn</xs:appinfo>
1800
+ <!-- bytecode;tem parametros;declaracao ou chamada de funcao;declaracao de variavel; (startelement) -->
1801
+ <xs:appinfo>\xa9;true;false;false</xs:appinfo>
1802
+ <!-- bytecode;tem parametros;declaracao ou chamada de funcao;declaracao de variavel; (endelement) -->
1803
+ <xs:appinfo>
1804
+ </xs:appinfo>
1805
+ <xs:documentation>Get a log file and prepare a buffer to upload to cloudwalk</xs:documentation>
1806
+ </xs:annotation>
1807
+ </xs:element>
1796
1808
  </xs:choice>
1797
1809
  </xs:group>
1798
1810
  <xs:complexType name="display">
@@ -3104,10 +3116,7 @@ In case of sucess in this function, the content of the 'child' node will be copi
3104
3116
  <xs:sequence />
3105
3117
  <xs:attribute name="variablereturn" type="xs:string" use="required">
3106
3118
  <xs:annotation>
3107
- <xs:documentation>Variable which will store the result of the operation, where:
3108
- 1: Success.
3109
- 0: Failed.(integer).
3110
- </xs:documentation>
3119
+ <xs:documentation>Variable which will store the result of the operation, where: 1: Success. 0: Failed.(integer). </xs:documentation>
3111
3120
  </xs:annotation>
3112
3121
  </xs:attribute>
3113
3122
  </xs:complexType>
@@ -4301,6 +4310,24 @@ x3: 99x99 pixels (can be used on the printer)
4301
4310
  </xs:annotation>
4302
4311
  </xs:attribute>
4303
4312
  </xs:complexType>
4313
+ <xs:complexType name="system.getlog">
4314
+ <xs:sequence />
4315
+ <xs:attribute name="logfilename" type="xs:string" use="required">
4316
+ <xs:annotation>
4317
+ <xs:documentation>String (name of the log file)</xs:documentation>
4318
+ </xs:annotation>
4319
+ </xs:attribute>
4320
+ <xs:attribute name="zipfilename" type="xs:string" use="required">
4321
+ <xs:annotation>
4322
+ <xs:documentation>String (name of the zip file)</xs:documentation>
4323
+ </xs:annotation>
4324
+ </xs:attribute>
4325
+ <xs:attribute name="variablereturn" type="xs:string" use="required">
4326
+ <xs:annotation>
4327
+ <xs:documentation>Integer (operation result; 1: buffer is ready for upload; <=0: Error)</xs:documentation>
4328
+ </xs:annotation>
4329
+ </xs:attribute>
4330
+ </xs:complexType>
4304
4331
  </xs:schema>
4305
4332
  EOF
4306
4333
  end
@@ -140,6 +140,7 @@ module PosxmlCompiler
140
140
  # "function", {"name" => {:original => "dosomething", :value => "1", :type => :string}})
141
141
  #
142
142
  def parse_references(name, parameters)
143
+ raise InstructionNotFoundError.new("Instruction #{name.inspect} not found") unless xsd.find(name)
143
144
  parameters.each do |param_name, value|
144
145
  parameters[param_name] = self.variables.get(name, param_name, value)
145
146
  end
@@ -165,7 +165,7 @@ module PosxmlCompiler
165
165
  #end
166
166
 
167
167
  def type_integer?(str)
168
- data = str.match(/(integer|inteiro)/)
168
+ data = str.to_s.downcase.match(/(integer|inteiro)/)
169
169
  end
170
170
  end
171
171
  end
@@ -1,5 +1,5 @@
1
1
 
2
2
  module PosxmlParser
3
- VERSION = "2.8.6"
3
+ VERSION = "2.9.0"
4
4
  end
5
5
 
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.6
4
+ version: 2.9.0
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-22 00:00:00.000000000 Z
11
+ date: 2018-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler