diff --git a/.ruby-version b/.ruby-version index 3e3c2f1e..227cea21 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.1.1 +2.0.0 diff --git a/lib/codesake/dawn/core.rb b/lib/codesake/dawn/core.rb index 6e66abdb..18b5fce9 100644 --- a/lib/codesake/dawn/core.rb +++ b/lib/codesake/dawn/core.rb @@ -118,12 +118,12 @@ def self.find_conf(create_if_none = false) '~/', '/usr/local/etc/', ] - # path_order.each do |p| - # fn = p + conf_name if p.start_with?('/') - # # if outside $HOME the config file must be hidden - # fn = File.expand_path(p) + '/.'+conf_name if ! p.start_with?('/') - # return fn if File.exist?(fn) - # end + path_order.each do |p| + fn = p + conf_name if p.start_with?('/') + # if outside $HOME the config file must be hidden + fn = File.expand_path(p) + '/.'+conf_name if ! p.start_with?('/') + return fn if File.exist?(fn) + end # Codesake::Dawn didn't find a config file. # If create_if_none flag is set to false, than I'll return nil so the