rexle 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rexle.rb +3 -1
  2. metadata +1 -1
data/lib/rexle.rb CHANGED
@@ -10,6 +10,8 @@ include REXML
10
10
 
11
11
 
12
12
  # modifications:
13
+ # 04-Sep-2011: Bug fix: xpath will now only return Rexle:elements when
14
+ # * is used.
13
15
  # 03-Sep-2011: Implemented deep_clone as well as modifying clone to function
14
16
  # similar to REXML.
15
17
  # 28-Au-2011: New line characters between elements are now preserved
@@ -220,7 +222,7 @@ class Rexle
220
222
  else
221
223
 
222
224
  return_elements = @child_lookup.map.with_index.select do |x|
223
- x[0][0] == element_name or element_name == '*'
225
+ x[0][0] == element_name or (element_name == '*' && x[0].is_a?(Array))
224
226
  end
225
227
 
226
228
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.10
5
+ version: 0.9.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson