summaryrefslogtreecommitdiff
path: root/lib/bundler/shared_helpers.rb
diff options
context:
space:
mode:
authorAgrim Mittal <agrimmittal97@gmail.com>2018-06-15 13:02:00 +0530
committerAgrim Mittal <agrimmittal97@gmail.com>2018-06-28 15:35:17 +0530
commit40c2c83ccd367044b63aad2ef6fb3de2044a9d52 (patch)
treed3bcc4b0f132233602754ebe0c8fcdb7eefe3e03 /lib/bundler/shared_helpers.rb
parentaebcec1efda24cad20024f5d6fb4d961b0715582 (diff)
downloadbundler-40c2c83ccd367044b63aad2ef6fb3de2044a9d52.tar.gz
Remove necessary comments and update docs
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
-rw-r--r--lib/bundler/shared_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index 6072b6f514..326ffa466b 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -195,9 +195,9 @@ 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, print_requirements = false)
+ def pretty_dependency(dep, print_source = false)
msg = String.new(dep.name)
- msg << " (#{dep.requirement})" if dep.requirement != Gem::Requirement.default || print_requirements
+ msg << " (#{dep.requirement})" unless dep.requirement == Gem::Requirement.default
if dep.is_a?(Bundler::Dependency)
platform_string = dep.platforms.join(", ")