edamame 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ CONFIG = Trollop::options do
4
4
  opt :store, 'host:port for the backing store', :type => String, :required => true
5
5
  opt :handle, 'label for this scrape', :type => String, :required => true
6
6
  end
7
- CONFIG[:store].gsub!(/^localhost:/, ':') # queue must *not* have localhost:
7
+ CONFIG[:store].gsub!(/^localhost:/, ':') # store must *not* have localhost:
8
8
  CONFIG[:queue].gsub!(/^:/, 'localhost:') # queue must have localhost:
9
9
  CONFIG[:tube] = (CONFIG[:handle] || 'default').gsub(/[^A-Z0-9a-z\-]+/,'')
10
10
 
data/lib/edamame/job.rb CHANGED
@@ -78,7 +78,7 @@ module Edamame
78
78
 
79
79
  # Fields suitable for emission as a log line.
80
80
  def loggable
81
- "%-15s\t%7d\t%7.2f\t%-23s" % [tube, priority, delay, key]
81
+ "%-15s\t%7d\t%7.2f\t%-23s" % [tube, priority.to_i, delay.to_f, key]
82
82
  end
83
83
 
84
84
  def to_hash flatten=true
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edamame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Philip (flip) Kromer
@@ -9,39 +14,45 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-11-02 00:00:00 -06:00
17
+ date: 2010-04-13 00:00:00 +00:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: beanstalk-client
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :runtime
31
+ version_requirements: *id001
25
32
  - !ruby/object:Gem::Dependency
26
33
  name: wukong
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
33
41
  version: "0"
34
- version:
42
+ type: :runtime
43
+ version_requirements: *id002
35
44
  - !ruby/object:Gem::Dependency
36
45
  name: monkeyshines
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
40
48
  requirements:
41
49
  - - ">="
42
50
  - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
43
53
  version: "0"
44
- version:
54
+ type: :runtime
55
+ version_requirements: *id003
45
56
  description: "Edamame combines the Beanstalk priority queue with a Tokyo Tyrant database and God monitoring to produce a persistent distributed priority job queue system. \n\n\
46
57
  Like beanstalk, it is fast, lightweight, distributed, priority queuing, reliable scheduling; it adds persistence, named jobs and job querying/enumeration. "
47
58
  email: flip@infochimps.org
@@ -126,18 +137,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
137
  requirements:
127
138
  - - ">="
128
139
  - !ruby/object:Gem::Version
140
+ segments:
141
+ - 0
129
142
  version: "0"
130
- version:
131
143
  required_rubygems_version: !ruby/object:Gem::Requirement
132
144
  requirements:
133
145
  - - ">="
134
146
  - !ruby/object:Gem::Version
147
+ segments:
148
+ - 0
135
149
  version: "0"
136
- version:
137
150
  requirements: []
138
151
 
139
152
  rubyforge_project:
140
- rubygems_version: 1.3.5
153
+ rubygems_version: 1.3.6
141
154
  signing_key:
142
155
  specification_version: 3
143
156
  summary: Beanstalk + Tokyo Tyrant = Edamame, a fast persistent distributed priority job queue.