lib/i18n/tasks/configuration.rb in i18n-tasks-0.9.13 vs lib/i18n/tasks/configuration.rb in i18n-tasks-0.9.14
- old
+ new
@@ -12,13 +12,13 @@
# @return [Hash{String => String,Hash,Array}]
def config
@config || (self.config = {})
end
- CONFIG_FILES = %w(
+ CONFIG_FILES = %w[
config/i18n-tasks.yml config/i18n-tasks.yml.erb
i18n-tasks.yml i18n-tasks.yml.erb
- ).freeze
+ ].freeze
def file_config
file = CONFIG_FILES.detect { |f| File.exist?(f) }
config = file && YAML.load(Erubis::Eruby.new(File.read(file, encoding: 'UTF-8')).result)
if config.present?