kitchen_hooks 1.7.3 → 1.7.4

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: ead0cfd7b582010a0f78fe7e9986118343d7d4b8
4
- data.tar.gz: 8548e4eea2f5ac0dbbaa0ed168f3e45f5a6a7c5a
3
+ metadata.gz: 76f1021d1694ab9769980460d4ac30be16ded1f2
4
+ data.tar.gz: dfb8c50fc2242602bcaf3862458a8479a72d0611
5
5
  SHA512:
6
- metadata.gz: c86ed2bae07e64409b5c8a93d2f84c4d52ce672d83c6f31324b719a983a64f14461fcb6c87818adc1b9008cfcbfecd299c1d6bd441a8d4f354c20ba8740fc92e
7
- data.tar.gz: 323cff52e399012dbbf1718907d2e01ba49b0c46cd1971b0d9657fa0daf6d4d9132f4998a3d2ff2465f284cb6b5618dca26ffa1d8841c7e861265812c7b7d967
6
+ metadata.gz: 833bc6076be34537ca8bff79a336093fabf83b039d9bcc68d3b728d05585a4bf531b74e10e19364b737c0018cc45366800925e56e774fb41f005ee204ecb0121
7
+ data.tar.gz: ff3bd026d78c11825fab7c59d28ea0784e28d18e00c1befb008dfa98c0828c4ded6992cbf202498292515288547d3a18deff33edc24a752265aec53029314673
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.3
1
+ 1.7.4
@@ -43,8 +43,8 @@ module KitchenHooks
43
43
  def self.sync!
44
44
  @@sync_worker = Thread.new do
45
45
  loop do
46
- process_sync
47
46
  sleep @@sync_interval
47
+ process_sync
48
48
  end
49
49
  end
50
50
  end
@@ -57,7 +57,10 @@ private
57
57
 
58
58
  def merged_nodes
59
59
  @merged_nodes ||= all_nodes.group_by(&:name).pmap do |_, copies|
60
- copies.sort_by { |c| c.automatic.ohai_time }.last
60
+ copies.sort_by do |c|
61
+ time = c.automatic.ohai_time
62
+ time.is_a?(Float) ? time : -1.0
63
+ end.last
61
64
  end
62
65
  end
63
66
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hipchat