cronitor 4.1.1 → 4.1.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: 70d39a60f81039830a50c36c9885a6021155dfdef29403b2b28335f8be8fd2f8
4
- data.tar.gz: 26d1637753bfbea371b1dd5add7752cb36b9a2a20d0c5f2a66c760813fde83b2
3
+ metadata.gz: 33e095f9fcce446c592729b13d8de07592c2549bdb4b4f19c5c4a09fe6024415
4
+ data.tar.gz: f3d808e0588b6ac2e03dd4b0b79d41320b37f004f4c8858008076a307acfab84
5
5
  SHA512:
6
- metadata.gz: 4ad94427bb731459e4a41463b0435a2afc6e904ad15a76a57d50557d77285931bca7773b537b9eb5433b382364ab0161e87f03b326f5dca5faa4997e70f8c63d
7
- data.tar.gz: beb4775ed796685a6d1c90bb88c692cf8d2a34f834c858449138afffbcf53d258f84ff791c265d89e05db287d8259a9a7087f32c660410f99b40d965f49a0e19
6
+ metadata.gz: 87bb2ea79e7d93ca390296964de090e08f7b010e65aa1626154bd7677c131ab01e896065cacece5701374aacfebc9d7e2823186302245a3dd3d45d1f0069db5d
7
+ data.tar.gz: 035fa6604dbc17370f36d8b4833c2aa0938671cef3e85d600a82b811ac1df1306583870478a23be54e645f339d4fe4c504a73416d015a6bc35d11d88952f021b
data/README.md CHANGED
@@ -8,13 +8,12 @@
8
8
 
9
9
  In this guide:
10
10
 
11
- - [Installation](##Installation)
12
- - [Monitoring Background Jobs](##monitoring-background-jobs)
13
- - [Sending Telemetry Events](##sending-telemetry-events)
14
- - [Configuring Monitors](##configuring-monitors)
15
- - [Package Configuration & Env Vars](##package-configuration)
16
- - [Command Line Usage](##command-line-usage)
17
- - [Contributing](##contributing)
11
+ - [Installation](#Installation)
12
+ - [Monitoring Background Jobs](#monitoring-background-jobs)
13
+ - [Sending Telemetry Events](#sending-telemetry-events)
14
+ - [Configuring Monitors](#configuring-monitors)
15
+ - [Package Configuration & Env Vars](#package-configuration)
16
+ - [Contributing](#contributing)
18
17
 
19
18
  ## Installation
20
19
 
data/lib/cronitor.rb CHANGED
@@ -55,7 +55,8 @@ module Cronitor
55
55
 
56
56
  def self.apply_config(rollback: false)
57
57
  conf = read_config(output: true)
58
- monitors = Monitor.put(monitors: conf.fetch('monitors', []), rollback: rollback)
58
+ # allow a significantly longer timeout on requests that are sending full yaml config
59
+ monitors = Monitor.put(monitors: conf.fetch('monitors', []), rollback: rollback, timeout: 30)
59
60
  puts("#{monitors.length} monitors #{rollback ? 'validated' : 'synced to Cronitor'}.")
60
61
  rescue ValidationError => e
61
62
  Cronitor.logger.error(e)
@@ -23,7 +23,7 @@ module Cronitor
23
23
  rollback: rollback
24
24
  }.to_json,
25
25
  headers: Cronitor._headers,
26
- timeout: 10
26
+ timeout: opts[:timeout] || 10
27
27
  )
28
28
 
29
29
  case resp.code
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cronitor
4
- VERSION = '4.1.1'
4
+ VERSION = '4.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Byrnes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-05-28 00:00:00.000000000 Z
12
+ date: 2021-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty