rexle 1.3.34 → 1.3.35
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 +0 -0
- data/lib/rexle.rb +10 -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: 1b2703ec657e1d56dc5ab62dbe35c9a1f3ab70b5
|
4
|
+
data.tar.gz: c990142d899aab403f4707f9feeabe65588364d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cff408e710b282efd9a503b62595014e4beb143afb1e8b9ca8b0cb7b14c4faefe456a65df79602c6bb103073fbcdd3c45ca1a67b1f19dc22b8ad432f24ee6f15
|
7
|
+
data.tar.gz: d970f809cac93bb4b5c3fc88c039ae05a9aa7c0d3d0af76e22cd74e1027b02a312960dd9720d3bd7cb03266fd177bb8a85f3451d66b4e9e32416a50ae12c26c4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle.rb
CHANGED
@@ -12,6 +12,8 @@ require 'backtrack-xpath'
|
|
12
12
|
|
13
13
|
# modifications:
|
14
14
|
|
15
|
+
# 08-Jul-2016: bug fix: Dynarex#css will no longer return the Rexle
|
16
|
+
# object in the results e.g. doc.css '*'
|
15
17
|
# 21-May-2016: bug fix: If an xpath containing and attribute only is passed
|
16
18
|
# into method Rexle::Element#text it will now call the
|
17
19
|
# attribute's value
|
@@ -279,7 +281,14 @@ class Rexle
|
|
279
281
|
end
|
280
282
|
|
281
283
|
def css(selector)
|
282
|
-
|
284
|
+
|
285
|
+
a = selector.split(',').flat_map do |x|
|
286
|
+
@doc.root.xpath RexleCSS.new(x).to_xpath
|
287
|
+
end
|
288
|
+
|
289
|
+
a.shift if self.class.to_s =~ /Rexle$/
|
290
|
+
|
291
|
+
return a
|
283
292
|
end
|
284
293
|
|
285
294
|
def xpath(path, &blk)
|
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.3.
|
4
|
+
version: 1.3.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
pOw2Fx4uv9tO6wagRTcaHduxkh4jYfPDQI9mODFccHeY+wRLDGTENQwIILvMgEa7
|
32
32
|
50vRuyU+obGfjg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-
|
34
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexleparser
|
metadata.gz.sig
CHANGED
Binary file
|