posxml_parser 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/RELEASE_NOTES.md +5 -0
- data/lib/posxml_compiler/parser.rb +8 -1
- 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: d60bf50fa7ab91550cbf08f242e3bc99de1bf0f6
|
4
|
+
data.tar.gz: db6e74583f24eea84485164847143ef8bcae67f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8bb0e307d4ed7b3463fcc279131905ad42b00be15ca298400c9065def91713c20e5605d4713c9905582cde1b4b48b2d2910880c89a6179f2c98f06c9346b58f
|
7
|
+
data.tar.gz: 2d0b84facc1030f1dec6cb2f8c38148ab011705761b273a7d88715071ca29a427bf482cef741191e0476a989bc896690d366e30b2521fd4863a76a2e6c626700
|
data/Gemfile.lock
CHANGED
data/RELEASE_NOTES.md
CHANGED
@@ -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
|
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.7.
|
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-
|
11
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|