[rubygems/rubygems] Look in configured path when checking if self-update version is installed
https://github.com/rubygems/rubygems/commit/1ce0882e6f
This commit is contained in:
parent
1befc5d102
commit
5cf07c1e8f
@ -142,6 +142,7 @@ module Bundler
|
|||||||
end
|
end
|
||||||
|
|
||||||
def find_latest_matching_spec(requirement)
|
def find_latest_matching_spec(requirement)
|
||||||
|
Bundler.configure
|
||||||
local_result = find_latest_matching_spec_from_collection(local_specs, requirement)
|
local_result = find_latest_matching_spec_from_collection(local_specs, requirement)
|
||||||
return local_result if local_result && requirement.specific?
|
return local_result if local_result && requirement.specific?
|
||||||
|
|
||||||
|
@ -1685,7 +1685,7 @@ RSpec.describe "bundle update --bundler" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "allows updating to development versions if already installed locally" do
|
it "allows updating to development versions if already installed locally" do
|
||||||
system_gems "bundler-9.0.0.dev"
|
system_gems "bundler-9.9.9"
|
||||||
|
|
||||||
build_repo4 do
|
build_repo4 do
|
||||||
build_gem "myrack", "1.0"
|
build_gem "myrack", "1.0"
|
||||||
@ -1696,6 +1696,7 @@ RSpec.describe "bundle update --bundler" do
|
|||||||
gem "myrack"
|
gem "myrack"
|
||||||
G
|
G
|
||||||
|
|
||||||
|
system_gems "bundler-9.0.0.dev", path: local_gem_path
|
||||||
bundle :update, bundler: "9.0.0.dev", verbose: "true"
|
bundle :update, bundler: "9.0.0.dev", verbose: "true"
|
||||||
|
|
||||||
checksums = checksums_section_when_enabled do |c|
|
checksums = checksums_section_when_enabled do |c|
|
||||||
@ -1722,7 +1723,7 @@ RSpec.describe "bundle update --bundler" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "does not touch the network if not necessary" do
|
it "does not touch the network if not necessary" do
|
||||||
system_gems "bundler-9.9.9", "bundler-9.0.0"
|
system_gems "bundler-9.9.9"
|
||||||
|
|
||||||
build_repo4 do
|
build_repo4 do
|
||||||
build_gem "myrack", "1.0"
|
build_gem "myrack", "1.0"
|
||||||
@ -1732,7 +1733,7 @@ RSpec.describe "bundle update --bundler" do
|
|||||||
source "https://gem.repo4"
|
source "https://gem.repo4"
|
||||||
gem "myrack"
|
gem "myrack"
|
||||||
G
|
G
|
||||||
|
system_gems "bundler-9.0.0", path: local_gem_path
|
||||||
bundle :update, bundler: "9.0.0", verbose: true
|
bundle :update, bundler: "9.0.0", verbose: true
|
||||||
|
|
||||||
expect(out).not_to include("Fetching gem metadata from https://rubygems.org/")
|
expect(out).not_to include("Fetching gem metadata from https://rubygems.org/")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user