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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0917a0f1c569089b182a6517a6cb6706ddb3c42a
4
- data.tar.gz: 0828562df1e97d795f0cbc506b7258beed5f7d23
3
+ metadata.gz: 18613b2e2d45b525b4557712c55bf590634e3909
4
+ data.tar.gz: 75211d7241bd4e5d1f2eda7ea9ebe6bdad8d3027
5
5
  SHA512:
6
- metadata.gz: 81eff065ec6ec812f7b8ff6c5e48ed4f48490e17a2a199a0f3980d1578863aab9a1bdba28be58b03338aaa7127e55632a7792354dcc57c9f980760b9ec402a51
7
- data.tar.gz: b7e005d33a7765814a1188e10f6be96d5aee196df56a5913fbc94b0a5624b9d70f0f5a2270417ce1bcc8c736aec836c3227bdd0b96d569bdb8206e6c421408d8
6
+ metadata.gz: 3212a43c353264ca6e00ab2e2e4ec34f04f107dd49506c283af383fa67c9c3c61b56e9a2abbbd3a1e6eae53209336f5647bf6aea822676f2691d5ae4e9c531f3
7
+ data.tar.gz: a778a1df288ce48494bd10300c2170e8ba00666b5a7ea6149d2937d051f003245d633d46962491b9bd0bdbd809f7f8fe8986941b54613230b9c42207a6957bce
data/Gemfile CHANGED
@@ -11,5 +11,5 @@ group :development, :test do
11
11
  gem 'activerecord', '~> 4.1'
12
12
  gem 'nokogiri', '~> 1.6'
13
13
  gem 'ox', '>= 2.1.2', platforms: [:mri, :rbx]
14
- gem 'oga', '>= 0.2.0'
14
+ gem 'oga', '>= 0.3.4'
15
15
  end
data/HISTORY.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # HEAD
2
2
 
3
+ # 1.3.2
4
+
5
+ * Compatibility with Oga 0.3
6
+
3
7
  # 1.3.1
4
8
 
5
9
  * Allow default value to be `false` [[#66](https://github.com/pauldix/sax-machine/pull/66)]
@@ -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.map { |a| [a.name, a.value] })
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 ? [namespace, name].join(":") : name
36
+ namespace ? "#{namespace}:#{name}" : name
35
37
  end
36
38
  end
37
39
  end
@@ -1,3 +1,3 @@
1
1
  module SAXMachine
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
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.1
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-03-22 00:00:00.000000000 Z
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: