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 +1 -1
- data/bin/epub +1 -1
- data/bin/monitor +1 -1
- data/bin/pubnow +1 -1
- data/bin/refinery +1 -1
- data/config/config.example.yml +2 -0
- data/lib/refinery.rb +0 -2
- data/lib/refinery/queueable.rb +6 -3
- data/lib/refinery/stats_server.rb +2 -1
- data/refinery.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.12.0
|
data/bin/epub
CHANGED
data/bin/monitor
CHANGED
data/bin/pubnow
CHANGED
data/bin/refinery
CHANGED
data/config/config.example.yml
CHANGED
data/lib/refinery.rb
CHANGED
data/lib/refinery/queueable.rb
CHANGED
@@ -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']
|
28
|
-
|
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
|
|
data/refinery.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{refinery}
|
8
|
-
s.version = "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-
|
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.
|
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-
|
12
|
+
date: 2009-11-21 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|