sax-machine 1.0.0 → 1.0.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: d0fb49e4c86a5d258cd1266f3b39f0279ff6ecc4
4
- data.tar.gz: 9221aa8a9a9a552f1ac9ce7e5b962db2e5987515
3
+ metadata.gz: 778691b047799a74e147aa1a13251bca18528749
4
+ data.tar.gz: 2fa796bdb9debf34d055b54c0faac32ab6e9d0bd
5
5
  SHA512:
6
- metadata.gz: 6da8e076f9d871aebfee80887b007712768c60643d5690b514cd886758583e132971417533afb560de2a4c8aee988131a46a62da28b32be9ed2837c7f4cf9e86
7
- data.tar.gz: 8f28dd9652e24a9d853ded552df3ca25e80cba2eead23bb1ead8d331bc50768778938d7709ab3ebaa7cc11c3ebb411c74de119b8c64897f3d1ae7a41c3457911
6
+ metadata.gz: c5f142e884affa746c5c0427e64e185e79fed40649e9ac98b36c4ca81e92a3b33571f12f0a04a7bc489e5e6f083164346bdd2b1640216a810c5977440305859e
7
+ data.tar.gz: 4aa99c80a05399c851c83fe00bf54221b067c0732eca900be5f23148b07e17fea71246c706dc268ccbd97af0cbe9e1e974dd6d59f99f44922b183958f7188dd2
@@ -8,14 +8,15 @@ rvm:
8
8
  - ruby-head
9
9
  - jruby-head
10
10
  matrix:
11
- allow_failures:
12
- - rvm: rbx-2
13
- - rvm: ruby-head
14
- - rvm: jruby-head
11
+ exclude:
15
12
  - env: HANDLER="ox"
16
13
  rvm: jruby-1.7
17
14
  - env: HANDLER="ox"
18
15
  rvm: jruby-head
16
+ allow_failures:
17
+ - rvm: rbx-2
18
+ - rvm: ruby-head
19
+ - rvm: jruby-head
19
20
  env:
20
21
  matrix:
21
22
  - HANDLER="nokogiri"
data/HISTORY.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # HEAD
2
2
 
3
+ # 1.0.1
4
+
5
+ * Improve normalize_name performance
6
+
3
7
  # 1.0.0
4
8
 
5
9
  * Make `nokogiri` dependency optional
@@ -167,7 +167,7 @@ module SAXMachine
167
167
  end
168
168
 
169
169
  def normalize_name(name)
170
- name.gsub(/\-/, "_")
170
+ name.to_s.tr("-", "_")
171
171
  end
172
172
 
173
173
  def set_attributes_on(object, attributes)
@@ -1,3 +1,3 @@
1
1
  module SAXMachine
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -14,7 +14,7 @@ rescue LoadError
14
14
  end
15
15
 
16
16
  require File.expand_path(File.dirname(__FILE__) + '/../lib/sax-machine')
17
- SAXMachine.handler = ENV['HANDLER'].to_sym
17
+ SAXMachine.handler = ENV['HANDLER'].to_sym if ENV['HANDLER']
18
18
 
19
19
  RSpec.configure do |config|
20
20
  config.run_all_when_everything_filtered = true
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.0.0
4
+ version: 1.0.1
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: 2014-08-05 00:00:00.000000000 Z
14
+ date: 2014-09-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec