sax-machine 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/HISTORY.md +4 -0
- data/lib/sax-machine/handlers/sax_oga_handler.rb +4 -2
- data/lib/sax-machine/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18613b2e2d45b525b4557712c55bf590634e3909
|
4
|
+
data.tar.gz: 75211d7241bd4e5d1f2eda7ea9ebe6bdad8d3027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3212a43c353264ca6e00ab2e2e4ec34f04f107dd49506c283af383fa67c9c3c61b56e9a2abbbd3a1e6eae53209336f5647bf6aea822676f2691d5ae4e9c531f3
|
7
|
+
data.tar.gz: a778a1df288ce48494bd10300c2170e8ba00666b5a7ea6149d2937d051f003245d633d46962491b9bd0bdbd809f7f8fe8986941b54613230b9c42207a6957bce
|
data/Gemfile
CHANGED
data/HISTORY.md
CHANGED
@@ -11,10 +11,12 @@ module SAXMachine
|
|
11
11
|
|
12
12
|
def sax_parse(xml_input)
|
13
13
|
Oga.sax_parse_xml(self, xml_input)
|
14
|
+
rescue LL::ParserError => e
|
15
|
+
on_error(e.message)
|
14
16
|
end
|
15
17
|
|
16
18
|
def on_element(namespace, name, attrs)
|
17
|
-
_start_element(node_name(namespace, name), attrs
|
19
|
+
_start_element(node_name(namespace, name), attrs)
|
18
20
|
end
|
19
21
|
|
20
22
|
def after_element(namespace, name)
|
@@ -31,7 +33,7 @@ module SAXMachine
|
|
31
33
|
private
|
32
34
|
|
33
35
|
def node_name(namespace, name)
|
34
|
-
namespace ?
|
36
|
+
namespace ? "#{namespace}:#{name}" : name
|
35
37
|
end
|
36
38
|
end
|
37
39
|
end
|
data/lib/sax-machine/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sax-machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dix
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-04-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -95,3 +95,4 @@ test_files:
|
|
95
95
|
- spec/sax-machine/sax_document_spec.rb
|
96
96
|
- spec/sax-machine/sax_include_spec.rb
|
97
97
|
- spec/spec_helper.rb
|
98
|
+
has_rdoc:
|