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 +4 -4
- data/HISTORY.md +4 -0
- data/lib/sax-machine/sax_config.rb +4 -0
- data/lib/sax-machine/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: 735fbe7eb7f0a9239d94c61a7c3be193b69aaed0
|
4
|
+
data.tar.gz: 976dc0eb6189bc6ecfbbb39073ddda7d56b7c025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4519f0fc17c789c689bd10f9ebabfb5633a324861c026c12154bb51c4c40dbe7b1c3259e28f365f7c2bf277e8f5e4a2b21441ffe41a489d00afc5644079b91a8
|
7
|
+
data.tar.gz: ec7638ca60b7ec8290c9baa08aa2b3854ac988769175d4dfa3230f7154269d6960c3185bd9aac4aadc95c9fc57bc10cd35861069f9a17b8bd89e28654fb15ec6
|
data/HISTORY.md
CHANGED
@@ -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
|
data/lib/sax-machine/version.rb
CHANGED
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.
|
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-
|
14
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|