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

Change Ruby Target to 2.3 #37

Closed
wants to merge 2 commits into from
Closed

Change Ruby Target to 2.3 #37

wants to merge 2 commits into from

Conversation

martinisoft
Copy link
Contributor

This is what ships in ChefDK 1.x, Chef Client 12.x, and 13.0

It can be moved up again to 2.4 once all stable chef products move up to 2.4

Part of the motivation here is to use some new Ruby style features, specifically a new heredoc syntax in 2.3 which uses a tilde to denote automatic whitespace trimming.

One of the cops that becomes enabled by this target change is Style/FrozenStringLiteralComment which can be disabled for the time being I think.

This is what ships in ChefDK 1.x, Chef Client 12.x, and 13.0

It can be moved up again to 2.4 once all stable chef products move up to
2.4

Signed-off-by: Aaron Kalin <akalin@martinisoftware.com>
It can be pretty noisy right off the bat and a design goal for later

Signed-off-by: Aaron Kalin <akalin@martinisoftware.com>
@martinisoft
Copy link
Contributor Author

I added a new commit to also disable the style cop that gets enabled with this new target.

@tas50
Copy link
Contributor

tas50 commented Jun 21, 2017

We still can't bump this until all Chef 12 is EoL. Chef 12 on windows shipped with 2.0 and *nix had 2.1 until pretty recently. This would break all those users. It's very much on our mind though and something we'll do with the release of ChefDK 3.0/ Chef 14

@tas50 tas50 closed this Jun 21, 2017
@lamont-granquist
Copy link
Contributor

see #19 (comment)

this can only be accepted when chef < 12.14.x support is dropped from community cookbooks.

@martinisoft martinisoft deleted the martinisoft/upgrade_ruby_target branch June 21, 2017 22:53
@martinisoft
Copy link
Contributor Author

I'm gonna bring this back up again for inclusion since we're nearing ChefDK 3 which is Chef13+

I can re-submit an updated PR again if you like

@tas50
Copy link
Contributor

tas50 commented Mar 19, 2018

It would be great to do this at this point. I was planning to get a rubocop bump into cookstyle as well and then release the new major version in the next DK

@thommay
Copy link
Contributor

thommay commented Mar 19, 2018

Yep, now's the time! 👍

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

4 participants