rexle 1.4.8 → 1.4.9
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 +0 -0
- data.tar.gz.sig +3 -3
- data/lib/rexle.rb +13 -3
- 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: 98f19567413d343fb79d1c7e52f86fdc9dbdc88b
|
4
|
+
data.tar.gz: bafcdc98a8e5b68a6c62bfdee0848c207fd76e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b37416cc559780e556e9a1c7d84b9b9a4a5c27ee8fb617e4c92ad875fd78f74ca9b3b99b9cae272546e0b804bf6cd9433b3337fd292d9ae594c870277bdc330f
|
7
|
+
data.tar.gz: a2723ec9c0a4916c17d42ceb614461ca10239b9a029cb951c74a477311c26eef21518d2877e45ef415f0d504b14c57a88ad63aecf64fbe2e6f1dc865cffe280c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
��
|
3
|
-
|
1
|
+
Ak���=���;�&h�T�;Ϸ�}n���Ԟ1��Ԓ>�)?��K���2�A]��,y?��{��`�eZ�ݾ�R��~�d�1������d
|
2
|
+
�RN��*���6�T�N�����d�F4��h����l)�)��i��?�+˖1�Wa>O�gS=�"JC�r�,j�v�a)5x�OQ�6Q��vȋ��U�J��.8<簍��ؖ�u5B��j�裎�m��
|
3
|
+
Ҽ�l��57V|���;�s25
|
data/lib/rexle.rb
CHANGED
@@ -11,6 +11,8 @@ require 'backtrack-xpath'
|
|
11
11
|
|
12
12
|
|
13
13
|
# modifications:
|
14
|
+
# 14-Sep-2017: improvement: An *and* operator can now be
|
15
|
+
# used between xpath statements
|
14
16
|
# 10-Sep-2017: bug fix: The following XPath has now been tested => //.[@id]
|
15
17
|
# 10-Aug-2017: feature: Rexle now has a member variable (@rexle) to keep
|
16
18
|
# track of the working document when elements are passed to
|
@@ -525,10 +527,18 @@ class Rexle
|
|
525
527
|
:"Rexle::Element" => proc {|x| [x]}
|
526
528
|
}
|
527
529
|
bucket = []
|
528
|
-
|
529
|
-
|
530
|
-
end
|
530
|
+
|
531
|
+
if path =~ /[\[]|\(/ then
|
531
532
|
|
533
|
+
raw_results = path.split(/\|/).map do |xp|
|
534
|
+
query_xpath(xp.strip, bucket, &blk)
|
535
|
+
end
|
536
|
+
else
|
537
|
+
raw_results = path.split(/ *(?:\||\band\b) */).map do |xp|
|
538
|
+
query_xpath(xp.strip, bucket, &blk)
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
532
542
|
return [true] if !path[/[><]/] and raw_results.flatten.index(true)
|
533
543
|
results = raw_results # .flatten.select {|x| x}
|
534
544
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
CqFh6U4iXSHeN7EtB+IaYwj0O7/uQThVBDM+MzSHp5u25hrVs7KrKap0f6rdAVcF
|
32
32
|
1V8kvBbe/enp7g==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-09-
|
34
|
+
date: 2017-09-14 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexleparser
|
metadata.gz.sig
CHANGED
Binary file
|