From 7ff9a5846fd6a40ef4dec720b6a9a86fa606ddcd Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Sat, 16 May 2020 19:24:24 +0100 Subject: [PATCH] Merge pull request #2338 from rspec/ruby-version Set Ruby version. --- .rubocop.yml | 5 +++++ Changelog.md | 1 + rspec-rails.gemspec | 1 + 3 files changed, 7 insertions(+) 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 358197c29c..95178d33d0 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',