lib/chutney/configuration.rb in chutney-3.7.0 vs lib/chutney/configuration.rb in chutney-3.8.0

- old
+ new

@@ -18,11 +18,13 @@ YAML.load_file default_configuration_path || '' if default_configuration_path end def load_user_configuration config_files = ['chutney.yml', '.chutney.yml'].map do |fname| - Dir.glob(File.join(Dir.pwd, '**', fname)) - end.flatten + ['.', 'config'].map do |dir| + Dir["#{dir}#{File::SEPARATOR}#{fname}"] + end + end.flatten.compact self.user_configuration_path = config_files.first return unless !user_configuration_path.nil? && File.exist?(user_configuration_path) begin