stalker 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +2 -0
  2. data/Rakefile +2 -1
  3. data/VERSION +1 -1
  4. data/lib/stalker.rb +4 -1
  5. metadata +27 -4
data/README.md CHANGED
@@ -81,6 +81,8 @@ Meta
81
81
 
82
82
  Created by Adam Wiggins
83
83
 
84
+ Patches from Jamie Cobbett and Scott Water
85
+
84
86
  Heavily inspired by [Minion](http://github.com/orionz/minion) by Orion Henry
85
87
 
86
88
  Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
data/Rakefile CHANGED
@@ -11,7 +11,8 @@ Jeweler::Tasks.new do |s|
11
11
  s.rubyforge_project = "stalker"
12
12
 
13
13
  s.add_dependency 'beanstalk-client'
14
-
14
+ s.add_dependency 'json_pure'
15
+
15
16
  s.files = FileList["[A-Z]*", "{bin,lib}/**/*"]
16
17
  end
17
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -29,9 +29,12 @@ module Stalker
29
29
 
30
30
  log "Working #{jobs.size} jobs: [ #{jobs.join(' ')} ]"
31
31
 
32
- beanstalk.list_tubes_watched.each { |tube| beanstalk.ignore(tube) }
33
32
  jobs.each { |job| beanstalk.watch(job) }
34
33
 
34
+ beanstalk.list_tubes_watched.each do |server, tubes|
35
+ tubes.each { |tube| beanstalk.ignore(tube) unless jobs.include?(tube) }
36
+ end
37
+
35
38
  loop do
36
39
  work_one_job
37
40
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stalker
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 4
9
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - Adam Wiggins
@@ -14,21 +15,37 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-29 00:00:00 -07:00
18
+ date: 2010-06-13 00:00:00 -07:00
18
19
  default_executable: stalk
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: beanstalk-client
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
30
33
  type: :runtime
31
34
  version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: json_pure
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id002
32
49
  description: A job queueing and background workers system using Beanstalkd. Inspired by the Minion gem.
33
50
  email: adam@heroku.com
34
51
  executables:
@@ -43,6 +60,8 @@ files:
43
60
  - VERSION
44
61
  - bin/stalk
45
62
  - lib/stalker.rb
63
+ - examples/enqueue.rb
64
+ - examples/jobs.rb
46
65
  has_rdoc: true
47
66
  homepage: http://github.com/adamwiggins/stalker
48
67
  licenses: []
@@ -53,23 +72,27 @@ rdoc_options:
53
72
  require_paths:
54
73
  - lib
55
74
  required_ruby_version: !ruby/object:Gem::Requirement
75
+ none: false
56
76
  requirements:
57
77
  - - ">="
58
78
  - !ruby/object:Gem::Version
79
+ hash: 3
59
80
  segments:
60
81
  - 0
61
82
  version: "0"
62
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
+ none: false
63
85
  requirements:
64
86
  - - ">="
65
87
  - !ruby/object:Gem::Version
88
+ hash: 3
66
89
  segments:
67
90
  - 0
68
91
  version: "0"
69
92
  requirements: []
70
93
 
71
94
  rubyforge_project: stalker
72
- rubygems_version: 1.3.6
95
+ rubygems_version: 1.3.7
73
96
  signing_key:
74
97
  specification_version: 3
75
98
  summary: A job queueing and background workers system using Beanstalkd.