villein 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: 2aaa35f865062a4e4d80919f3098dd66c6c0e19f
4
- data.tar.gz: 9e1a7327b766558819f3481211182626032dc7f3
3
+ metadata.gz: 38c9a67c0adcd3eafe19bf994a262a9b08e979cf
4
+ data.tar.gz: a73173192b4a03fd78130a0368eaf00530b64646
5
5
  SHA512:
6
- metadata.gz: 2917a0fa0ed13cc0424dab7970e5e270f36569a6951432be0d2469cced125e0a324945ed0c8879c4ff4de807551100645be253293362da3dba376274a059850b
7
- data.tar.gz: 1900c81bbeb2ff22b927fa8b7ea38f2e43709afd8dd0a9046d5a39eb559031b9c51cf4478a4413861d021f713880bb4cb03091034ce81d7e701dd6624c5031ba
6
+ metadata.gz: b24d9254bf8db038f6434c36fd565e452b199bdd20d37968474e499c563ab5d402dc929935df97337f8571c2aa8c122968ced37ac275c139e26cb889ca7d8d70
7
+ data.tar.gz: 50eb72e17349da8b03c0ab18d81e56cd981d20be91728d190e4927c53350cb5d875877b6fd7f3ef9cfd16c2b2279488c6ebcc7b68cdc12032699497855ed4348
data/lib/villein/agent.rb CHANGED
@@ -110,7 +110,7 @@ module Villein
110
110
  # Add +at_exit+ hook to safely stop at exit of current ruby process.
111
111
  # Note that +Kernel#.at_exit+ hook won't run when Ruby has crashed.
112
112
  def auto_stop
113
- at_exit { self.stop! }
113
+ at_exit { self.stop! if self.running? }
114
114
  end
115
115
 
116
116
  %w(member_join member_leave member_failed member_update member_reap
@@ -1,3 +1,3 @@
1
1
  module Villein
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: villein
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
  - Shota Fukumori (sora_h)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-25 00:00:00.000000000 Z
11
+ date: 2014-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec