diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5a9f0c..1f78c96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: chmod 0600 $HOME/.gem/credentials printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials env: - RUBYGEMS_API_KEY: ${{secrets.KRYSTAL_RUBYGEMS_API_KEY}} + RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} - name: Publish to RubyGems run: | gem push *.gem diff --git a/deploy-agent.gemspec b/deploy-agent.gemspec index e0d78b0..600c571 100644 --- a/deploy-agent.gemspec +++ b/deploy-agent.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'deploy-agent' - s.version = '1.2.6' + s.version = '1.2.7' s.required_ruby_version = '>= 2.7' s.summary = 'The DeployHQ Agent' s.description = 'This gem allows you to configure a secure proxy through which DeployHQ can forward connections' @@ -15,7 +15,7 @@ Gem::Specification.new do |s| s.bindir = 'bin' s.executables << 'deploy-agent' - s.add_runtime_dependency 'nio4r', '2.1.0' - s.add_runtime_dependency 'rb-readline', '0.5.5' - s.add_runtime_dependency 'timers', '4.1.2' + s.add_dependency 'nio4r', '2.1.0' + s.add_dependency 'rb-readline', '0.5.5' + s.add_dependency 'timers', '4.1.2' end diff --git a/lib/deploy_agent/cli.rb b/lib/deploy_agent/cli.rb index 49e1f75..c55db06 100644 --- a/lib/deploy_agent/cli.rb +++ b/lib/deploy_agent/cli.rb @@ -123,7 +123,7 @@ def pid_from_file def write_pid File.open(PID_PATH, 'w') { |f| f.write Process.pid.to_s } - at_exit { File.delete(PID_PATH) if File.exists?(PID_PATH) } + at_exit { File.delete(PID_PATH) if File.exist?(PID_PATH) } end end