Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Ruby 2.3 #33

Merged
merged 2 commits into from
Nov 3, 2020
Merged

Conversation

koic
Copy link
Member

@koic koic commented Nov 3, 2020

This PR drops support for Ruby 2.3 and suppresses the following Gemspec/RequiredRubyVersion offense.

% cd path/to/rubocop-rake
% bundle exec rake
(snip)

Offenses:

rubocop-rake.gemspec:14:32: C: Gemspec/RequiredRubyVersion:
required_ruby_version (2.3, declared in rubocop-rake.gemspec) and
TargetRubyVersion (2.4, which may be specified in .rubocop.yml) should
be equal.
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

25 files inspected, 1 offense detected

And this PR fixes the following RSpec/FactoryBot/CreateList error.

% cd path/to/rubocop-rake
 bundle exec rake
(snip)

An error occurred while RSpec/FactoryBot/CreateList cop was inspecting
/Users/koic/src/github.com/rubocop-hq/rubocop-rake/spec/spec_helper.rb:15:15.
To see the complete backtrace run rubocop -d.

This commit drops support for Ruby 2.3 and suppresses the following
`Gemspec/RequiredRubyVersion` offense.

```console
% cd path/to/rubocop-rake
% bundle exec rake
(snip)

Offenses:

rubocop-rake.gemspec:14:32: C: Gemspec/RequiredRubyVersion:
required_ruby_version (2.3, declared in rubocop-rake.gemspec) and
TargetRubyVersion (2.4, which may be specified in .rubocop.yml) should
be equal.
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

25 files inspected, 1 offense detected
```
This commit fixes the following `RSpec/FactoryBot/CreateList` error.

```console
% cd path/to/rubocop-rake
% bundle exec rake
(snip)

An error occurred while RSpec/FactoryBot/CreateList cop was inspecting
/Users/koic/src/github.com/rubocop-hq/rubocop-rake/spec/spec_helper.rb:15:15.
To see the complete backtrace run rubocop -d.
```
@koic koic merged commit f4d49f0 into rubocop:master Nov 3, 2020
@koic koic deleted the drop_support_ruby_23 branch November 3, 2020 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants