rexle-xpath-parser 0.1.6 → 0.1.7

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: 23e33280e27491cb437772dd4e5671209fb7bc19
4
- data.tar.gz: 1272a975e382710683b156ada42e53a7ff76d716
3
+ metadata.gz: 32be01a67aa4ef1deb4017d8620ab0c0276295aa
4
+ data.tar.gz: 6f21a5ad7d7b69d8d8368ed5ebe354b7a07e3a5b
5
5
  SHA512:
6
- metadata.gz: cf6556c576522a09e4ce043c1569706ac436166f66145bcb04de4167586f37dfa841e8dc7f609e032055151b330dcdf64d3f24666a179a6143d18495c71d4018
7
- data.tar.gz: 2fb4e472b99dbf0fd313e74dff7eed44bda746d77bf83ef6bcf35f3ebe98f872b3bc79a664b3005b06a173b55fd194d586a40c69a0737d0d395c9c37cc9e79ec
6
+ metadata.gz: 402ef799560d10bbbe692de8f22b0b46d74849a684f76852de1cf2785591a2e427dfe0f53cf07bd09cc07cec202e65a53ea61900e16cab2ab4c29efe1c69f177
7
+ data.tar.gz: e0bc41c31ba3dfa9d2f7f0a4c85e31b3e4561272ce428378bc8a8edbc682ea9afe4078a7b2748c77c2ce4d351bc16a52a1c3e7058978b3c7f1e6188dc3cbbfc0
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
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��|�/�,��+�Ĝ
1
+ �}7R*�$x��l��g�-�?���0��m
2
+ sQ�s�y�˻1��w��8z���>��>�$���9��4���lK7�&KQ���EYq�SΜT�ibk+�x���k[Ϣ�Nc.L��s�)H���]!V ^��!�y�;퍣�4S0!PY�S��� 7P�)[�E�7� ���.��349��z��.\�g�� �с0y���I���<e�w+���˜�_Z��I�ե��+�P�N��
data.tar.gz.sig CHANGED
Binary file
@@ -26,7 +26,7 @@ class RexleXPathParser
26
26
 
27
27
  a.inject([]) do |r,x|
28
28
 
29
- if x =~ /@[\w\/]+/ then
29
+ if x =~ /^@[\w\/]+/ then
30
30
  r << [[:attribute, x[/@(\w+)/,1]]]
31
31
  elsif x =~ /[\w\/]+\[/
32
32
 
@@ -50,6 +50,8 @@ class RexleXPathParser
50
50
  r << [x.chop.to_sym]
51
51
  elsif x =~ /\d+/
52
52
  r << [:index, x[1..-2]]
53
+ elsif x =~ /^\/\//
54
+ r << [:recursive, *RexleXPathParser.new(x[2..-1]).to_a]
53
55
  elsif x =~ /[\w\/]+/
54
56
  r << x.split('/').map {|e| [:select, e]}
55
57
  elsif x.is_a? Array
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.6
4
+ version: 0.1.7
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-08 00:00:00.000000000 Z
34
+ date: 2016-05-14 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
metadata.gz.sig CHANGED
Binary file