nokogiri-streaming-reader 0.0.1 → 0.0.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: 65e5209b0d9be2508b66a3ec3b4930ff01f1d265
4
- data.tar.gz: 50bd545822035962339aed4d83c5f0a1bf3701ef
3
+ metadata.gz: ea2154d42b35ed8dc47cd084b06c6ea6dc83e110
4
+ data.tar.gz: 5fc2ab3f1509644fca55b05beb4a0325f1256e7e
5
5
  SHA512:
6
- metadata.gz: 6795646ee413f21a40f45c8c83bbb50954cda906273f258021c3dfacc674e2a5d485bbe918512ff536582f632036bc000a4da0c99cc95475c6034ae01f4bbaee
7
- data.tar.gz: f1e23979d3a5512653e4e90e833ed1c16a9b19943712895d7defadb1e3749555454cc6284a33f7e2e559a860c16dd31288bf45050d8037953446b92cd051a824
6
+ metadata.gz: a5056fc8a8048574873aeac0d0df2f0eab42fa4b03608339fb976e9f00bd4040220330960e1f04654c98d62585f5ca13b56e4756e233cc177c1abb41dc3bce11
7
+ data.tar.gz: 4e0f468a2a5af3f7eab6a04482ebc359cf8f152ca972148ba0298e438a02a1cb509a21a298385942a0996bdbb17223f71ae5367d5451928166682173319d509d
@@ -3,6 +3,8 @@ require 'nokogiri'
3
3
  module Nokogiri
4
4
  module Streaming
5
5
 
6
+ class ParseError < StandardError; end
7
+
6
8
  class Reader < XML::SAX::Document
7
9
 
8
10
  def initialize(source)
@@ -32,6 +34,10 @@ module Nokogiri
32
34
  # The following methods are SAX callbacks from Nokogiri.
33
35
  #
34
36
 
37
+ def error(message)
38
+ raise ParseError.new(message)
39
+ end
40
+
35
41
  def end_document
36
42
  end
37
43
 
@@ -1,5 +1,5 @@
1
1
  module Nokogiri
2
2
  module Streaming
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri-streaming-reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Staubo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri