rexle-xpath-parser 0.1.13 → 0.1.14
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.tar.gz.sig +0 -0
- data/lib/rexle-xpath-parser.rb +6 -6
- metadata +2 -2
- 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: 8d1a70e9b5dadb2524bbf975079d68fc3baa07e1
|
|
4
|
+
data.tar.gz: 85c42b77a86566670ab43d72a5a4aec7036bdf61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 800c53f8e1669c600c70e0b545bec5f1cbb70803918e23527ac84a018e8ab1a9de70fe2d7a128a2b3039c5e196db55ab811c1728583a6d1ba24c46d119c11a4d
|
|
7
|
+
data.tar.gz: 768ecfc76b58daba89acdfc6f321e904b43b61a0bbadff2e9e3e7ece4a04168a18869a01080569cf4b8b6d5768a5c505ece596e40d78312e95a1aaff90753836
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rexle-xpath-parser.rb
CHANGED
|
@@ -34,7 +34,7 @@ class RexleXPathParser
|
|
|
34
34
|
r << [[:attribute, attribute]]
|
|
35
35
|
elsif x =~ /^\/\//
|
|
36
36
|
r << [:recursive, *RexleXPathParser.new(x[2..-1]).to_a]
|
|
37
|
-
elsif x =~ /^[\w
|
|
37
|
+
elsif x =~ /^[\w\/\*]+\[/
|
|
38
38
|
|
|
39
39
|
epath, predicate, remainder = x.match(/^([^\[]+)\[([^\]]+)\](.*)/).captures
|
|
40
40
|
|
|
@@ -58,9 +58,9 @@ class RexleXPathParser
|
|
|
58
58
|
r << [:index, x]
|
|
59
59
|
elsif /^attribute::(?<attribute>\w+)/ =~ x
|
|
60
60
|
r << [:attribute, attribute]
|
|
61
|
-
elsif /^(?<name
|
|
61
|
+
elsif /^(?<name>[\w\*]+)\/?/ =~ x
|
|
62
62
|
|
|
63
|
-
x.slice!(
|
|
63
|
+
x.slice!(/^[\w\*]+\/?/)
|
|
64
64
|
r3 = [[:select, name]]
|
|
65
65
|
|
|
66
66
|
if x.length > 0 then
|
|
@@ -143,7 +143,7 @@ class RexleXPathParser
|
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
# e.g. b[c='45']
|
|
146
|
-
elsif s =~ /^[\w
|
|
146
|
+
elsif s =~ /^[\w\/\*]+\[/
|
|
147
147
|
|
|
148
148
|
found, token, remainder = lmatch(s.chars, '[',']')
|
|
149
149
|
a << token
|
|
@@ -153,11 +153,11 @@ class RexleXPathParser
|
|
|
153
153
|
a.concat a2[1..-1]
|
|
154
154
|
|
|
155
155
|
a2
|
|
156
|
-
elsif /^(?<name
|
|
156
|
+
elsif /^(?<name>[\w\*]+)\// =~ s
|
|
157
157
|
a << name << match($')
|
|
158
158
|
else
|
|
159
159
|
|
|
160
|
-
token = s.slice!(/^[@?\w
|
|
160
|
+
token = s.slice!(/^[@?\w\/:\*]+/)
|
|
161
161
|
a << token
|
|
162
162
|
remainder = s
|
|
163
163
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rexle-xpath-parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
adFNS7+S3VVpQqBQ7hIMoNW5ldGHINll6Z0dbjsCO8OFGOkrnzt9ovLffOXuQHpT
|
|
32
32
|
Gpk2If0KQMuV2Q==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-05-
|
|
34
|
+
date: 2016-05-28 00:00:00.000000000 Z
|
|
35
35
|
dependencies: []
|
|
36
36
|
description:
|
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
|
Binary file
|