sax-machine 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -5
- data/HISTORY.md +4 -0
- data/lib/sax-machine.rb +6 -4
- data/lib/sax-machine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e1a19d1fe1c96e358244af5eddf73e658c43041
|
4
|
+
data.tar.gz: ab4ab21c950788a7ca9a05e9daa678f929bd42cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edbbbf1cd1dd4c9cafe1f4172601b63f4fca893175027c0fc09f8c24f92c3857af0b9a924fed787b8e3410b5192ae8d20818704ee1a42f83d093be7f73f03404
|
7
|
+
data.tar.gz: 91c2272b5be0c789d633767f0619b7ef2201ec1d8c2af8ae7e0eb36e199d472d30853b9578ff364af5722bee96dadad72aa720b1f5b7c89527cc6b0bd46d1857
|
data/.travis.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
rvm:
|
3
4
|
- 1.9.3
|
4
5
|
- 2.0
|
@@ -7,6 +8,15 @@ rvm:
|
|
7
8
|
- rbx-2
|
8
9
|
- ruby-head
|
9
10
|
- jruby-head
|
11
|
+
|
12
|
+
sudo: false
|
13
|
+
|
14
|
+
env:
|
15
|
+
matrix:
|
16
|
+
- HANDLER="nokogiri"
|
17
|
+
- HANDLER="ox"
|
18
|
+
- HANDLER="oga"
|
19
|
+
|
10
20
|
matrix:
|
11
21
|
exclude:
|
12
22
|
- env: HANDLER="ox"
|
@@ -17,8 +27,3 @@ matrix:
|
|
17
27
|
- rvm: rbx-2
|
18
28
|
- rvm: ruby-head
|
19
29
|
- rvm: jruby-head
|
20
|
-
env:
|
21
|
-
matrix:
|
22
|
-
- HANDLER="nokogiri"
|
23
|
-
- HANDLER="ox"
|
24
|
-
- HANDLER="oga"
|
data/HISTORY.md
CHANGED
data/lib/sax-machine.rb
CHANGED
@@ -5,12 +5,14 @@ require "sax-machine/sax_config"
|
|
5
5
|
|
6
6
|
module SAXMachine
|
7
7
|
def self.handler
|
8
|
-
@@handler
|
8
|
+
@@handler ||= nil
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.handler=(handler)
|
12
|
-
|
13
|
-
|
12
|
+
if handler
|
13
|
+
require "sax-machine/handlers/sax_#{handler}_handler"
|
14
|
+
@@handler = handler
|
15
|
+
end
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
@@ -24,6 +26,6 @@ end
|
|
24
26
|
end
|
25
27
|
|
26
28
|
# Still no handler, use Nokogiri
|
27
|
-
if
|
29
|
+
if SAXMachine.handler.nil?
|
28
30
|
SAXMachine.handler = :nokogiri
|
29
31
|
end
|
data/lib/sax-machine/version.rb
CHANGED