rexle 0.9.75 → 0.9.76

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80d4c57004bf8626692cb507fc28d99344c92a8d
4
- data.tar.gz: d57ee732b9526a055e40f3298e99e76817a87f11
3
+ metadata.gz: 15dcad49f46781b9a81eab91d6c600ce9a5a1aa6
4
+ data.tar.gz: ba43c911eabe6ee2fe27ff94ac26ab799f3e1d12
5
5
  SHA512:
6
- metadata.gz: 090769e2a956701a209a593a7b2ee18fb477e2eb7d3b7aa1df5f081601d87f2df46b249aa9f63c524cdd6e514fa317d953eeb69c599473bcf09e004e1999f837
7
- data.tar.gz: 45d9ecd4f123d6d0a2cd18a1b73208a6a1e246adc1acbebf958cf04737714561158c1bd6ffdfa8677c65db790afd303b83390fbdb0b0af7fb97861c75066b7a8
6
+ metadata.gz: d85e712b0328d0335f8feb89d814d5726535221607bc614321f549e6471f847a132986829805cba5ab816ad6e1b1b25693979fa5a072a0b655d2f68ee13d4801
7
+ data.tar.gz: 9cad24df925c9b4e20927994543b0a8beed753188289d4cb2e90675bb92e6df67c449a72cd9e1ca9a2717cb75a04643af97f7e07f9665f543bca655fb3e00b44
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rexle.rb CHANGED
@@ -10,6 +10,8 @@ require 'cgi'
10
10
  include REXML
11
11
 
12
12
  # modifications:
13
+ # 10-Oct-2013: bug fix: child elements which have the same name as their parent
14
+ # are now select correctly through XPath
13
15
  # 22-sep-2013: feature: remove() is now an alias of delete()
14
16
  # 30-jul-2013: feature: Rexle::Element#xml now accepts an xpath
15
17
  # 25-jun-2013: bug fix: doc.root.delete(xpath) fixed
@@ -373,8 +375,8 @@ class Rexle
373
375
  rs = scan_match(self, xpath_value).flatten.compact
374
376
  return n ? rs[n.to_i-1] : rs
375
377
 
376
- elsif (raw_path == '.' or raw_path == self.name) and attr_search.nil? then
377
- return [self]
378
+ #jr101013 elsif (raw_path == '.' or raw_path == self.name) and attr_search.nil? then
379
+ #jr101013 return [self]
378
380
  else
379
381
 
380
382
  return_elements = @child_lookup.map.with_index.select do |x|
data.tar.gz.sig CHANGED
Binary file
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: 0.9.75
4
+ version: 0.9.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  EgghkUCgC30KsgaYheoN5ILHCE52JXCfr1Qto26qUSdC49xWkxnQz2yrSq8z085Q
30
30
  h0bKDk/qqjLsNUnSPxhypj3wTgJNdHKX
31
31
  -----END CERTIFICATE-----
32
- date: 2013-09-22 00:00:00.000000000 Z
32
+ date: 2013-10-10 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexleparser
metadata.gz.sig CHANGED
Binary file