sidekiq_snitch 1.3.0 → 1.4.0

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
- SHA1:
3
- metadata.gz: afe59b184d86c2b9e53b801c2917118b981bf6ce
4
- data.tar.gz: 94bfcd206d8153a0cb3fceb59cef5b20ca44d746
2
+ SHA256:
3
+ metadata.gz: a23d9338c7add78178489b95875c80289c36fe86c2a8cc0b15d46e34dcda68a3
4
+ data.tar.gz: 7546dedde6668ae7c1ca03948b545a0a2936d4632c3d841011c1b01fb32b2640
5
5
  SHA512:
6
- metadata.gz: 8bdb47a7a3434fd27dcf58ba6e1503835c36eb0034e570f33dd20d17438202e49cf08aae1341fed6cdb8cc760ee0d2cd99ab18560c00bddb44c48849fbe14095
7
- data.tar.gz: f17618ac621eda69dacd3127913a1537c38902e24f4d50429b7254d3cf2ac07f4a952ea7dee2b2d280db42153f86ea839050456e8be8dfe2c38e1fb0fc493a58
6
+ metadata.gz: 6e0025d8e48c79819a6f8a3294d7781ab31d30bd5a91070f52c088eb60fb7a577aaf6f1ecfc21f73dbf51e7f3c8845442ff7011a02f3c5c5767f1029d7e57388
7
+ data.tar.gz: bef116797866c0cf621dd3d15879e01fcc9652d60cb2c9557607c199ee6c03246288290d910ceefa831a15d74b4d16e5320dae2c7e135389a35410fc0dfbebad
@@ -12,8 +12,10 @@ module Sidekiq
12
12
  if ENV['SIDEKIQ_SNITCH_URL'].present?
13
13
  Net::HTTP.get(URI(ENV['SIDEKIQ_SNITCH_URL']))
14
14
 
15
+ minutes = (ENV['SIDEKIQ_SNITCH_MINUTES_DELAY'] || 60).to_i.minutes
16
+
15
17
  # groundhog day!
16
- Snitch.perform_in(1.hour) unless SidekiqSnitch.scheduled?
18
+ Snitch.perform_in(minutes) unless SidekiqSnitch.scheduled?
17
19
  end
18
20
  end
19
21
  end
@@ -1,3 +1,3 @@
1
1
  module SidekiqSnitch
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_snitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joost Baaij
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -130,10 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.5.1
133
+ rubygems_version: 3.0.1
135
134
  signing_key:
136
135
  specification_version: 4
137
136
  summary: Monitor Sidekiq using Dead Mans's Snitch
138
137
  test_files: []
139
- has_rdoc: