deploygate 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 8cd91c1e3ea9e8f1bb159e257e3bc6f3eeb557b89c654caabb8aea817d1470e7
4
- data.tar.gz: afc969266c279b32687df44fa78265ca843bb210b9e457195296abdc0c489d0e
2
+ SHA1:
3
+ metadata.gz: 152c8d51b8026027e006abf851587d585ea1e9db
4
+ data.tar.gz: a2ecbe04a60241e3bace5f4a71ca21cb2b720d68
5
5
  SHA512:
6
- metadata.gz: bf82535795d7295dfdc325ca359b950ce599453e6927a02c02430a5a95d45fdeddd3ac4d67ab0626b1fc9f8e71e4bfbfdd1050b2b99bc75f301aed0a6f029859
7
- data.tar.gz: c0e6d977d35e49acd25e4ee4cec35c6925535e4968964f172a0bff1bc7974b27fc834690a3d9dbd7ed0b6748ee8a95d75d64a9e2189c43369e9efc7625695645
6
+ metadata.gz: d3753c438e061fe68140654852dc2dab3de06e69647f5b4771f6159fd448232c6735b36520f6334f38a21b0cfb62ef8d711173f906d896a5165afe6cc5a8c23f
7
+ data.tar.gz: 0275cdfea85a1c763406aaf0650c37e30e01c3d1311037f52fa297896b7d248842bf41c1de26dd413118c78237c8a075951fd2f904b6d990474a6f1589d6a587
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  en:
3
+ errors:
4
+ check_update_failure: 'Checking update failed'
3
5
  command_builder:
4
6
  name: 'dg'
5
7
  description: 'Control DeployGate from your terminal.'
@@ -1,3 +1,4 @@
1
+ require "resolv-replace"
1
2
  require "commander"
2
3
  require "json"
3
4
  require "httpclient"
@@ -45,7 +45,11 @@ module DeployGate
45
45
  private
46
46
 
47
47
  def client
48
- HTTPClient.new(:agent_name => "dg/#{DeployGate::VERSION}")
48
+ timeout = 60 * 5 # 5 minutes
49
+ HTTPClient.new(agent_name: "dg/#{DeployGate::VERSION}").tap do |c|
50
+ c.receive_timeout = timeout
51
+ c.send_timeout = timeout
52
+ end
49
53
  end
50
54
 
51
55
  def headers
@@ -203,6 +203,8 @@ EOF
203
203
  else
204
204
  request_gem_update_checker
205
205
  end
206
+ rescue => e
207
+ STDERR.puts I18n.t('errors.check_update_failure')
206
208
  end
207
209
 
208
210
  # @return [void]
@@ -1,3 +1,3 @@
1
1
  module DeployGate
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploygate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - deploygate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2020-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -424,7 +424,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
424
424
  - !ruby/object:Gem::Version
425
425
  version: '0'
426
426
  requirements: []
427
- rubygems_version: 3.0.8
427
+ rubyforge_project:
428
+ rubygems_version: 2.6.14.3
428
429
  signing_key:
429
430
  specification_version: 4
430
431
  summary: A command-line interface for DeployGate