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

Commit

Permalink
Make hack a bit clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 23, 2019
1 parent 24424cd commit b3bf10f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/bundler/rubygems_integration.rb
Expand Up @@ -317,6 +317,10 @@ def stubs_provide_full_functionality?
provides?(">= 2.5.2")
end

def has_bundler_version_finder?
provides?(">= 2.7.0")
end

def replace_gem(specs, specs_by_name)
reverse_rubygems_kernel_mixin

Expand Down
4 changes: 3 additions & 1 deletion lib/bundler/version.rb
@@ -1,7 +1,9 @@
# frozen_string_literal: false

require_relative "rubygems_integration"

module Bundler
if Gem::Requirement.new(">= 2.7.0").satisfied_by?(Gem::Version.create(Gem::VERSION))
if Bundler.rubygems.has_bundler_version_finder?
VERSION = "2.1.0.pre.1".freeze
else
# We're doing this because we might write tests that deal
Expand Down

0 comments on commit b3bf10f

Please sign in to comment.