Skip to content

Commit 7ff9a58

Browse files
committed
Merge pull request #2338 from rspec/ruby-version
Set Ruby version.
1 parent 0b61a4b commit 7ff9a58

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ AllCops:
1010
Bundler/DuplicatedGem:
1111
Enabled: false
1212

13+
Gemspec/RequiredRubyVersion:
14+
# Rubocop checks that the target ruby version matches the gemspec version
15+
# but doesnt have a 2.2 option
16+
Enabled: false
17+
1318
Layout/AccessModifierIndentation:
1419
Enabled: false
1520

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Bug Fixes:
77
* Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, #2304)
88
* Allow `have_enqueued_mail` to match when a sub class of `ActionMailer::DeliveryJob`
99
is set using `<Class>.delivery_job=`. (Atsushi Yoshida #2305)
10+
* Add `required_ruby_version` to gem spec. (Marc-André Lafortune, #2319, #2338)
1011

1112
### 4.0.0 / 2020-03-24
1213
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0)

rspec-rails.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
1111
s.homepage = "https://github.com/rspec/rspec-rails"
1212
s.summary = "RSpec for Rails"
1313
s.description = "rspec-rails is a testing framework for Rails 5+."
14+
s.required_ruby_version = ">= 2.2.0"
1415

1516
s.metadata = {
1617
'bug_tracker_uri' => 'https://github.com/rspec/rspec-rails/issues',

0 commit comments

Comments
 (0)