lib/qonfig/data_set.rb in qonfig-0.21.0 vs lib/qonfig/data_set.rb in qonfig-0.22.0

- old
+ new

@@ -95,56 +95,56 @@ raise Qonfig::FrozenSettingsError, 'Frozen config can not be reloaded' if frozen? load!(settings_map, &configurations) end end - # @param file_path [String, Symbol] + # @param file_path [String, Symbol, Pathname] # @option format [String, Symbol] # @option strict [Boolean] # @option expose [NilClass, String, Symbol] Environment key # @param configurations [Block] # @return [void] # # @see Qonfig::DataSet#load_setting_values_from_file # # @api public # @since 0.17.0 - # @version 0.21.0 + # @version 0.22.0 def load_from_file(file_path, format: :dynamic, strict: true, expose: nil, &configurations) thread_safe_access do load_setting_values_from_file( file_path, format: format, strict: strict, expose: expose, &configurations ) end end - # @param file_path [String] + # @param file_path [String, Symbol, Pathname] # @option strict [Boolean] # @option expose [NilClass, String, Symbol] Environment key # @param configurations [Block] # @return [void] # # @see Qonfig::DataSet#load_from_file # # @api public # @since 0.17.0 - # @version 0.21.0 + # @version 0.22.0 def load_from_yaml(file_path, strict: true, expose: nil, &configurations) load_from_file(file_path, format: :yml, strict: strict, expose: expose, &configurations) end - # @param file_path [String] + # @param file_path [String, Symbol, Pathname] # @option strict [Boolean] # @option expose [NilClass, String, Symbol] Environment key # @param configurations [Block] # @return [void] # # @see Qonfig::DataSet#load_from_file # # @api public # @since 0.17.0 - # @version 0.21.0 + # @version 0.22.0 def load_from_json(file_path, strict: true, expose: nil, &configurations) load_from_file(file_path, format: :json, strict: strict, expose: expose, &configurations) end # @option format [String, Symbol] @@ -511,11 +511,11 @@ @validator = validator end apply_settings(settings_map, &configurations) end - # @param file_path [String, Symbol] + # @param file_path [String, Symbol, Pathname] # @option format [String, Symbol] # @option strict [Boolean] # @option expose [NilClass, String, Symbol] # @option callcer_location [NilClass, String] # @param configurations [Block] @@ -523,9 +523,10 @@ # # @see Qonfig::Commands::Instantiation::ValuesFile # # @api private # @since 0.17.0 + # @version 0.22.0 def load_setting_values_from_file( file_path, format: :dynamic, strict: true, expose: nil,