parkeon 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/parkeon/ticket.rb +6 -3
- data/lib/parkeon/version.rb +1 -1
- metadata +2 -2
data/lib/parkeon/ticket.rb
CHANGED
@@ -31,9 +31,12 @@ module Parkeon
|
|
31
31
|
attributes = {}
|
32
32
|
|
33
33
|
node.css(ATTR_SELECTOR).each do |member|
|
34
|
-
key = member.at_css(ATTR_NAME_SELECTOR)
|
35
|
-
value = member.at_css(ATTR_VALUE_SELECTOR)
|
36
|
-
|
34
|
+
key = member.at_css(ATTR_NAME_SELECTOR).try(:text)
|
35
|
+
value = member.at_css(ATTR_VALUE_SELECTOR).try(:text)
|
36
|
+
|
37
|
+
if key && value
|
38
|
+
attributes[key] = value
|
39
|
+
end
|
37
40
|
end
|
38
41
|
|
39
42
|
new(attributes)
|
data/lib/parkeon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parkeon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|