refinery 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.0
1
+ 0.12.0
data/bin/epub CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
  require 'getoptlong'
27
27
  require 'rdoc/usage'
28
- require File.dirname(__FILE__) + '/../lib/refinery'
28
+ require 'refinery'
29
29
 
30
30
  pidfile = 'epub.pid'
31
31
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  require 'getoptlong'
24
24
  require 'rdoc/usage'
25
- require File.dirname(__FILE__) + '/../lib/refinery'
25
+ require 'refinery'
26
26
 
27
27
  options = {}
28
28
  opts = GetoptLong.new(
data/bin/pubnow CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  require 'getoptlong'
30
30
  require 'rdoc/usage'
31
- require File.dirname(__FILE__) + '/../lib/refinery'
31
+ require 'refinery'
32
32
 
33
33
  options = {}
34
34
  opts = GetoptLong.new(
@@ -25,7 +25,7 @@
25
25
 
26
26
  require 'getoptlong'
27
27
  require 'rdoc/usage'
28
- require File.dirname(__FILE__) + '/../lib/refinery'
28
+ require 'refinery'
29
29
 
30
30
  pidfile = 'refinery.pid'
31
31
 
@@ -2,6 +2,8 @@ aws:
2
2
  credentials:
3
3
  access_key_id: "access_key_id"
4
4
  secret_access_key: "secret_access_key"
5
+ # queue_engine:
6
+ # provider: 'beanstalk'
5
7
  prefix: 'example_'
6
8
  processors:
7
9
  sample:
@@ -1,7 +1,5 @@
1
1
  $KCODE="UTF8"
2
2
 
3
- $:.unshift(File.dirname(__FILE__))
4
-
5
3
  require 'logger'
6
4
  require 'socket'
7
5
  require 'benchmark'
@@ -15,7 +15,6 @@ module Refinery #:nodoc:
15
15
  yield queue(name)
16
16
  rescue Exception => e
17
17
  logger.error "An error occurred when communicating with queue #{name}: #{e.message}"
18
- puts e.backtrace.map { |t| "\t#{t}" }.join("\n")
19
18
  sleep(30)
20
19
  end
21
20
  end
@@ -24,8 +23,12 @@ module Refinery #:nodoc:
24
23
  # Get the queue provider. Defaults to RightAws::SqsGen2 running
25
24
  # in multi-thread mode.
26
25
  def queue_provider
27
- if config['queue_engine'] == 'beanstalk' && defined?(Beanstalk)
28
- @queue_provider ||= Refinery::BeanstalkQueueProvider.new
26
+ if queue_engine = config['queue_engine']
27
+ if queue_engine['provider'] == 'beanstalk' && defined?(Beanstalk)
28
+ @queue_provider ||= Refinery::BeanstalkQueueProvider.new
29
+ else
30
+ raise RuntimeError, "Unknown queue provider: #{queue_engine['provider']}"
31
+ end
29
32
  else
30
33
  if defined?(Typica)
31
34
  @queue_provider ||= Typica::Sqs::QueueService.new(
@@ -1,6 +1,7 @@
1
1
  module Refinery #:nodoc:
2
2
  # The StatsServer class provides a build in web server that provides
3
- # a view into the refinery statistics.
3
+ # a view into the refinery statistics. This functionality is very
4
+ # experimental.
4
5
  class StatsServer
5
6
  include Refinery::Loggable
6
7
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{refinery}
8
- s.version = "0.11.0"
8
+ s.version = "0.12.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anthony Eden"]
12
- s.date = %q{2009-11-11}
12
+ s.date = %q{2009-11-21}
13
13
  s.description = %q{Process data in a distributed fashion.}
14
14
  s.email = %q{anthonyeden@gmail.com}
15
15
  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.11.0
4
+ version: 0.12.0
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-11-11 00:00:00 -10:00
12
+ date: 2009-11-21 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency