Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Rename for clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 24, 2019
1 parent 82fa6d9 commit 535c4fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bundler/lockfile_parser.rb
Expand Up @@ -102,9 +102,9 @@ def warn_for_outdated_bundler_version
prerelease_text = bundler_version.prerelease? ? " --pre" : ""
current_version = Gem::Version.create(Bundler::VERSION)
current_major_version = current_version.segments.first
major_bundler_version = bundler_version.segments.first
if current_major_version < major_bundler_version && current_major_version > 2
raise LockfileError, "You must use Bundler #{major_bundler_version} or greater with this lockfile."
current_locked_version = bundler_version.segments.first
if current_major_version < current_locked_version && current_major_version > 2
raise LockfileError, "You must use Bundler #{current_locked_version} or greater with this lockfile."
end
return unless current_version < bundler_version
Bundler.ui.warn "Warning: the running version of Bundler (#{current_version}) is older " \
Expand Down

0 comments on commit 535c4fe

Please sign in to comment.