rexle 0.5.5 → 0.5.6

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 +4 -1
  2. metadata +1 -1
data/lib/rexle.rb CHANGED
@@ -80,7 +80,10 @@ class Rexle
80
80
 
81
81
  attr_search = format_attributes(condition) if condition
82
82
 
83
- return scan_match(self, element_name, attr_search, condition, rlist) if xpath_value[0,2] == '//'
83
+ if xpath_value[0,2] == '//'
84
+ return_elements = scan_match(self, element_name, attr_search, condition, rlist)
85
+ return (elmnt_path[/text\(\)$/] ? return_elements : return_elements.map(&:value))
86
+ end
84
87
 
85
88
  return_elements = @child_lookup.map.with_index.select do |x|
86
89
  x[0][0] == element_name or element_name == '*'
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.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors: []
7
7