rexle-xpath-parser 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -3
- data.tar.gz.sig +0 -0
- data/lib/rexle-xpath-parser.rb +6 -4
- metadata +17 -17
- 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: fa050387a9eddb782bd701d39d7cc1eb863da574
|
4
|
+
data.tar.gz: cdadc2d6485266a68e4630715cdacba8c6dd641f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b183a75e9635652e04b808a1f9ec388fac1e6055827e4067b4f891cbc68ba6b8a527720fe8c4329e6f2b8ff0d8b700f91beebab63e9f7b6b6e6fecd1232dd2e
|
7
|
+
data.tar.gz: 96b256b3653b545698dc591521aa3ba8f772f3b06670dec74300fd2dab66cd36e27c3b800e6d5141136bdf4b05bc9bb3754cfc45a2f13a1de9351126f2c3b2cf
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
�*�e.I��k���Z�����U��X�6h����ڕ�}���4���p\!��D� �fQ��vhtӾ�w��n�Z����쭓��i��6�bWhu�U_��9>b��=d#9/
|
2
|
+
���:����m�z��Tg��7p��[6��a���2L�韹u�g�ٷ`�(�Q�h�ސW�- :�>����em̽��8�!��[�i�d諘�(�e�&v��
|
3
|
+
����Z��%S���
|
4
|
+
�é�>���a��|�+
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle-xpath-parser.rb
CHANGED
@@ -25,7 +25,7 @@ class RexleXPathParser
|
|
25
25
|
def functionalise(a, r2=[])
|
26
26
|
|
27
27
|
a.inject(r2) do |r,x|
|
28
|
-
|
28
|
+
|
29
29
|
return r << functionalise(x) if x.is_a? Array
|
30
30
|
|
31
31
|
if /^(?<func>\w+)\(\)/ =~ x then
|
@@ -37,6 +37,10 @@ class RexleXPathParser
|
|
37
37
|
elsif x =~ /^[\w\/\*]+\[/
|
38
38
|
|
39
39
|
epath, predicate, remainder = x.match(/^([^\[]+)\[([^\]]+)\](.*)/).captures
|
40
|
+
|
41
|
+
r.concat epath.split('/').map {|e| [:select, e]} << \
|
42
|
+
[:predicate, RexleXPathParser.new(predicate).to_a]
|
43
|
+
|
40
44
|
|
41
45
|
if remainder.length > 0 then
|
42
46
|
remainder.slice!(0) if remainder[0] == '/'
|
@@ -45,8 +49,6 @@ class RexleXPathParser
|
|
45
49
|
r
|
46
50
|
end
|
47
51
|
|
48
|
-
epath.split('/').map {|e| [:select, e]} << \
|
49
|
-
[:predicate, RexleXPathParser.new(predicate).to_a] + r
|
50
52
|
|
51
53
|
elsif x =~ /=/
|
52
54
|
r[-1] << [:value, :==, x[/=(.*)/,1].sub(/^["'](.*)["']$/,'\1')]
|
@@ -157,7 +159,7 @@ class RexleXPathParser
|
|
157
159
|
a << name << match($')
|
158
160
|
else
|
159
161
|
|
160
|
-
token = s.slice!(/^[@?\w
|
162
|
+
token = s.slice!(/^[@?\w\/:\*\(\)]+/)
|
161
163
|
a << token
|
162
164
|
remainder = s
|
163
165
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvb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Aq6QmNFvB+ut5tD/k4XfIkIz
|
28
|
+
SSRJf/hu0rlhQ2bO1LR0NP2THxnraaFnWBgjtO6ZCP7M/8QOcZRMYZPCt0C6HNon
|
29
|
+
ZlZ9M8a6f3jBgOGOp/jgCzr/RKrVKsePOSNgFcFxvPgJWVgtC89IuPEqoLZKG+SB
|
30
|
+
bbARqZ76Df6faRg4TCkpn9N8eoAPV54pAEHuKpfW4QkaIV12Brre7d5gjp5wfFG1
|
31
|
+
mkV2keVfUpfaTKNzUzo9lt/HSN8u98bD+dZh7rT5z8OBu6Kh0he35JvmyxOTg+Hg
|
32
|
+
u9W2yccAzoPxYA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-05-
|
34
|
+
date: 2016-05-29 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
Binary file
|