sax-machine 1.0.1 → 1.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: 778691b047799a74e147aa1a13251bca18528749
4
- data.tar.gz: 2fa796bdb9debf34d055b54c0faac32ab6e9d0bd
3
+ metadata.gz: 735fbe7eb7f0a9239d94c61a7c3be193b69aaed0
4
+ data.tar.gz: 976dc0eb6189bc6ecfbbb39073ddda7d56b7c025
5
5
  SHA512:
6
- metadata.gz: c5f142e884affa746c5c0427e64e185e79fed40649e9ac98b36c4ca81e92a3b33571f12f0a04a7bc489e5e6f083164346bdd2b1640216a810c5977440305859e
7
- data.tar.gz: 4aa99c80a05399c851c83fe00bf54221b067c0732eca900be5f23148b07e17fea71246c706dc268ccbd97af0cbe9e1e974dd6d59f99f44922b183958f7188dd2
6
+ metadata.gz: 4519f0fc17c789c689bd10f9ebabfb5633a324861c026c12154bb51c4c40dbe7b1c3259e28f365f7c2bf277e8f5e4a2b21441ffe41a489d00afc5644079b91a8
7
+ data.tar.gz: ec7638ca60b7ec8290c9baa08aa2b3854ac988769175d4dfa3230f7154269d6960c3185bd9aac4aadc95c9fc57bc10cd35861069f9a17b8bd89e28654fb15ec6
data/HISTORY.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # HEAD
2
2
 
3
+ # 1.0.2
4
+
5
+ * Make sure SAXConfig getters do not modify internal vars. Prevent race conditions
6
+
3
7
  # 1.0.1
4
8
 
5
9
  * Improve normalize_name performance
@@ -64,10 +64,14 @@ module SAXMachine
64
64
  end
65
65
 
66
66
  def element_configs_for_attribute(name, attrs)
67
+ return [] unless @top_level_elements.has_key?(name.to_s)
68
+
67
69
  @top_level_elements[name.to_s].select { |ec| ec.has_value_and_attrs_match?(attrs) }
68
70
  end
69
71
 
70
72
  def element_config_for_tag(name, attrs)
73
+ return unless @top_level_elements.has_key?(name.to_s)
74
+
71
75
  @top_level_elements[name.to_s].detect { |ec| ec.attrs_match?(attrs) }
72
76
  end
73
77
  end
@@ -1,3 +1,3 @@
1
1
  module SAXMachine
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
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.0.1
4
+ version: 1.0.2
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-09-24 00:00:00.000000000 Z
14
+ date: 2014-09-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec