Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lib/qonfig/data_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ def frozen?
thread_safe_access { settings.__is_frozen__ }
end

# @param keys [Array<String,Symbol>]
# @option sttings [Hash<String|Symbol,Any>]
# @param configurations [Block]
# @return [Qonfig::DataSet]
#
# @api public
# @since 0.1.0
def sub_config(*keys, settings: {}, &configurations)
thread_safe_access do
# TODO: realize
end
end

# @param settings_map [Hash]
# @param configurations [Proc]
# @return [void]
Expand Down
2 changes: 1 addition & 1 deletion qonfig.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'simplecov', '~> 0.18'
spec.add_development_dependency 'rspec', '~> 3.9'
spec.add_development_dependency 'armitage-rubocop', '~> 0.79'
spec.add_development_dependency 'armitage-rubocop', '~> 0.80'

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake', '>= 13'
Expand Down
2 changes: 0 additions & 2 deletions spec/features/plugins/toml/save_to_toml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@

context 'config with supported toml types' do
let(:config) do
# rubocop:disable Style/BracesAroundHashParameters
Class.new(Qonfig::DataSet) do
setting :true_boolean, true
setting :false_boolean, false
Expand All @@ -90,7 +89,6 @@
setting :collection, [%w[1 2], [3, 4], [true, false], []]
setting :time, Time.utc(2031, 0o5, 27, 0o7, 32, 0)
end.new
# rubocop:enable Style/BracesAroundHashParameters
end

specify 'correctly represents YAML data types' do
Expand Down
2 changes: 0 additions & 2 deletions spec/features/save_to_file/save_to_json_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
let(:config_file_name) { "#{SecureRandom.uuid}.json" }
let(:config_file_path) { SpecSupport.artifact_path(config_file_name) }
let(:config_klass) do
# rubocop:disable Style/BracesAroundHashParameters
Class.new(Qonfig::DataSet) do
setting :true_bollean, true
setting :false_boolean, false
Expand All @@ -99,7 +98,6 @@
setting :null_data, nil
setting :collection, ['1', 2, true, false, nil, [], {}]
end
# rubocop:enable Style/BracesAroundHashParameters
end
let(:config) { config_klass.new }

Expand Down
2 changes: 0 additions & 2 deletions spec/features/save_to_file/save_to_yaml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
let(:config_file_name) { "#{SecureRandom.uuid}.yml" }
let(:config_file_path) { SpecSupport.artifact_path(config_file_name) }
let(:config_klass) do
# rubocop:disable Style/BracesAroundHashParameters
Class.new(Qonfig::DataSet) do
setting :true_bollean, true
setting :false_boolean, false
Expand All @@ -120,7 +119,6 @@
setting :null_data, nil
setting :collection, ['1', 2, true, false, nil, [], {}]
end
# rubocop:enable Style/BracesAroundHashParameters
end
let(:config) { config_klass.new }

Expand Down