Skip to content

Commit

Permalink
Reduce key skipping log level
Browse files Browse the repository at this point in the history
This needn't be a warn.
  • Loading branch information
hlascelles committed Sep 10, 2024
1 parent 470a1d7 commit 2103ee5
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.6.2 (2024-09-10)

- Reduce override log level to info [#160](https://github.com/hlascelles/figjam/pull/160)

## 1.6.1 (2024-04-28)

- Add ruby 3.3 tests [#117](https://github.com/hlascelles/figjam/pull/117)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
figjam (1.6.1)
figjam (1.6.2)
thor (>= 0.14.0, < 2)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/psych_4.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
figjam (1.6.1)
figjam (1.6.2)
thor (>= 0.14.0, < 2)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/psych_5.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
figjam (1.6.1)
figjam (1.6.2)
thor (>= 0.14.0, < 2)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
figjam (1.6.1)
figjam (1.6.2)
thor (>= 0.14.0, < 2)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
figjam (1.6.1)
figjam (1.6.2)
thor (>= 0.14.0, < 2)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
figjam (1.6.1)
figjam (1.6.2)
thor (>= 0.14.0, < 2)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/figjam/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def each(&block)
end

private def key_skipped(key)
warn "WARNING: Skipping key #{key.inspect}. Already set in ENV."
puts "INFO: Skipping key #{key.inspect}. Already set in ENV."
end
end
end
2 changes: 1 addition & 1 deletion lib/figjam/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Figjam
VERSION = "1.6.1".freeze
VERSION = "1.6.2".freeze
end
3 changes: 2 additions & 1 deletion spec/figjam/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def yaml_to_path(yaml)
it "skips keys (and warns) that have already been set externally" do
::ENV["foo"] = "baz"

expect(application).to receive(:warn)
expect(application)
.to receive(:puts).with('INFO: Skipping key "foo". Already set in ENV.')

expect {
application.load
Expand Down
2 changes: 0 additions & 2 deletions spec/figjam/env_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
end
end

# rubocop:disable RSpec/RepeatedSubjectCall
context "with bang methods" do
it "makes ENV values accessible as lowercase methods" do
expect(env.hello!).to eq("world")
Expand Down Expand Up @@ -108,7 +107,6 @@
expect { env.goodbye = "world" }.to raise_error(NoMethodError)
end
end
# rubocop:enable RSpec/RepeatedSubjectCall
end

describe "#respond_to?" do
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

Bundler.require(:test)

Dir[File.expand_path("support/*.rb", __dir__)].sort.each { |f| require f }
Dir[File.expand_path("support/*.rb", __dir__)].each { |f| require f }

0 comments on commit 2103ee5

Please sign in to comment.