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

Revert rubocop TargetRubyVersion back to 1.9 #634

Merged
merged 1 commit into from
Jan 17, 2020

Conversation

alexjfisher
Copy link
Member

Puppet Server 5 isn't fully EOL until Nov 2020. By default it uses
jruby 1.7 which is only Ruby 1.9 compatible. Targetting ruby 2.1
already broke one module. See voxpupuli/puppet-firewalld#250

Alternatively, we could tweak the various cops to try to remain
compatible. But why? This doesn't provide value over just setting
TargetRubyVersion to what we need it to be.

When puppet 5 goes EOL, we can bump this back up and move to a newer
version of rubocop too. Until then, I don't think we're really missing
out all that much.

@alexjfisher alexjfisher requested a review from ekohl January 17, 2020 15:17
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes absolute sense to me.

Copy link
Contributor

@llowder llowder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solves the problem, and creates minimal future rework.

Puppet Server 5 isn't fully EOL until Nov 2020.  By default it uses
jruby 1.7 which is only Ruby 1.9 compatible.  Targetting ruby 2.1
already broke one module.  See voxpupuli/puppet-firewalld#250

Alternatively, we could tweak the various cops to try to remain
compatible.  But why?  This doesn't provide value over just setting
`TargetRubyVersion` to what we need it to be.

When puppet 5 goes EOL, we can bump this back up and move to a newer
version of rubocop too. Until then, I don't think we're really missing
out all that much.
@alexjfisher alexjfisher force-pushed the rubocop_target_version branch from 751e028 to a13015c Compare January 17, 2020 15:47
@alexjfisher
Copy link
Member Author

Updated with comment as suggested by @baurmatt on slack.

@dhollinger dhollinger merged commit e6a2c6a into voxpupuli:master Jan 17, 2020
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.

6 participants