enviroblyd 0.2 → 0.2.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
2
  SHA256:
3
- metadata.gz: a61c27661f880ff2306805248d6ca4a7eac4f757f337f1380582831b6d85fdce
4
- data.tar.gz: 82bbdd550838e7676a94970079a7086eb7c2906de86384b41686556a67e7985e
3
+ metadata.gz: 8220085dcf938ad62385573bc35fdecd43fc1be67c8c8290809e0e324ffa6b60
4
+ data.tar.gz: b34fa0008ebbd596a608e71fd4899f6ed6265441acd4539d8191e632324f57e6
5
5
  SHA512:
6
- metadata.gz: 43f1691bbbb5a00f2ac39ff1d991cf5330d62d5be49541f46d312bb70b62e5e5536ff05a5c314b7ca8dc42b868fb6db54866ec1ca27a490e5c7b4429cd972bf1
7
- data.tar.gz: 2e4c114de8590593c522b28f5a372fa558f11dbd74fd2a6e9ce32cd9c6d2643d7179ad099082e238a313a1b756571b5fc2f22de97784e02ff988ca4d762f6f95
6
+ metadata.gz: 83c2d244fb58a3f8bc8c94d9325b9fff0f220bcba0df5acadbae99999e0237403a6646a67623fb27eb6891efff98479ba043b8ae23a832673faca852783bea6e
7
+ data.tar.gz: b0bf6a4b127e324f10ff63556ff8b5922355371305d5c19625b17023b4589a07883fef93bb7fcddc49fd48f539923f3b6d06e2e66795852d0af8466321fccff3
@@ -38,7 +38,7 @@ class Enviroblyd::Cli::Main < Enviroblyd::Base
38
38
  end
39
39
 
40
40
  private
41
- def http(url, type: Net::HTTP::Get, headers: {}, retry_interval: 1, retries: 30, backoff: false, success_codes: 200..299, tries: 1)
41
+ def http(url, type: Net::HTTP::Get, headers: {}, retry_interval: 2, retries: 30, backoff: false, success_codes: 200..299, tries: 1)
42
42
  uri = URI(url)
43
43
  http = Net::HTTP.new uri.host, uri.port
44
44
  http.use_ssl = true if uri.scheme == "https"
@@ -53,7 +53,7 @@ class Enviroblyd::Cli::Main < Enviroblyd::Base
53
53
  response =
54
54
  begin
55
55
  http.request(request)
56
- rescue Net::OpenTimeout, Net::ReadTimeout, Errno::EHOSTUNREACH, Errno::EHOSTDOWN
56
+ rescue
57
57
  nil
58
58
  end
59
59
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Enviroblyd
4
- VERSION = "0.2"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enviroblyd
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Starsi