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 +4 -4
- checksums.yaml.gz.sig +2 -2
- data.tar.gz.sig +0 -0
- data/lib/rexle-xpath-parser.rb +3 -1
- 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: 32be01a67aa4ef1deb4017d8620ab0c0276295aa
|
4
|
+
data.tar.gz: 6f21a5ad7d7b69d8d8368ed5ebe354b7a07e3a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 402ef799560d10bbbe692de8f22b0b46d74849a684f76852de1cf2785591a2e427dfe0f53cf07bd09cc07cec202e65a53ea61900e16cab2ab4c29efe1c69f177
|
7
|
+
data.tar.gz: e0bc41c31ba3dfa9d2f7f0a4c85e31b3e4561272ce428378bc8a8edbc682ea9afe4078a7b2748c77c2ce4d351bc16a52a1c3e7058978b3c7f1e6188dc3cbbfc0
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
�
|
1
|
+
�}7�R*�$x��l��g�-�?���0��m
|
2
|
+
s�Q�s�y�˻1��w��8z���>��>�$���9��4���lK7�&K�Q���EYq�SΜT�ibk+�x���k[Ϣ�Nc.L��s�)H���]!V� ^��!�y�;퍣�4S0!PY�S��� 7�P�)[�E�7� ���.��349��z��.\�g�� �с0y���I���<e�w+���˜�_Z��I�ե��+�P�N��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle-xpath-parser.rb
CHANGED
@@ -26,7 +26,7 @@ class RexleXPathParser
|
|
26
26
|
|
27
27
|
a.inject([]) do |r,x|
|
28
28
|
|
29
|
-
if x =~
|
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.
|
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-
|
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
|