From 098295f4e9510a751097a6fc0e76c278ae9a1ff0 Mon Sep 17 00:00:00 2001 From: Ivo Anjo Date: Thu, 4 Feb 2021 11:20:19 +0000 Subject: [PATCH] Avoid built-in old `test-unit` In Ruby <= 2.1, `test-unit` was shipped with Ruby itself (unbundling was done for 2.2 -- see ). The `test-unit` version shipped with 2.1 breaks some of the tests. To fix this, I've added the minimum needed version explicitly to the `gemspec`, as well as added a `gems.rb` for allowing the use of `bundler` to run the tests and ensure the correct `test-unit` is used. --- gems.rb | 3 +++ ruby2_keywords.gemspec | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 gems.rb diff --git a/gems.rb b/gems.rb new file mode 100644 index 0000000..fa75df1 --- /dev/null +++ b/gems.rb @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gemspec diff --git a/ruby2_keywords.gemspec b/ruby2_keywords.gemspec index 8b5030f..0610b4d 100644 --- a/ruby2_keywords.gemspec +++ b/ruby2_keywords.gemspec @@ -19,4 +19,6 @@ Gem::Specification.new do |s| s.files = [ "lib/ruby2_keywords.rb", ] + s.add_development_dependency 'test-unit', '>= 2.2' + s.add_development_dependency 'rake' end