rexle 1.3.13 → 1.3.14

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: e8857d193fe5621009f9550a8965fa3ee7689f4c
4
- data.tar.gz: f62a1e5686fb3a250bbf2025ff3ed21b39fef31d
3
+ metadata.gz: e776621157e65a33b2df6868828286633b40d8f5
4
+ data.tar.gz: 9a0d1b84665de2e310ba49dd5534a9df3325c81d
5
5
  SHA512:
6
- metadata.gz: 48ae07113a8d1526d59190a06908d2e7a6ad160244480cb224118d0e5e0d1a4603f21594e899b1c7a3df8965b9547f385b5e5e5bb814640bf0c8a3ae2539d250
7
- data.tar.gz: 60fc8a90387a80cf2b299c4ff4715b2164c4daa38f1b332e1ad620882e8a353c2a35772b2f65435b6f5c79faa8bc7c451258c0924e668f1f78ff0406646db7ab
6
+ metadata.gz: 2251cb40dd1c6bdad1ad0462e5fdc1a09d238e66b107c7a7991a1527cbd97a638b98ac3df3a9a0bfe2e7143adae120584c5e596cad0c940586b7c08ec8829797
7
+ data.tar.gz: 7786bb4e4bcec86144aed24fefbf6bb3e78f0b30df78fb5b12d0bac12ebf94e14f992fd70e0aa6d4e01ffc1b75198d155d922fa6f3584dc77a542504227305db
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexle.rb CHANGED
@@ -14,6 +14,8 @@ require 'backtrack-xpath'
14
14
 
15
15
  # 13-Mar-2016: bug fix: Reapplied a statement that was commented out in
16
16
  # the previous gem release
17
+ # bug fix: Removed a redundant statement from
18
+ # method attribute_search()
17
19
  # 12-Mar-2016: A predicate can now handle position() with the
18
20
  # equality operator e.g. b[position() = 2]
19
21
  # 09-Mar-2016: bug fix: '.' now returns the current element
@@ -1123,7 +1125,7 @@ class Rexle
1123
1125
 
1124
1126
  def attribute_search(attr_search, e, h, i=nil, &blk)
1125
1127
 
1126
- r = if attr_search.is_a? Fixnum then
1128
+ r2 = if attr_search.is_a? Fixnum then
1127
1129
  block_given? ? blk.call(e) : e if i == attr_search
1128
1130
  elsif attr_search[/i\s(?:<|>|==)\s\d+/] and eval(attr_search) then
1129
1131
  block_given? ? blk.call(e) : e
@@ -1150,11 +1152,9 @@ class Rexle
1150
1152
  end
1151
1153
  elsif attr_search[/e\.xpath/] and eval(attr_search)
1152
1154
  block_given? ? blk.call(e) : e
1153
- elsif e.element attr_search then
1154
- block_given? ? blk.call(e) : e
1155
1155
  end
1156
1156
 
1157
- r
1157
+ r2
1158
1158
  end
1159
1159
 
1160
1160
  def recursive_scan(nodes, &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.13
4
+ version: 1.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file