rexle 0.8.10 → 0.8.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 -3
  2. metadata +1 -1
data/lib/rexle.rb CHANGED
@@ -349,7 +349,7 @@ class Rexle
349
349
 
350
350
  "e.xpath('#{path}').first.value == #{value}"
351
351
  else
352
- "name == '%s' and value %s %s" % [x[0], x[1], x[2]]
352
+ "(name == '%s' and value %s %s)" % [x[0], x[1], x[2]]
353
353
  end
354
354
  else
355
355
  "e.value %s %s" % [x[1], x[2]]
@@ -402,7 +402,7 @@ class Rexle
402
402
  x = raw_element
403
403
  e = @child_elements[x.last]
404
404
  h = x[0][1] # <-- fetch the attributes
405
-
405
+
406
406
  if attr_search then
407
407
  if attr_search.is_a? Fixnum then
408
408
  block_given? ? blk.call(e) : e if i == attr_search
@@ -410,7 +410,7 @@ class Rexle
410
410
  block_given? ? blk.call(e) : e
411
411
  elsif h and attr_search[/^h\[/] and eval(attr_search)
412
412
  block_given? ? blk.call(e) : e
413
- elsif attr_search[/^name ==/] and \
413
+ elsif attr_search[/^\(name ==/] and \
414
414
  e.child_lookup.select{|name, attributes, value| eval(attr_search) }.length > 0
415
415
  block_given? ? blk.call(e) : e
416
416
  elsif attr_search[/^e\.value/] and eval(attr_search)
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.8.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors: []
7
7