watchmonkey_cli 1.8.3 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a1e9e2762af49578548f6c9676080524e3d8e522bba82c5716949e4b59bca00
4
- data.tar.gz: a238a933774a9e7fc18e0b134a1cfbaa8f9b72f534953733d947d611b2c3c43a
3
+ metadata.gz: 185d016ac259cbfe17cdc82fe47bdea64ad3e7287868a1579b0ca5e5ad3af8ca
4
+ data.tar.gz: ea6d44b3f5333e9f28453cde81879a97ba97bba9007ec2c1541c8671821be84f
5
5
  SHA512:
6
- metadata.gz: 961c74daa2c9eb267c448a1d35138549ca49d5f19cf319d7435794311725d001898c3e674801113933dc1d656495b182fd5dc599296c11111cff0073936a1b47
7
- data.tar.gz: 95b68b1e4d7204ed7c96cfaff8f8e363e4ba63689094a260f2a1e40478466575c419d68703085bedb629f8567ef6212e1d76eeff5de4a016b49532d3f957ac82
6
+ metadata.gz: cabbd80f4367b823ad48ae22a3f5cb9c510a67e3b23e42f6c573d08c31b8bec9fbca5262774b82c1e77e039593f38a78e9ba69d6c85be754f8cd066b71b637f4
7
+ data.tar.gz: '09066c489cf198270f64e6ff08dbfbd12856323dcc89147293c3fce5db6872b0e6f679165ea97b14c2f2a0725f42965cf5f84dc38e8278292091996a069f9404'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.3
1
+ 1.8.4
@@ -42,6 +42,7 @@ ssl_expiration "https://example.com", threshold: 3.months
42
42
  # Check if a website is reachable and responses properly.
43
43
  # Available options:
44
44
  #
45
+ # timeout Maximum time to wait for request (default: 20 seconds)
45
46
  # status HTTP status code or array of status codes
46
47
  # body String (include check) or regular expression
47
48
  # headers { header => value }
@@ -14,7 +14,7 @@ module WatchmonkeyCli
14
14
 
15
15
  def check! result, page, opts = {}
16
16
  begin
17
- resp = HTTParty.get(page, no_follow: true, verify: false)
17
+ resp = HTTParty.get(page, no_follow: true, verify: false, timeout: opts[:timeout] || 20)
18
18
  result.result = resp
19
19
  rescue HTTParty::RedirectionTooDeep => e
20
20
  result.result = e.response
@@ -1,4 +1,4 @@
1
1
  module WatchmonkeyCli
2
- VERSION = "1.8.3"
2
+ VERSION = "1.8.4"
3
3
  UPDATE_URL = "https://raw.githubusercontent.com/2called-chaos/watchmonkey_cli/master/VERSION"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchmonkey_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Pachnit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-15 00:00:00.000000000 Z
11
+ date: 2018-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.7.3
166
+ rubygems_version: 2.7.6
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Watchmonkey CLI - dead simple agentless monitoring via SSH, HTTP, FTP, etc.