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

Support Ruby 2.7 #1243

Merged
merged 1 commit into from Apr 15, 2020
Merged

Support Ruby 2.7 #1243

merged 1 commit into from Apr 15, 2020

Conversation

ybiquitous
Copy link
Contributor

@ybiquitous ybiquitous commented Apr 14, 2020

It has been a few months since Ruby 2.7 was released.
I think it's time we supported Ruby 2.7.

This change adds Ruby 2.7 to our CI workflow (also small refactorings).

In addition, this change fixes also the "Supported Ruby Versions" section in the README,
because this section refers to Travis CI that is no longer used and describes older Ruby versions (<= 2.4) that are not tested.

Note

The gemspec sets required_ruby_version = '>= 2.0.0' and it probably should be fixed together.
But the gemspec change may break existing library users, so I don't it. Please give me more information about this if you have.

spec.required_ruby_version = '>= 2.0.0'

-spec.required_ruby_version = '>= 2.0.0'
+spec.required_ruby_version = '>= 2.4.0'

Updated

This PR merges PR #1206 that has added Ruby 2.7, so this PR actually modifies just the README description.
See also #1243 (comment)

.github/workflows/workflow.yml Outdated Show resolved Hide resolved
.github/workflows/workflow.yml Outdated Show resolved Hide resolved
.github/workflows/workflow.yml Outdated Show resolved Hide resolved
@ybiquitous ybiquitous marked this pull request as ready for review April 14, 2020 12:48
@indigok
Copy link

indigok commented Apr 14, 2020

👋@ybiquitous! Thanks for this update, the improvements look great. Unfortunately, we just merged a previous workflow PR #1206 and it created conflicts with this one. Our apologies for the extra work, but if you can update this PR we'd love to merge your changes as well ✨

It has been a few months since [Ruby 2.7 was released](https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/).
I think it's time we supported Ruby 2.7.

This change adds Ruby 2.7 to our CI workflow (also small refactorings).

In addition, this change fixes also the "Supported Ruby Versions" section in the README,
because this section refers to Travis CI that is no longer used and describes older Ruby versions (<= 2.4) that are not tested.

Note:
The gemspec sets `required_ruby_version = '>= 2.0.0'` and it probably should be fixed together.
But the gemspec change may break existing library users, so I don't it. Please give me more information about this if you have.

https://github.com/octokit/octokit.rb/blob/002cba873b676af014a5de8ab3d8ea65a30c6edd/octokit.gemspec#L19

```diff
-required_ruby_version = '>= 2.0.0'
+required_ruby_version = '>= 2.5.0'
```
bundle install --path=.bundle/gems --without=development --jobs 4 --retry 3
bundle config set path .bundle/gems
bundle config set without development
bundle install --jobs 4 --retry 3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ybiquitous
Copy link
Contributor Author

@hmharvey Thanks for your response. I've fixed the conflicts with PR #1206.

@indigok indigok merged commit ec415d3 into octokit:4-stable Apr 15, 2020
@ybiquitous ybiquitous deleted the ruby-2.7 branch April 16, 2020 03:06
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