posxml_parser 2.7.0 → 2.7.1

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: 71ae9a42a99fd3c46fa5ba9453f02e55f7a2d5f5
4
- data.tar.gz: 4b4eee3139c55171fa20f00542e8408fa8490f22
3
+ metadata.gz: d60bf50fa7ab91550cbf08f242e3bc99de1bf0f6
4
+ data.tar.gz: db6e74583f24eea84485164847143ef8bcae67f8
5
5
  SHA512:
6
- metadata.gz: 5226b1473a0f4e9f620a3045b56253fc224433b088d93e23c82d0e12ed254e1df7f3769dcbd6002f11294b4281fc8fef9b92acd530256cd429272d181af459e5
7
- data.tar.gz: c4182e2a869c9319977a23c6682f16ef2d99c54b14eae320ea8b27deed56726ba4a615c2adc345a41eb92b474b40ecf4c2bc8bb8f268eeaceb72dbec6e43377c
6
+ metadata.gz: f8bb0e307d4ed7b3463fcc279131905ad42b00be15ca298400c9065def91713c20e5605d4713c9905582cde1b4b48b2d2910880c89a6179f2c98f06c9346b58f
7
+ data.tar.gz: 2d0b84facc1030f1dec6cb2f8c38148ab011705761b273a7d88715071ca29a427bf482cef741191e0476a989bc896690d366e30b2521fd4863a76a2e6c626700
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- posxml_parser (2.7.0)
4
+ posxml_parser (2.7.1)
5
5
  funky-emv (~> 0.3)
6
6
 
7
7
  GEM
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Posxml Parser
2
2
 
3
+ ### 2.7.1 - 2018-08-20
4
+
5
+ - Fix incompatible character encodings on compilation.
6
+ - Fix clear display on every posxml execution.
7
+
3
8
  ### 2.7.0 - 2018-08-16
4
9
 
5
10
  - Support to execute ruby application in posxml_execute.
@@ -40,7 +40,14 @@ module PosxmlCompiler
40
40
  #
41
41
  # </if
42
42
  def sanitize(txt)
43
- txt.gsub("\r\n", "\n").gsub("\n\r", "\n").gsub("><", ">\n<")
43
+ string = txt.gsub("\r\n", "\n").gsub("\n\r", "\n").gsub("><", ">\n<")
44
+ characters = ['ç', 'Ç', 'ã', 'Ã', 'â', 'Â', 'á', 'Á', 'à', 'À', 'é', 'É', 'è', 'È', 'ê', 'Ê', 'í', 'Í', 'ì', 'Ì', 'ó', 'Ò', 'ò', 'Ò', 'ô', 'Ô', 'ú', 'Ú', 'ù', 'Ù']
45
+ normalized = 'cCaAaAaAaAeEeEeEiIiIoOoOoOuUuU'
46
+ characters.each_with_index do |char, index|
47
+ str = normalized[index]
48
+ string = string.gsub(char, str) if str
49
+ end
50
+ string
44
51
  end
45
52
 
46
53
  # Check if an instruction end in the next line, then split by \n
@@ -1,5 +1,5 @@
1
1
 
2
2
  module PosxmlParser
3
- VERSION = "2.7.0"
3
+ VERSION = "2.7.1"
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.7.0
4
+ version: 2.7.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-08-16 00:00:00.000000000 Z
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler