lib/qonfig/uploaders/yaml.rb in qonfig-0.25.0 vs lib/qonfig/uploaders/yaml.rb in qonfig-0.26.0

- old
+ new

@@ -58,19 +58,21 @@ # @api private # @since 0.11.0 def hash_representation_options(options, &value_processor) {}.tap do |representation_opts| # NOTE: this case/when with the same logic is only used for better code readbility + # rubocop:disable Lint/DuplicateBranch case # NOTE: options has :symbolize_keys key when options.key?(:symbolize_keys) && !!options[:symbolize_keys] representation_opts[:transform_key] = KEY_SYMBOLIZER # NOTE: options does not have :symbolize_keys key when !options.key?(:symbolize_keys) && DEFAULT_OPTIONS[:symbolize_keys] # :nocov: representation_opts[:transform_key] = KEY_SYMBOLIZER # :nocov: end + # rubocop:enable Lint/DuplicateBranch # NOTE: provide value transformer if block_given? representation_opts[:transform_value] = value_processor end