Permalink
Browse files

undo ruby version change and undo comments

  • Loading branch information...
1 parent 095698a commit a6fead6451852a96b8c5165f04a9d918935d0f30 @sgringwe sgringwe committed Apr 25, 2014
Showing with 7 additions and 7 deletions.
  1. +1 −1 .ruby-version
  2. +6 −6 lib/codesake/dawn/core.rb
View
2 .ruby-version
@@ -1 +1 @@
-2.1.1
+2.0.0
View
12 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

0 comments on commit a6fead6

Please sign in to comment.