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 Ruby3 #321

Merged
merged 15 commits into from
May 14, 2024
Merged

Support Ruby3 #321

merged 15 commits into from
May 14, 2024

Conversation

jmatsu
Copy link
Contributor

@jmatsu jmatsu commented May 9, 2024

The motivation is really clear. For Ruby3 support, this PR upgrade ActiveSupport and adds webrick to dependencies cuz Ruby 3 has dropped webrick from bundled gems.

@@ -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"
Copy link
Contributor Author

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}"])
Copy link
Contributor Author

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'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused.

@jmatsu jmatsu marked this pull request as ready for review May 13, 2024 01:46
@jmatsu jmatsu requested review from a team and satsukies and removed request for a team May 13, 2024 01:46
Copy link
Member

@satsukies satsukies left a 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
Copy link
Member

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'
Copy link
Member

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.

@jmatsu
Copy link
Contributor Author

jmatsu commented May 14, 2024

Thanks~

@jmatsu jmatsu merged commit 422274b into master May 14, 2024
13 checks passed
@jmatsu jmatsu deleted the jmatsu/feat/support_ruby3 branch May 14, 2024 02:46
@jmatsu jmatsu mentioned this pull request May 14, 2024
@jmatsu jmatsu self-assigned this May 14, 2024
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