roxo 0.1.8 → 0.1.9

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.
Files changed (3) hide show
  1. data/lib/roxo.rb +2 -1
  2. data/roxo.gemspec +1 -1
  3. metadata +3 -3
data/lib/roxo.rb CHANGED
@@ -51,7 +51,8 @@ class ROXO
51
51
  if terminal? # Proxy all method calls to the wrapped object.
52
52
  return @value.send(sym, *args)
53
53
  elsif sym.to_s[-1..-1]=="?" # re-dispatch without question mark, interpret result as a boolean.
54
- return %w{yes true t y}.include?(send(sym.to_s[0..-2].to_sym, *args).downcase)
54
+ node = send(sym.to_s[0..-2].to_sym, *args)
55
+ return node ? %w{yes true t y}.include?(node.downcase) : nil
55
56
  elsif @children[sym]
56
57
  x = self.class.new(@children[sym].first)
57
58
  return x.terminal? ? x.value : x
data/roxo.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'roxo'
3
- gem.version = '0.1.8'
3
+ gem.version = '0.1.9'
4
4
 
5
5
  gem.author, gem.email = 'Burke Libbey', "burke@burkelibbey.org"
6
6
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 8
9
- version: 0.1.8
8
+ - 9
9
+ version: 0.1.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Burke Libbey
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-22 00:00:00 -05:00
17
+ date: 2010-04-23 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency