klomp 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,11 @@
1
1
  Klomp Changes
2
2
  --------------------------------------------------------------------------------
3
3
 
4
+ 1.0.6 (2012/11/19)
5
+ ================================================================================
6
+
7
+ - Bugfix: implement missing Klomp::Sentinel#alive?
8
+
4
9
  1.0.5 (2012/10/17)
5
10
  ================================================================================
6
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "klomp"
5
- s.version = "1.0.5"
5
+ s.version = "1.0.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Nick Sieger"]
@@ -1,5 +1,5 @@
1
1
  class Klomp
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
 
4
4
  class Error < StandardError; end
5
5
 
@@ -2,7 +2,11 @@ class Klomp
2
2
  class Sentinel
3
3
  def initialize(connection)
4
4
  @connection = connection
5
- Thread.new { run } unless @connection.connected?
5
+ @thread = Thread.new { run } unless @connection.connected?
6
+ end
7
+
8
+ def alive?
9
+ @thread && @thread.alive?
6
10
  end
7
11
 
8
12
  def run
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klomp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-17 00:00:00.000000000 Z
12
+ date: 2012-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
258
258
  version: '0'
259
259
  segments:
260
260
  - 0
261
- hash: -3900239592679067652
261
+ hash: 30151873419123398
262
262
  required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  none: false
264
264
  requirements: