lib/qonfig/plugins/toml/commands/definition/expose_toml.rb in qonfig-0.24.1 vs lib/qonfig/plugins/toml/commands/definition/expose_toml.rb in qonfig-0.25.0
- old
+ new
@@ -99,11 +99,11 @@
envname = [env.to_s, extname].reject(&:empty?).join('')
envfile = [basename, envname].reject(&:empty?).join('.')
realfile = dirname.join(envfile).to_s
toml_data = load_toml_data(realfile)
- toml_based_settings = builde_data_set_klass(toml_data).new.settings
+ toml_based_settings = build_data_set_klass(toml_data).new.settings
settings.__append_settings__(toml_based_settings)
end
# rubocop:enable Metrics/AbcSize
@@ -123,11 +123,11 @@
raise(
Qonfig::ExposeError,
"#{file_path} file does not contain settings with <#{env}> environment key!"
) unless toml_data_slice
- toml_based_settings = builde_data_set_klass(toml_data_slice).new.settings
+ toml_based_settings = build_data_set_klass(toml_data_slice).new.settings
settings.__append_settings__(toml_based_settings)
end
# rubocop:enable Metrics/AbcSize
@@ -143,9 +143,9 @@
# @param toml_data [Hash]
# @return [Class<Qonfig::DataSet>]
#
# @api private
# @since 0.12.0
- def builde_data_set_klass(toml_data)
+ def build_data_set_klass(toml_data)
Qonfig::DataSet::ClassBuilder.build_from_hash(toml_data)
end
end