lib/i18n/tasks/configuration.rb in i18n-tasks-1.0.9 vs lib/i18n/tasks/configuration.rb in i18n-tasks-1.0.10

- old
+ new

@@ -28,10 +28,17 @@ config.with_indifferent_access.tap do |c| if c[:relative_roots] warn_deprecated 'Please move relative_roots under search in config/i18n-tasks.yml.' c[:search][:relative_roots] = c.delete(:relative_roots) end + + if c.dig(:search, :exclude_method_name_paths) + warn_deprecated( + 'Please rename exclude_method_name_paths to relative_exclude_method_name_paths in config/i18n-tasks.yml.' + ) + c[:search][:relative_exclude_method_name_paths] = c[:search].delete(:exclude_method_name_paths) + end end else {}.with_indifferent_access end end @@ -42,15 +49,13 @@ end # data config # @return [Hash<adapter: String, options: Hash>] def data_config - @config_sections[:data] ||= begin - { - adapter: data.class.name, - config: data.config - } - end + @config_sections[:data] ||= { + adapter: data.class.name, + config: data.config + } end # translation config # @return [Hash{String => String,Hash,Array}] def translation_config