aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/commands
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-12-11 13:19:45 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-13 13:02:22 +0900
commitac939d9ca3164a748c656ea7f33c356d7b91b0f9 (patch)
tree867684d65fa0b00cfe3cb117fad59ebe4aaa67a6 /spec/bundler/commands
parent1a7aa5560f1a9967e320f71b7e8e8ee748151168 (diff)
downloadruby-ac939d9ca3164a748c656ea7f33c356d7b91b0f9.tar.gz
[rubygems/rubygems] Improve default gem handling
If a gem is specified in the Gemfile (or resolved as a transitive dependency), it's always resolved from remote/installed sources. Default gems are only used as a fallback for gems not included in the bundle. I believe this leads to more consistent behavior and more portable apps, since all gems will be installed to the configured bundle path, regardless of whether they are default gems or not. https://github.com/rubygems/rubygems/commit/091b4fcf2b
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r--spec/bundler/commands/open_spec.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/bundler/commands/open_spec.rb b/spec/bundler/commands/open_spec.rb
index 97374f30c3..5348580448 100644
--- a/spec/bundler/commands/open_spec.rb
+++ b/spec/bundler/commands/open_spec.rb
@@ -164,7 +164,6 @@ RSpec.describe "bundle open" do
install_gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
- gem "json"
G
end