diff --git a/.rubocop.yml b/.rubocop.yml index ef904792c4..af0e19fb11 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,6 +10,11 @@ AllCops: Bundler/DuplicatedGem: Enabled: false +Gemspec/RequiredRubyVersion: + # Rubocop checks that the target ruby version matches the gemspec version + # but doesnt have a 2.2 option + Enabled: false + Layout/AccessModifierIndentation: Enabled: false diff --git a/Changelog.md b/Changelog.md index 8f8cd1ac64..22168bf569 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,7 @@ Bug Fixes: * Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, #2304) * Allow `have_enqueued_mail` to match when a sub class of `ActionMailer::DeliveryJob` is set using `.delivery_job=`. (Atsushi Yoshida #2305) +* Add `required_ruby_version` to gem spec. (Marc-André Lafortune, #2319, #2338) ### 4.0.0 / 2020-03-24 [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0) diff --git a/rspec-rails.gemspec b/rspec-rails.gemspec index 9b84f4809d..f23b732435 100644 --- a/rspec-rails.gemspec +++ b/rspec-rails.gemspec @@ -11,6 +11,7 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/rspec/rspec-rails" s.summary = "RSpec for Rails" s.description = "rspec-rails is a testing framework for Rails 5+." + s.required_ruby_version = ">= 2.2.0" s.metadata = { 'bug_tracker_uri' => 'https://github.com/rspec/rspec-rails/issues',