mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove unused parameter to SharedHelpers.pretty_dependency
https://github.com/rubygems/rubygems/commit/665051d085
This commit is contained in:
parent
4205190cb2
commit
da1981fca4
Notes:
git
2022-10-18 07:33:45 +00:00
3 changed files with 4 additions and 5 deletions
|
@ -578,8 +578,8 @@ module Bundler
|
|||
].select(&:first).map(&:last).join(", ")
|
||||
end
|
||||
|
||||
def pretty_dep(dep, source = false)
|
||||
SharedHelpers.pretty_dependency(dep, source)
|
||||
def pretty_dep(dep)
|
||||
SharedHelpers.pretty_dependency(dep)
|
||||
end
|
||||
|
||||
# Check if the specs of the given source changed
|
||||
|
|
|
@ -70,7 +70,7 @@ module Bundler
|
|||
|
||||
show_warning("No gems were removed from the gemfile.") if deps.empty?
|
||||
|
||||
deps.each {|dep| Bundler.ui.confirm "#{SharedHelpers.pretty_dependency(dep, false)} was removed." }
|
||||
deps.each {|dep| Bundler.ui.confirm "#{SharedHelpers.pretty_dependency(dep)} was removed." }
|
||||
end
|
||||
|
||||
# Invalidate the cached Bundler.definition.
|
||||
|
|
|
@ -163,7 +163,7 @@ module Bundler
|
|||
"\nEither installing with `--full-index` or running `bundle update #{spec.name}` should fix the problem."
|
||||
end
|
||||
|
||||
def pretty_dependency(dep, print_source = false)
|
||||
def pretty_dependency(dep)
|
||||
msg = String.new(dep.name)
|
||||
msg << " (#{dep.requirement})" unless dep.requirement == Gem::Requirement.default
|
||||
|
||||
|
@ -172,7 +172,6 @@ module Bundler
|
|||
msg << " " << platform_string if !platform_string.empty? && platform_string != Gem::Platform::RUBY
|
||||
end
|
||||
|
||||
msg << " from the `#{dep.source}` source" if print_source && dep.source
|
||||
msg
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue