From 25de75e8423d04037e03df71d2488f71fd95d52b Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 11 Apr 2024 16:38:42 +0900 Subject: [PATCH 1/5] simutaneously ==> simultaneously --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 119580fe..2cdc34c0 100644 --- a/README.md +++ b/README.md @@ -428,7 +428,7 @@ ENV['Settings.section.server'] = 'google.com' It won't work with arrays, though. -It is considered an error to use environment variables to simutaneously assign a "flat" value and a multi-level value to a key. +It is considered an error to use environment variables to simultaneously assign a "flat" value and a multi-level value to a key. ```ruby # Raises an error when settings are loaded From 71f0d0d275cd3222bb12722f3f36478466bb5194 Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 11 Apr 2024 16:38:54 +0900 Subject: [PATCH 2/5] overwriten ==> overwritten --- spec/options_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/options_spec.rb b/spec/options_spec.rb index fbf0b0ca..03f7b94b 100644 --- a/spec/options_spec.rb +++ b/spec/options_spec.rb @@ -70,7 +70,7 @@ it 'should allow to access them via object member notation' do expect(config.select).to be_nil expect(config.table).to be_nil - expect(config.exit!).to be_nil + expect(config.exit!).to be_nil end it 'should allow to access them using [] operator' do @@ -167,7 +167,7 @@ config.reload! end - it 'should be overwriten by the following values' do + it 'should be overwritten by the following values' do expect(config['tvrage']['service_url']).to eq('http://services.tvrage.com') end From 7291d1fb5d2a76ade7300ca314ef0f18353b534c Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 11 Apr 2024 16:39:03 +0900 Subject: [PATCH 3/5] wit ==> with --- spec/config_env_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/config_env_spec.rb b/spec/config_env_spec.rb index a5eee612..99e3e863 100644 --- a/spec/config_env_spec.rb +++ b/spec/config_env_spec.rb @@ -166,7 +166,7 @@ expect(config.world.countries.europe).to eq(0) end - it 'should ignore variables wit default separator' do + it 'should ignore variables with default separator' do ENV['Settings.new_var'] = 'value' expect(config.new_var).to eq(nil) From 64a782c8a853e5b9eabcce64e3b0f48bcdb3cddf Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 11 Apr 2024 16:41:27 +0900 Subject: [PATCH 4/5] exmaple ==> example --- spec/fixtures/unsafe_load.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/fixtures/unsafe_load.yml b/spec/fixtures/unsafe_load.yml index b0921ff4..6152bb84 100644 --- a/spec/fixtures/unsafe_load.yml +++ b/spec/fixtures/unsafe_load.yml @@ -7,6 +7,6 @@ test: database: myapp_test pool: *pool # Psych::BadAlias: Unknown alias others: - regex: !ruby/regexp '/https?:\/\/.*exmaple\.com/' # Tried to load unspecified class: Regexp (Psych::DisallowedClass) + regex: !ruby/regexp '/https?:\/\/.*example\.com/' # Tried to load unspecified class: Regexp (Psych::DisallowedClass) date: 2021-08-03 # Tried to load unspecified class: Date (Psych::DisallowedClass) time: 2001-12-14T21:59:43.10-05:00 # Tried to load unspecified class: Time (Psych::DisallowedClass) From 63e07262238cf2d85db46bbda8ebff9945507f30 Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 11 Apr 2024 16:41:42 +0900 Subject: [PATCH 5/5] defered ==> deferred --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6319f40f..e49a63ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,7 +56,7 @@ * Rails versions `< 5.2` are no longer supported ([#316](https://github.com/rubyconfig/config/pull/316)) * Ruby versions `< 2.6` are no longer supported ([#316](https://github.com/rubyconfig/config/pull/316)) * Support `HashSource` and `EnvSource` instances in `Config.load_files` and `Config.load_and_set_settings`. ([#315](https://github.com/rubyconfig/config/pull/315)). There are a few subtle breaking changes: - * Previously, `Config.load_files` (called from `Config.load_and_set_settings`) would call `.to_s` on each of its arguments. Now, this responsibility is defered to YAMLSource. In effect, if your application passes String or Pathname objects to `Config.load_files`, no changes are necessary, but if you were somehow relying on the `.to_s` call for some other type of object, you'll now need to call `.to_s` on that object before passing it to `Config`. + * Previously, `Config.load_files` (called from `Config.load_and_set_settings`) would call `.to_s` on each of its arguments. Now, this responsibility is deferred to YAMLSource. In effect, if your application passes String or Pathname objects to `Config.load_files`, no changes are necessary, but if you were somehow relying on the `.to_s` call for some other type of object, you'll now need to call `.to_s` on that object before passing it to `Config`. * Before this change, `Config.load_files` would call `uniq` on its argument array. This call has been removed, so duplicate file paths are not removed before further processing. In some cases, this can cause differences in behavior since later config files override the values in earlier ones. In most cases, it's best to ensure that duplicate paths are not passed to `Config.load_files`. ## 3.1.1