diff --git a/src/testup/gem_helper.rb b/src/testup/gem_helper.rb index 79eccfd..a9da396 100644 --- a/src/testup/gem_helper.rb +++ b/src/testup/gem_helper.rb @@ -14,7 +14,7 @@ module GemHelper def self.require(gem_name, filename, version: Gem::Requirement.default) Kernel.require 'rubygems' begin - gem gem_name + gem gem_name, ">=#{version}" rescue Gem::LoadError puts "Installing Gem: #{gem_name} (Please wait...)" begin @@ -24,7 +24,7 @@ def self.require(gem_name, filename, version: Gem::Requirement.default) # a bug. This pattern is probably not that common, to be # programmatically installing gems. end - gem gem_name + gem gem_name, ">=#{version}" end Kernel.require filename end