rexle-xpath-parser 0.1.15 → 0.1.16
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 +1 -4
- data.tar.gz.sig +2 -1
- data/lib/rexle-xpath-parser.rb +7 -4
- 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: 93a8a071150292786c905328c0300b8de4035060
|
4
|
+
data.tar.gz: 71798e2c5dacbb3d5a49833c4a3ddb58b942b83f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 205baa611ea1302b35767adc4b14fbef226cd2c8c0e156a856d3b117d9d1c403532f8b71a5bde1db75087e4de3758007d7dd2d9f439cc4861971c9f0bc9d6203
|
7
|
+
data.tar.gz: c5eeb9f2eb775e2729c82a90940c0f24248b6170e116afc0fbd62c4f1734624c550fd552c771cd94d03fcf94802f0d4593b7664cd5fff4e4f6bed1e8790c2bcb
|
checksums.yaml.gz.sig
CHANGED
@@ -1,4 +1 @@
|
|
1
|
-
|
2
|
-
���:����m�z��Tg��7p��[6��a���2L�韹u�g�ٷ`�(�Q�h�ސW�- :�>����em̽��8�!��[�i�d諘�(�e�&v��
|
3
|
-
����Z��%S���
|
4
|
-
�é�>���a��|�+
|
1
|
+
9��m�s�l���N�~��>��*��._�\u�2� B��f�+��X�p�H��֜ɍ�����E��h������6ѡ�5����{�����<M�_��ױ9�d%7Z`zF�l��iG#:+!���H��~�;�2+7�㎲��o�O��x�rIDɆUq������T�
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
8�!������]
|
2
|
+
(��jj����Z2�,0B�r������:I��d�m�[�u����z;�8��Q��;oC�]�"T�'�����ˤ�R��f�3^@����R��
|
data/lib/rexle-xpath-parser.rb
CHANGED
@@ -25,7 +25,9 @@ class RexleXPathParser
|
|
25
25
|
def functionalise(a, r2=[])
|
26
26
|
|
27
27
|
a.inject(r2) do |r,x|
|
28
|
-
|
28
|
+
|
29
|
+
#puts 'x: ' + x.inspect
|
30
|
+
|
29
31
|
return r << functionalise(x) if x.is_a? Array
|
30
32
|
|
31
33
|
if /^(?<func>\w+)\(\)/ =~ x then
|
@@ -49,9 +51,10 @@ class RexleXPathParser
|
|
49
51
|
r
|
50
52
|
end
|
51
53
|
|
52
|
-
|
53
|
-
|
54
|
-
|
54
|
+
elsif /!=(?<value>.*)/ =~ x
|
55
|
+
r[-1] << [:value, :'!=', value.sub(/^["'](.*)["']$/,'\1')]
|
56
|
+
elsif /=(?<value>.*)/ =~ x
|
57
|
+
r[-1] << [:value, :==, value.sub(/^["'](.*)["']$/,'\1')]
|
55
58
|
elsif x =~ /\|/
|
56
59
|
r << [:union]
|
57
60
|
elsif x =~ /\w+\(/
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
mkV2keVfUpfaTKNzUzo9lt/HSN8u98bD+dZh7rT5z8OBu6Kh0he35JvmyxOTg+Hg
|
32
32
|
u9W2yccAzoPxYA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-05-
|
34
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
Binary file
|