diff options
| author | Daniel Niknam <mhmd.niknam@gmail.com> | 2021-07-25 14:16:11 +1000 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-07-27 09:25:57 +0900 |
| commit | bd8daa8523ef13e49cf91110fad14a2aff36cb57 (patch) | |
| tree | be099483a74bbf1f2181156da173981b452eaf1c /lib | |
| parent | 49176e8c8cc9a0f68810736663dc9c9a3cb3b774 (diff) | |
[rubygems/rubygems] Remove the warning for not defining a gem server source
Bundler has deprecated gemfiles without a global source and this feature
is now obsolete. `Bundler::Definition#has_rubygems_remotes?` is removed
because it's not used anymore.
https://github.com/rubygems/rubygems/commit/d29dd2cb7b
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundler/cli/install.rb | 9 | ||||
| -rw-r--r-- | lib/bundler/definition.rb | 4 |
2 files changed, 1 insertions, 12 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index c86d8d31e3..e4f59e4437 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -83,18 +83,11 @@ module Bundler end Bundler::CLI::Common.output_fund_metadata_summary - rescue GemNotFound, VersionConflict => e + rescue GemNotFound => e if options[:local] && Bundler.app_cache.exist? Bundler.ui.warn "Some gems seem to be missing from your #{Bundler.settings.app_cache_path} directory." end - unless Bundler.definition.has_rubygems_remotes? - Bundler.ui.warn <<-WARN, :wrap => true - Your Gemfile has no gem server sources. If you need gems that are \ - not already on your machine, add a line like this to your Gemfile: - source 'https://rubygems.org' - WARN - end raise e rescue Gem::InvalidSpecificationException => e Bundler.ui.warn "You have one or more invalid gemspecs that need to be fixed." diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index b585b06df1..81cd94eb5f 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -279,10 +279,6 @@ module Bundler end end - def has_rubygems_remotes? - sources.rubygems_sources.any? {|s| s.remotes.any? } - end - def spec_git_paths sources.git_sources.map {|s| File.realpath(s.path) if File.exist?(s.path) }.compact end |
