From afda30774c8165428ca886945889c8747c66e599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 12 Mar 2025 19:26:06 +0100 Subject: [PATCH] [rubygems/rubygems] Reword log message about current platform being missing It reads better this way I think. https://github.com/rubygems/rubygems/commit/ce9743290d --- lib/bundler/definition.rb | 2 +- spec/bundler/commands/install_spec.rb | 2 +- spec/bundler/runtime/setup_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 287037aa2f..9db2ff04a1 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -810,7 +810,7 @@ module Bundler [ [@source_changes, "the list of sources changed"], [@dependency_changes, "the dependencies in your gemfile changed"], - [@current_platform_missing, "your lockfile does not include the current platform"], + [@current_platform_missing, "your lockfile is missing the current platform"], [@new_platforms.any?, "you are adding a new platform to your lockfile"], [@path_changes, "the gemspecs for path gems changed"], [@local_changes, "the gemspecs for git local gems changed"], diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb index b6b4bbcb28..630909d7ce 100644 --- a/spec/bundler/commands/install_spec.rb +++ b/spec/bundler/commands/install_spec.rb @@ -1368,7 +1368,7 @@ RSpec.describe "bundle install with gem sources" do it "adds the current platform to the lockfile" do bundle "install --verbose" - expect(out).to include("re-resolving dependencies because your lockfile does not include the current platform") + expect(out).to include("re-resolving dependencies because your lockfile is missing the current platform") expect(out).not_to include("you are adding a new platform to your lockfile") expect(lockfile).to eq <<~L diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb index fd7b38b05d..200d30302d 100644 --- a/spec/bundler/runtime/setup_spec.rb +++ b/spec/bundler/runtime/setup_spec.rb @@ -1683,7 +1683,7 @@ end RUBY end - expect(err).to include("Your lockfile does not include the current platform, but can't be updated because file system is read-only") + expect(err).to include("Your lockfile is missing the current platform, but can't be updated because file system is read-only") end end end