proc-throttle 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/proc/throttle.rb CHANGED
@@ -3,7 +3,7 @@ class Proc
3
3
  thread = nil
4
4
 
5
5
  Proc.new do |*args|
6
- if thread && !thread.stop?
6
+ if thread && thread.alive?
7
7
  thread.kill
8
8
  end
9
9
 
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "proc-throttle"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = '0.0.1'
14
+ gem.version = '0.0.2'
15
15
 
16
16
  gem.add_development_dependency('rake')
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proc-throttle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70157189265980 !ruby/object:Gem::Requirement
16
+ requirement: &70237639238540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70157189265980
24
+ version_requirements: *70237639238540
25
25
  description: ! 'Proc#throttle: throttling calls'
26
26
  email:
27
27
  - youpy@buycheapviagraonlinenow.com
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: -1714952799659078603
56
+ hash: -1302762173298871425
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  version: '0'
63
63
  segments:
64
64
  - 0
65
- hash: -1714952799659078603
65
+ hash: -1302762173298871425
66
66
  requirements: []
67
67
  rubyforge_project:
68
68
  rubygems_version: 1.8.10