rexle-xpath-parser 0.1.5 → 0.1.6

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: 68a2052570eb11931e4732131e891183b8be7fe4
4
- data.tar.gz: 2ea45650f8cdfa915bbc9d3f35b03214cb6d4523
3
+ metadata.gz: 23e33280e27491cb437772dd4e5671209fb7bc19
4
+ data.tar.gz: 1272a975e382710683b156ada42e53a7ff76d716
5
5
  SHA512:
6
- metadata.gz: 01d110d48b90f842c14601b1409f4c7b7d399f0001b51a74f3ef6307c2fe4a535f9d98283210f9cfbadf4635e9f743b5294cb4039f184ba3ff822907b759e9af
7
- data.tar.gz: 0d59600fc1dc3b7b5136e53e59e422d163f5b9903d7a3d2adf6a19cedbf303456f8797489a1a0dd435f5a1bbd69c3658a9d9b9b907d3155094fb2941f09c16ff
6
+ metadata.gz: cf6556c576522a09e4ce043c1569706ac436166f66145bcb04de4167586f37dfa841e8dc7f609e032055151b330dcdf64d3f24666a179a6143d18495c71d4018
7
+ data.tar.gz: 2fb4e472b99dbf0fd313e74dff7eed44bda746d77bf83ef6bcf35f3ebe98f872b3bc79a664b3005b06a173b55fd194d586a40c69a0737d0d395c9c37cc9e79ec
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ���k\�xx!(jx� `�@���`F�(mF(��BwBX S
2
- k(��q�lg6��3�f�[y���ς�c�%���;,NḬޯ(�YC��F�<,�z�z�ѠKdZ�d�/]�x�F>&ϊ���d·>��a�} 0���8�b��h^�9�h�����il-o}�)S��+��ݍ�[�7��E߬SHap�)���cmx+�AZ��6DG��ب��x��g��g}EQ*�q����5u��x�/���
1
+ ;���t�>�Vޘ�`rzʺ�`��D�i�˟�F������k��/aZ Q�)E��~�<��w}�E�5ҁ�ht��!�_VW�Eɭ��U �`M ��:I�`-�qx���i�80{�y�%�v7�?'�2T�K����*���4, m�<�2���LfDE�38M��ڬ���u
2
+ G'9Pdn���9ڑhg���w��{�)B�{K� ˸B}����'���;��Q����(t�����2��|�/�,��+�Ĝ
data.tar.gz.sig CHANGED
Binary file
@@ -25,8 +25,10 @@ class RexleXPathParser
25
25
  def functionalise(a)
26
26
 
27
27
  a.inject([]) do |r,x|
28
-
29
- if x =~ /[\w\/]+\[/ then
28
+
29
+ if x =~ /@[\w\/]+/ then
30
+ r << [[:attribute, x[/@(\w+)/,1]]]
31
+ elsif x =~ /[\w\/]+\[/
30
32
 
31
33
  epath, predicate, remainder = x.match(/^([^\[]+)\[([^\]]+)\](.*)/).captures
32
34
 
@@ -41,7 +43,7 @@ class RexleXPathParser
41
43
  [:predicate, RexleXPathParser.new(predicate).to_a] + r
42
44
 
43
45
  elsif x =~ /=/
44
- r[-1] << [:text, :==, x[/=(.*)/,1].sub(/^["'](.*)["']$/,'\1')]
46
+ r[-1] << [:value, :==, x[/=(.*)/,1].sub(/^["'](.*)["']$/,'\1')]
45
47
  elsif x =~ /\|/
46
48
  r << [:union]
47
49
  elsif x =~ /\w+\(/
@@ -135,7 +137,7 @@ class RexleXPathParser
135
137
  a2
136
138
 
137
139
  else
138
- token = s.slice!(/^[\w\/]+/)
140
+ token = s.slice!(/^[@?\w\/]+/)
139
141
  a << token
140
142
  remainder = s
141
143
  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.5
4
+ version: 0.1.6
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-07 00:00:00.000000000 Z
34
+ date: 2016-05-08 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
metadata.gz.sig CHANGED
Binary file