eac_launcher 0.6.7 → 0.6.8

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
2
  SHA256:
3
- metadata.gz: 65c7ef15311d6d137ce967d907cda418c642fab2b7ac9e6c8874d2ab0ce41564
4
- data.tar.gz: 58ab67b0615108a640f9a6d52e84ef7bfd0d6be9a65e75a2830b2253f9d36f48
3
+ metadata.gz: 8ad0aa8774e1df1d7021fd0378efb380e010d62ef1e512133a804d482661f9dc
4
+ data.tar.gz: e59ccce20cf0e91123a8c50c83273b8190dd7bf1f86ca9d5679a37521c8cb58a
5
5
  SHA512:
6
- metadata.gz: 463c38cb4c628bd84aba499d4caf5e545178cdad2246492fa7e33dacc582de89c4cd2dec4de8bf604a2b21c2b748f52935df6c1191682a0746cd06a115069ce1
7
- data.tar.gz: 37fff487242d5dd1a102f14e094d916e188f77ee239ba6e1afffce2236ca816a48f791f7675f48c9915bc25b5c61df9a32a5d4486748094720c7d39e3e194ddc
6
+ metadata.gz: 78962bf298d9f2ee7f0dbff6685996a7041d339237b2c39355bf5ebd90e98437a70b171f8b81e5b639b1e5b698606c5a771d0af6cf2480636af2734d3e61e740
7
+ data.tar.gz: 371cd735e19e5aa369a5666dbf064e20cf0837b9cfab14e542612f60aececd280654406904b2cdb0151251654c88c6984643a94b3892cd0fba16ba0dd9eb0c7b
@@ -13,7 +13,7 @@ module EacLauncher
13
13
  CHECKERS = %w[remote_url remote_fetch publish_remote_no_exist remote_equal remote_following
14
14
  local_following].freeze
15
15
 
16
- REMOTE_UNAVAILABLE_MESSAGES = ['could not resolve hostname', 'connection timed out',
16
+ REMOTE_UNAVAILABLE_MESSAGES = ['could not resolve host', 'connection timed out',
17
17
  'no route to host'].map(&:downcase).freeze
18
18
 
19
19
  protected
@@ -24,6 +24,10 @@ module EacLauncher
24
24
  return result if result
25
25
  end
26
26
  divergent_result_check_result
27
+ rescue ::StandardError => e
28
+ raise e unless remote_unavailable_error?(e)
29
+
30
+ ::EacLauncher::Publish::CheckResult.blocked(e.message)
27
31
  end
28
32
 
29
33
  private
@@ -38,10 +42,6 @@ module EacLauncher
38
42
  def remote_fetch_check_result
39
43
  remote_fetch
40
44
  nil
41
- rescue ::StandardError => e
42
- raise e unless remote_unavailable_error?(e)
43
-
44
- ::EacLauncher::Publish::CheckResult.blocked(e.message)
45
45
  end
46
46
 
47
47
  def remote_unavailable_error?(error)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacLauncher
4
- VERSION = '0.6.7'
4
+ VERSION = '0.6.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-28 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport