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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b68b4364c0bbc26a2743e8d9d0e1675db01353f0
4
- data.tar.gz: dd0c941cf149d2ffee930fff8ba2a5e6b0303d72
3
+ metadata.gz: 7e1a19d1fe1c96e358244af5eddf73e658c43041
4
+ data.tar.gz: ab4ab21c950788a7ca9a05e9daa678f929bd42cd
5
5
  SHA512:
6
- metadata.gz: e4701a517cfda4c199a8b47f0e9f0aad288aab008bacb913d371572a3303f84ecfed4cb474affac4fbbc8fd38377591a7b59ecc2ecb49787c0355271aaa56335
7
- data.tar.gz: a62ba38de0e90ac351d057b093dea3648397d995d447215053fb9e9905f7374d5ac19bd2184b8938c377d49cad9d27e6d4ddbe38037d7b3b0c7e9fde36aae8ae
6
+ metadata.gz: edbbbf1cd1dd4c9cafe1f4172601b63f4fca893175027c0fc09f8c24f92c3857af0b9a924fed787b8e3410b5192ae8d20818704ee1a42f83d093be7f73f03404
7
+ data.tar.gz: 91c2272b5be0c789d633767f0619b7ef2201ec1d8c2af8ae7e0eb36e199d472d30853b9578ff364af5722bee96dadad72aa720b1f5b7c89527cc6b0bd46d1857
@@ -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
@@ -1,5 +1,9 @@
1
1
  # HEAD
2
2
 
3
+ # 1.1.1
4
+
5
+ * Fix Nokogiri autoloading [[#60](https://github.com/pauldix/sax-machine/pull/60)]
6
+
3
7
  # 1.1.0
4
8
 
5
9
  * Option to use Oga as a SAX handler
@@ -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
- require "sax-machine/handlers/sax_#{handler}_handler"
13
- @@handler = handler
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 !SAXMachine.handler
29
+ if SAXMachine.handler.nil?
28
30
  SAXMachine.handler = :nokogiri
29
31
  end
@@ -1,3 +1,3 @@
1
1
  module SAXMachine
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix