rexle 1.3.34 → 1.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fdf88c793c8d5124a317111590bf0d147aced15
4
- data.tar.gz: 8288d7cc45c890c02471d1f0084acf714c470eff
3
+ metadata.gz: 1b2703ec657e1d56dc5ab62dbe35c9a1f3ab70b5
4
+ data.tar.gz: c990142d899aab403f4707f9feeabe65588364d4
5
5
  SHA512:
6
- metadata.gz: ca9664b3c23eda1cc0a7ad4b4ea5dfb8014fd5e784e0da53086815485ca1e4e01b1ca8c486e6c6e750b9e72d50bd55266a71d34e95efdf584217b5e9d5c2700a
7
- data.tar.gz: 888325db38fba0b2a29dd255d3ad16d5871ca021f8f0ef0a511a7bcdf5b676aed1cf12f079074cf29a4f7f9f658adb52d64c0fe3861975be13b3a4ca30579dec
6
+ metadata.gz: cff408e710b282efd9a503b62595014e4beb143afb1e8b9ca8b0cb7b14c4faefe456a65df79602c6bb103073fbcdd3c45ca1a67b1f19dc22b8ad432f24ee6f15
7
+ data.tar.gz: d970f809cac93bb4b5c3fc88c039ae05a9aa7c0d3d0af76e22cd74e1027b02a312960dd9720d3bd7cb03266fd177bb8a85f3451d66b4e9e32416a50ae12c26c4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- selector.split(',').flat_map{|x| @doc.root.xpath RexleCSS.new(x).to_xpath}
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.34
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-05-21 00:00:00.000000000 Z
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