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 +4 -4
- data/lib/nokogiri/streaming/reader.rb +6 -0
- data/lib/nokogiri/streaming/version.rb +1 -1
- 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: ea2154d42b35ed8dc47cd084b06c6ea6dc83e110
|
4
|
+
data.tar.gz: 5fc2ab3f1509644fca55b05beb4a0325f1256e7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
11
|
+
date: 2014-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|