From 056f2655fd39464c02e15eca45d151535cd1f171 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Wed, 3 Jan 2024 11:36:30 -0600 Subject: [PATCH] gem_helper.rb - fixup to check Minitest version --- src/testup/gem_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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