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

Finish GitHub actions transition #987

Merged
merged 18 commits into from
Dec 15, 2021
Merged

Finish GitHub actions transition #987

merged 18 commits into from
Dec 15, 2021

Conversation

pedrofurtado
Copy link
Contributor

Hello, @unixmonkey ! 👋

This PR finishes the Github Actions transition started at #986 🎉

New cops are present in recent rubocops versions (that is needed for Ruby 3 support), but initially them are disabled. Later, it will be possible to "turn on" each one of them and change the source code to be compliant with each rule. But is better to make it gradually 🤝

Let me know your thoughts about it 🕺

Thanks! 🤓

@@ -21,7 +21,7 @@ DESC
'changelog_uri' => 'https://github.com/mileszs/wicked_pdf/blob/master/CHANGELOG.md'
}

spec.required_ruby_version = Gem::Requirement.new('>= 2.2')
spec.required_ruby_version = Gem::Requirement.new('>= 2.6')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason to raise this minimum Ruby version, and by so much? I'd like people on older rubies to still be able to use this gem.

Copy link
Contributor Author

@pedrofurtado pedrofurtado Aug 31, 2021

Choose a reason for hiding this comment

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

We can maintain this old ruby version, if you prefer, no problem 🤝 But CI tests may not guarantee it works well on such older versions of the gem + rails version used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made rollback on this change, returning to ruby 2.2 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

My two cents here, I usually keep CI to run for old versions as long as tests pass.
Once we hit a failure, then we take the decision if it's worth fixing or moving on, deprecating the failing version.

gem 'rdoc'
gem 'sqlite3', '~> 1.4'

gemspec path: '../'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not keeping Rails Edge? 7.0 is just around the corner. I have an app running it already.
Maybe just allow-failures on edge

@unixmonkey unixmonkey merged commit 7991877 into mileszs:master Dec 15, 2021
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

3 participants