-
Notifications
You must be signed in to change notification settings - Fork 9
Support Ruby3 #321
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
Changes from all commits
934461d
135dc08
7355660
6389726
3e7a7c1
d1b77f7
065c735
6ba8252
e9a4ed5
6b2da9c
08ce9c6
222156f
f1a117b
bc81efa
d26ac25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| #!/usr/bin/env ruby | ||
|
|
||
| require 'rubygems' | ||
| require 'bundler/setup' | ||
|
|
||
| $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) | ||
|
|
||
| require "deploygate" | ||
|
|
||
| DeployGate::CommandBuilder.new().run | ||
| DeployGate::CommandBuilder.new.run |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,8 @@ dg installed! To get started fast: | |
|
|
||
| POST_INSTALL_MESSAGE | ||
|
|
||
| spec.required_ruby_version = '>= 2.6' | ||
|
|
||
| spec.add_runtime_dependency 'json', '~> 2.0' | ||
| spec.add_runtime_dependency 'httpclient', '~> 2.8' | ||
| spec.add_runtime_dependency 'commander', '~> 4.4' | ||
|
|
@@ -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' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| spec.add_runtime_dependency 'activesupport', '~> 6.1' | ||
| spec.add_runtime_dependency 'launchy', '~> 2.4' | ||
| spec.add_runtime_dependency 'locale', '~> 2.1' | ||
| spec.add_runtime_dependency 'net-ping', '~> 2.0' | ||
| spec.add_runtime_dependency 'socket.io-client-simple', '~> 1.2' | ||
| spec.add_runtime_dependency 'workers', '~> 0.6' | ||
| spec.add_runtime_dependency 'sentry-ruby', '~> 5.8' | ||
| # Webrick has been removed from bundled gems since Ruby 3 | ||
| spec.add_runtime_dependency 'webrick', '~> 1.8' | ||
|
|
||
| # ios build | ||
| spec.add_runtime_dependency 'fastlane', '~> 2.212.1' | ||
|
|
@@ -44,7 +47,7 @@ POST_INSTALL_MESSAGE | |
| spec.add_development_dependency 'rake', '~> 12.0' | ||
| spec.add_development_dependency 'rspec', '~> 3.5' | ||
| spec.add_development_dependency 'webmock', '~> 2.3' | ||
| spec.add_development_dependency 'i18n-tasks', '~> 0.9' | ||
| spec.add_development_dependency 'i18n-tasks', '~> 1.0' | ||
|
|
||
| spec.files = `git ls-files`.split($/) | ||
| spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. active support has moved Numeric extension like |
||
| require "locale" | ||
| require "tempfile" | ||
| require "open3" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,7 @@ def headers | |
| extheaders = BASE_HEADERS.dup | ||
|
|
||
| unless @token.nil? | ||
| extheaders.push(['AUTHORIZATION', @token]) | ||
| extheaders.push(['AUTHORIZATION', "token #{@token}"]) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The token header prefix is preferred. |
||
| end | ||
|
|
||
| extheaders | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,6 @@ module DeployGate | |
| module Commands | ||
| module Deploy | ||
| class Push | ||
| BASE_URL = 'https://deploygate.com' | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unused. |
||
| COMMAND = 'push' | ||
|
|
||
| class << self | ||
|
|
||
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.
👍