tmx-parser-2018 1.1.1 → 1.2
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/lib/tmx-parser/sax_document.rb +6 -1
- data/lib/tmx-parser/tag_names.rb +1 -0
- data/lib/tmx-parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f90db7ca205f42feafea2a2c9a66f9acb0b7da1c6a6c6f1e919c3e60049b8a84
|
|
4
|
+
data.tar.gz: 5fae420274379c6c5a3bd2c2d72eccb4058ab5f73b30c6c985677907593a047b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a32b56ad6ce4bab73a3b6e97deabd9b3f4095d480d68b037249e2b6e38c69b5724ce5d1b5718ff1743f52215e9da0ee86ed7480c79e528e97b61cd3377fc1b1
|
|
7
|
+
data.tar.gz: 9014786f8455bf0b014023aff52f67d69542f6820e83bacc9a9811af8fba37248020d7038ed7224a5c5a006cc41a10576006bb2daf912b8269ec83fc75fa7098
|
|
@@ -16,6 +16,11 @@ module TmxParser
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def start_element(name, attrs = [])
|
|
19
|
+
unless @body
|
|
20
|
+
@body = true if name == BODY_TAG
|
|
21
|
+
return
|
|
22
|
+
end
|
|
23
|
+
|
|
19
24
|
case name
|
|
20
25
|
when UNIT_TAG
|
|
21
26
|
listener.unit(
|
|
@@ -42,6 +47,7 @@ module TmxParser
|
|
|
42
47
|
end
|
|
43
48
|
|
|
44
49
|
def end_element(name)
|
|
50
|
+
return if name == BODY_TAG || !@body
|
|
45
51
|
@capture_stack.pop
|
|
46
52
|
send_text
|
|
47
53
|
listener.done(name)
|
|
@@ -69,5 +75,4 @@ module TmxParser
|
|
|
69
75
|
end
|
|
70
76
|
end
|
|
71
77
|
end
|
|
72
|
-
|
|
73
78
|
end
|
data/lib/tmx-parser/tag_names.rb
CHANGED
data/lib/tmx-parser/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tmx-parser-2018
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: '1.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cameron Dutro
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-02-
|
|
12
|
+
date: 2018-02-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|