workers 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/workers/pool.rb CHANGED
@@ -42,5 +42,9 @@ module Workers
42
42
 
43
43
  return nil
44
44
  end
45
+
46
+ def inspect
47
+ return "#<#{self.class.to_s}:0x#{(object_id << 1).to_s(16)} size=#{@size}>"
48
+ end
45
49
  end
46
50
  end
@@ -1,3 +1,3 @@
1
1
  module Workers
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
@@ -39,6 +39,10 @@ module Workers
39
39
  return @thread && @thread.alive?
40
40
  end
41
41
 
42
+ def inspect
43
+ return "#<#{self.class.to_s}:0x#{(object_id << 1).to_s(16)} #{alive? ? 'alive' : 'dead'}>"
44
+ end
45
+
42
46
  private
43
47
 
44
48
  def start_event_loop
data/workers.gemspec CHANGED
@@ -4,16 +4,16 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'workers/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
- gem.name = "workers"
7
+ gem.name = 'workers'
8
8
  gem.version = Workers::VERSION
9
- gem.authors = ["Chad Remesch"]
10
- gem.email = ["chad@remesch.com"]
9
+ gem.authors = ['Chad Remesch']
10
+ gem.email = ['chad@remesch.com']
11
11
  gem.description = %q{Simple Ruby workers for performing work in background threads.}
12
12
  gem.summary = %q{Workers is a Ruby gem for performing work in background threads. Design goals include high performance, low latency, simple API, customizability, and multi-layered architecture.}
13
- gem.homepage = "https://github.com/chadrem/workers"
13
+ gem.homepage = 'https://github.com/chadrem/workers'
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = ["lib"]
18
+ gem.require_paths = ['lib']
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
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: 2013-01-28 00:00:00.000000000 Z
12
+ date: 2013-02-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Simple Ruby workers for performing work in background threads.
15
15
  email:
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 1.8.24
57
+ rubygems_version: 1.8.25
58
58
  signing_key:
59
59
  specification_version: 3
60
60
  summary: Workers is a Ruby gem for performing work in background threads. Design goals