Skip to content

Commit 50c1fae

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Fix incorrect error message capitalization
ruby/rubygems@d41b8d303c
1 parent d04f187 commit 50c1fae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/bundler/definition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def lockfile_changes_summary(update_refused_reason)
531531

532532
return unless added.any? || deleted.any? || changed.any? || resolve_needed?
533533

534-
msg = String.new("#{change_reason.capitalize.strip}, but ")
534+
msg = String.new("#{change_reason[0].upcase}#{change_reason[1..-1].strip}, but ")
535535
msg << "the lockfile " unless msg.start_with?("Your lockfile")
536536
msg << "can't be updated because #{update_refused_reason}"
537537
msg << "\n\nYou have added to the Gemfile:\n" << added.join("\n") if added.any?

spec/bundler/commands/update_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@
18521852
system_gems "bundler-9.9.9", path: local_gem_path
18531853

18541854
bundle "update --bundler=9.9.9", env: { "BUNDLE_FROZEN" => "true" }, raise_on_error: false
1855-
expect(err).to include("An update to the version of bundler itself was requested, but the lockfile can't be updated because frozen mode is set")
1855+
expect(err).to include("An update to the version of Bundler itself was requested, but the lockfile can't be updated because frozen mode is set")
18561856
end
18571857
end
18581858

spec/bundler/lock/lockfile_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@
16381638
G
16391639

16401640
expect(err).to eq <<~L.strip
1641-
Your lockfile is missing a checksums entry for \"myrack_middleware\", but can't be updated because frozen mode is set
1641+
Your lockfile is missing a CHECKSUMS entry for \"myrack_middleware\", but can't be updated because frozen mode is set
16421642
16431643
Run `bundle install` elsewhere and add the updated Gemfile.lock to version control.
16441644
L

0 commit comments

Comments
 (0)