diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-06-07 11:32:51 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-06-20 15:22:13 +0900 |
| commit | 0610302a8fc2e2cab401e0afde36dcaffd841cd7 (patch) | |
| tree | 273b51fe148a578e81a37c73a5434848c5c7c5cb /lib | |
| parent | 758e01d39da4b84a9950ad1301af98010e27fbee (diff) | |
[rubygems/rubygems] Don't validate local gemspec twice
Calling `remote!` or `cached!` on the source was expiring local specs
for now reason. It's unnecessary to override these methods for path
sources since they only deal with local specifications.
https://github.com/rubygems/rubygems/commit/aa93b196a2
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundler/source/git.rb | 10 | ||||
| -rw-r--r-- | lib/bundler/source/path.rb | 13 |
2 files changed, 10 insertions, 13 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb index 198e335bb6..1eda282e75 100644 --- a/lib/bundler/source/git.rb +++ b/lib/bundler/source/git.rb @@ -32,6 +32,16 @@ module Bundler @local = false end + def remote! + @local_specs = nil + @allow_remote = true + end + + def cached! + @local_specs = nil + @allow_cached = true + end + def self.from_lock(options) new(options.merge("uri" => options.delete("remote"))) end diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 978b0b2c9f..754eaa39c4 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -18,9 +18,6 @@ module Bundler @options = options.dup @glob = options["glob"] || DEFAULT_GLOB - @allow_cached = false - @allow_remote = false - @root_path = options["root_path"] || root if options["path"] @@ -41,16 +38,6 @@ module Bundler @original_path = @path end - def remote! - @local_specs = nil - @allow_remote = true - end - - def cached! - @local_specs = nil - @allow_cached = true - end - def self.from_lock(options) new(options.merge("path" => options.delete("remote"))) end |
