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
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(", ")
|
].select(&:first).map(&:last).join(", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
def pretty_dep(dep, source = false)
|
def pretty_dep(dep)
|
||||||
SharedHelpers.pretty_dependency(dep, source)
|
SharedHelpers.pretty_dependency(dep)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Check if the specs of the given source changed
|
# 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?
|
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
|
end
|
||||||
|
|
||||||
# Invalidate the cached Bundler.definition.
|
# 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."
|
"\nEither installing with `--full-index` or running `bundle update #{spec.name}` should fix the problem."
|
||||||
end
|
end
|
||||||
|
|
||||||
def pretty_dependency(dep, print_source = false)
|
def pretty_dependency(dep)
|
||||||
msg = String.new(dep.name)
|
msg = String.new(dep.name)
|
||||||
msg << " (#{dep.requirement})" unless dep.requirement == Gem::Requirement.default
|
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
|
msg << " " << platform_string if !platform_string.empty? && platform_string != Gem::Platform::RUBY
|
||||||
end
|
end
|
||||||
|
|
||||||
msg << " from the `#{dep.source}` source" if print_source && dep.source
|
|
||||||
msg
|
msg
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue