refinery 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1 +1,2 @@
1
- v0.9.0. Initial release.
1
+ v0.9.0. Initial release.
2
+ v0.9.3. Added prefix option to config so all queue names are prefixed.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
@@ -2,6 +2,7 @@ aws:
2
2
  credentials:
3
3
  access_key_id: "access_key_id"
4
4
  secret_access_key: "secret_access_key"
5
+ prefix: 'example_'
5
6
  processors:
6
7
  sample:
7
8
  queue: 'sample' # can be omitted
@@ -59,10 +59,12 @@ module Refinery #:nodoc:
59
59
 
60
60
  private
61
61
  def execute_daemons
62
+ prefix = config['prefix'] || ''
62
63
  config['processors'].each do |key, settings|
63
64
  logger.debug "Creating daemons for #{key}"
64
65
 
65
66
  queue_name = settings['queue'] || key
67
+ queue_name = "#{prefix}#{queue_name}"
66
68
  logger.debug "Using queue #{queue_name}"
67
69
  waiting_queue = queue("#{queue_name}_waiting")
68
70
  error_queue = queue("#{queue_name}_error")
data/refinery.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinery}
5
- s.version = "0.9.2"
5
+ s.version = "0.9.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Anthony Eden"]
9
- s.date = %q{2009-06-04}
9
+ s.date = %q{2009-06-29}
10
10
  s.description = %q{Process data in a distributed fashion.}
11
11
  s.email = %q{anthonyeden@gmail.com}
12
12
  s.executables = ["epub", "monitor", "pubnow", "refinery"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Eden
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-04 00:00:00 -04:00
12
+ date: 2009-06-29 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15