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

feat: allow usage in Ruby 3 projects #42

Merged
merged 4 commits into from
Jan 27, 2021
Merged

Conversation

nwise
Copy link
Contributor

@nwise nwise commented Jan 26, 2021

I'm using this in a project that is being upgraded to Ruby 3 and the required_ruby_version is restricting this to only Ruby versions greater than 2.5 but less than 3.0.

Additionally, when testing this update, it seems that FileUtils was not being required and needs to be, so I added a require. It's not clear why this became a problem, and if there is another solution you'd prefer to this, let me know.

@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '~> 2.5'
spec.required_ruby_version = '> 2.5'
Copy link
Owner

Choose a reason for hiding this comment

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

This is a bit overly optimistic, but I'll leave it like that for now.

@raszi raszi merged commit 77603ca into raszi:master Jan 27, 2021
@raszi raszi changed the title Allow usage in Ruby 3 projects feat: allow usage in Ruby 3 projects Jan 27, 2021
@raszi
Copy link
Owner

raszi commented Jan 27, 2021

Thank you @nwise for the pull-request. I released it with v0.6.0

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