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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d1a70e9b5dadb2524bbf975079d68fc3baa07e1
4
- data.tar.gz: 85c42b77a86566670ab43d72a5a4aec7036bdf61
3
+ metadata.gz: fa050387a9eddb782bd701d39d7cc1eb863da574
4
+ data.tar.gz: cdadc2d6485266a68e4630715cdacba8c6dd641f
5
5
  SHA512:
6
- metadata.gz: 800c53f8e1669c600c70e0b545bec5f1cbb70803918e23527ac84a018e8ab1a9de70fe2d7a128a2b3039c5e196db55ab811c1728583a6d1ba24c46d119c11a4d
7
- data.tar.gz: 768ecfc76b58daba89acdfc6f321e904b43b61a0bbadff2e9e3e7ece4a04168a18869a01080569cf4b8b6d5768a5c505ece596e40d78312e95a1aaff90753836
6
+ metadata.gz: 3b183a75e9635652e04b808a1f9ec388fac1e6055827e4067b4f891cbc68ba6b8a527720fe8c4329e6f2b8ff0d8b700f91beebab63e9f7b6b6e6fecd1232dd2e
7
+ data.tar.gz: 96b256b3653b545698dc591521aa3ba8f772f3b06670dec74300fd2dab66cd36e27c3b800e6d5141136bdf4b05bc9bb3754cfc45a2f13a1de9351126f2c3b2cf
@@ -1,3 +1,4 @@
1
- 9']�i�$Scv;w:�^]m����MI��;��U�V�*
2
- ���|Lo��8Sx�dl��޾4&��mւ#��e�JD�$�<�|Ŵ����R�[j)]zR
3
- ���J�\yy)�0����f� v�F�[�E�wڷ�~�h�.�ku���ҽZ��H�J ���_�S��+�X�$�
1
+ �*�e.I��k���Z�����U��X�6h�� ��ڕ�}���4���p\!��D� fQ��vhtӾ�w��nZ����쭓��i��6bWhuU_��9>b��=d#9/
2
+ ���:����m�z��Tg��7p��[6��a���2L�韹ug�ٷ`�(�Q�h�ސW�- :�>����em̽��8�!��„[�id諘�(�e�&v��
3
+ ����Z��%S���
4
+ �é�>���a��|�+
data.tar.gz.sig CHANGED
Binary file
@@ -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.14
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/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1M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
+ u9W2yccAzoPxYA==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-05-28 00:00:00.000000000 Z
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