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

Fix RuboCop builds #902

Closed
wants to merge 2 commits into from
Closed

Fix RuboCop builds #902

wants to merge 2 commits into from

Conversation

pirj
Copy link
Member

@pirj pirj commented Apr 27, 2020

Bump TargetRubyVersion to 2.4 as latest RuboCop version, 0.82, dropped support for 2.3 in TargetRubyVersion.

RuboCop has updated its lowest supported Ruby version syntax to 2.4 in version 0.82, and our builds pick the most recent release on CI, and this was failing all RuboCop checks.

Gemspec/RequiredRubyVersion: required_ruby_version (2.3, declared in rubocop-rspec.gemspec) and TargetRubyVersion (2.4, which may be specified in .rubocop.yml) should be equal.

No, it shouldn't be equal. We're an extension that has support for earlier RuboCop versions and thus earlier Ruby versions.

Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • [-] Added tests.
  • [-] Updated documentation.
  • [-] Added an entry to the changelog if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

RuboCop has updated its lowest supported Ruby version syntax to 2.4 in
version 0.82, and our builds pick the most recent release on CI, and
this was failing all RuboCop checks.
    Gemspec/RequiredRubyVersion: required_ruby_version (2.3, declared in rubocop-rspec.gemspec) and TargetRubyVersion (2.4, which may be specified in .rubocop.yml) should be equal.

No, it shouldn't be equal.
We're an extension that has support for earlier RuboCop versions and
thus earlier Ruby versions.
@pirj pirj self-assigned this Apr 27, 2020
@pirj pirj requested review from bquorning and Darhazer April 27, 2020 20:35
@bquorning
Copy link
Collaborator

bquorning commented Apr 27, 2020

Great minds think alike: I opened #901 just 15 minutes ago :-)

@pirj
Copy link
Member Author

pirj commented Apr 27, 2020

I was triggered by a failure in #899 XD and tried to ignore red edge-rubocop to the last moment.

@pirj
Copy link
Member Author

pirj commented Apr 27, 2020

Closing in favour of #901

@pirj pirj closed this Apr 27, 2020
@pirj pirj deleted the fix-target-ruby-version branch April 27, 2020 20:44
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.

None yet

2 participants