zhong 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 902b025d6f1afe4edfa0f2cb6f6639bc0ff558ff
4
- data.tar.gz: 939fedf9667d0dc26f7fb1adcddedd5cbe76deba
3
+ metadata.gz: bb9ab1ce96b39e521d36cf4affe642be937a30b3
4
+ data.tar.gz: a517d0f704b84c88293cb944c7baa7d4061e3e50
5
5
  SHA512:
6
- metadata.gz: 16ce76fbea779cffa736f3c48f99bca3fa0ac0ba27e46261f20c41c037143317cb406715e8e866da4495dcf33a20a11830a37b6bd1b41ac9d64c39568c7e1896
7
- data.tar.gz: 85abd697abfe5fa1ffd7513ae8e146f34c3360234f2685f9f89aec5224b259d086e25097614836ba90ebe8bc2347b8ea324051d87ea5e6813acc845267de96bf
6
+ metadata.gz: 928f9c6ffe3189ad8ca6a4a6dd81516835f975bac08017232d3fe8af175be48db0682c945683f1151b5925f1e78e102ef9525ea22fa36be371c3f635a3847a60
7
+ data.tar.gz: 440927716a0dafdd0793e07532d59c466d14d3997dd90a3eb7e83e7d3fbeb4cb5a249cf8a571922c831572d2c7462523fe44f27217b14a8c7b695d7b086c2bed
@@ -1,3 +1,7 @@
1
+ ## 0.2.1
2
+
3
+ - Fix manually specifying a Redis connection (thanks, Richard Adams!)
4
+
1
5
  ## 0.2.0
2
6
 
3
7
  - Configuring Redis and the heartbeat key now correctly updates even after Zhong is configured initially.
@@ -23,6 +23,7 @@ module Zhong
23
23
  @long_running_timeout = config[:long_running_timeout]
24
24
  @running = false
25
25
  @first_run = true
26
+ @last_ran = nil
26
27
  @id = Digest::SHA256.hexdigest(@name)
27
28
  end
28
29
 
@@ -183,7 +184,7 @@ module Zhong
183
184
  end
184
185
 
185
186
  def redis_lock
186
- @lock ||= Suo::Client::Redis.new(lock_key, client: @redis, stale_lock_expiration: @long_running_timeout)
187
+ @lock ||= Suo::Client::Redis.new(lock_key, client: redis, stale_lock_expiration: @long_running_timeout)
187
188
  end
188
189
  end
189
190
  end
@@ -1,3 +1,3 @@
1
1
  module Zhong
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zhong
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Elser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2017-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: suo
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  version: '0'
277
277
  requirements: []
278
278
  rubyforge_project:
279
- rubygems_version: 2.5.1
279
+ rubygems_version: 2.5.2
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: Reliable, distributed cron.