rexleparser 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rexleparser.rb +7 -5
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fdb6fcb7bfe1db3b7f09067f49db17a30c83861
|
|
4
|
+
data.tar.gz: 6cf401a5bc77c7d85395ea18d1bdafc6415da037
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7e41554cc9dcc0690ed9f4238de3a493d981d80b20c928a08306730f35126c678c382fbe8d1209d2959ba58d55631954c5d91181d9fcd973217457b1c3206c4
|
|
7
|
+
data.tar.gz: df3e19cb928f88e8a3f9f7d19f6695d161b2a9975f82c37c7a4eb1f09d52329d82f91e1195ff16faa0f3841e17ec96a7d4dd331cfd64427e7875620c8357007f
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/rexleparser.rb
CHANGED
|
@@ -57,7 +57,7 @@ class RexleParser
|
|
|
57
57
|
|
|
58
58
|
value << a.shift until a[0..2].join == '-->' or a.length <= 1
|
|
59
59
|
a.slice!(0,3)
|
|
60
|
-
return [name, value, {}]
|
|
60
|
+
return [name, value, {}]
|
|
61
61
|
else
|
|
62
62
|
|
|
63
63
|
name = ''
|
|
@@ -158,11 +158,13 @@ class RexleParser
|
|
|
158
158
|
r1 = /([\w\-:]+\='[^']*)'/
|
|
159
159
|
r2 = /([\w\-:]+\="[^"]*)"/
|
|
160
160
|
|
|
161
|
-
r = raw_attributes.scan(/#{r1}|#{r2}/).map(&:compact)
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
r = raw_attributes.scan(/#{r1}|#{r2}/).map(&:compact)\
|
|
162
|
+
.flatten.inject({}) do |r, x|
|
|
163
|
+
attr_name, raw_val = x.split(/=/,2)
|
|
164
|
+
val = attr_name != 'class' ? val[1..-1] : raw_val[1..-1].split
|
|
165
|
+
r.merge(attr_name.to_sym => val)
|
|
164
166
|
end
|
|
165
167
|
|
|
166
168
|
return r
|
|
167
169
|
end
|
|
168
|
-
end
|
|
170
|
+
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rexleparser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
CkjTMLaPwIQI6dsbG4bVJ7/XzL7c8niqJSF7M0yr1+2kUrWFUZMBMrUUxgZxSkjL
|
|
32
32
|
Cgd76bp2zjiyCw==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2014-
|
|
34
|
+
date: 2014-10-19 00:00:00.000000000 Z
|
|
35
35
|
dependencies: []
|
|
36
36
|
description:
|
|
37
37
|
email: james@r0bertson.co.uk
|
|
@@ -52,7 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
52
52
|
requirements:
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version:
|
|
55
|
+
version: 2.1.2
|
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - ">="
|
metadata.gz.sig
CHANGED
|
Binary file
|