From 7d02d3be89dd988cceba379c8413a8b9dc926814 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Sun, 20 Jul 2014 12:21:46 +0300 Subject: Depend on newer asetus version We are doing this in sql.rb :user => @cfg.sql.user? :password => @cfg.sql.password? As 'asetus' will accept arbitrary chain @cfg.sql.one.two.three it is clear that 'one' or 'two' cannot _ever_ return nil/false, otherwise you cannot create 'three'. So if there isn't value of one/two, instance of 'asetus' is returned, upon which we can build two, and then tree'. one?, two?, three? version existed in old asetus, as strict boolean test @cfg.sql.one? would return true, false or nil In newer version, instead of returning true, it returns actual value. --- oxidized.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index 5da9717..9e6ef85 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |s| s.require_path = 'lib' s.required_ruby_version = '>= 1.9.3' - s.add_dependency 'asetus', '>= 0.0.7' + s.add_dependency 'asetus', '>= 0.1.0' s.add_dependency 'slop' s.add_dependency 'net-ssh' end -- cgit v1.2.1