-
Notifications
You must be signed in to change notification settings - Fork 9
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 Ruby3 #321
Support Ruby3 #321
Conversation
It's a shame that we haven't supported Ruby 3.x. This patch prevent users to be confused due to runtime ruby version.
@@ -12,6 +12,7 @@ | |||
require "gem_update_checker" | |||
require "active_support/core_ext/time" | |||
require "active_support/core_ext/hash" | |||
require "active_support/core_ext/integer/time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
active support has moved Numeric extension like 1.days
from core_ext/time
to here.
@@ -60,7 +60,7 @@ def headers | |||
extheaders = BASE_HEADERS.dup | |||
|
|||
unless @token.nil? | |||
extheaders.push(['AUTHORIZATION', @token]) | |||
extheaders.push(['AUTHORIZATION', "token #{@token}"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The token header prefix is preferred.
@@ -2,7 +2,6 @@ module DeployGate | |||
module Commands | |||
module Deploy | |||
class Push | |||
BASE_URL = 'https://deploygate.com' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -28,14 +30,15 @@ POST_INSTALL_MESSAGE | |||
spec.add_runtime_dependency 'highline', '~> 2.0' | |||
spec.add_runtime_dependency 'uuid', '~> 2.3' | |||
spec.add_runtime_dependency 'gem_update_checker', '~> 0.2' | |||
spec.add_runtime_dependency 'activesupport', '~> 4.2' | |||
spec.add_runtime_dependency 'i18n', '~> 0.7' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand to delete this line because i18n gem was bundled with after Rails3.
Thanks~ |
The motivation is really clear. For Ruby3 support, this PR upgrade ActiveSupport and adds
webrick
to dependencies cuz Ruby 3 has droppedwebrick
from bundled gems.