refinery 0.9.0 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.2
data/bin/pubnow CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # == Synopsis
4
4
  #
5
- # epub: run the event publisher
5
+ # pubnow: run the event publisher
6
6
  #
7
7
  # == Usage
8
8
  #
@@ -118,7 +118,7 @@ module Refinery #:nodoc:
118
118
  raise SourceFileNotFound, "Source file not found: #{source_file}"
119
119
  end
120
120
 
121
- Object.const_get(camelize(name))
121
+ Object.const_get(camelize("#{name}_worker"))
122
122
  end
123
123
  end
124
124
  end
@@ -113,7 +113,7 @@ module Refinery #:nodoc:
113
113
  raise SourceFileNotFound, "Source file not found: #{source_file}"
114
114
  end
115
115
 
116
- Object.const_get(camelize(key))
116
+ Object.const_get(camelize("#{key}_publisher"))
117
117
  end
118
118
 
119
119
  end
data/publishers/error.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # An example publisher that posts a message to the queue that should raise an error.
2
- class Error < Refinery::Publisher
2
+ class ErrorPublisher < Refinery::Publisher
3
3
  def execute
4
4
  if waiting_queue.size == 0
5
5
  publish({'text' => 'fire an error, please'})
data/publishers/sample.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # A sample publisher that posts a message to the queue.
2
- class Sample < Refinery::Publisher
2
+ class SamplePublisher < Refinery::Publisher
3
3
  def execute
4
4
  if waiting_queue.size == 0
5
5
  publish({'text' => 'hey there!'})
data/publishers/sleep.rb CHANGED
@@ -1,4 +1,4 @@
1
- class Sleep < Refinery::Publisher
1
+ class SleepPublisher < Refinery::Publisher
2
2
  def execute
3
3
  if waiting_queue.size == 0
4
4
  publish({'seconds' => rand(5) + 0.5})
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.0"
5
+ s.version = "0.9.2"
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-01}
9
+ s.date = %q{2009-06-04}
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"]
data/workers/error.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # This is an example worker that raises an error.
2
- class Error < Refinery::Worker
2
+ class ErrorWorker < Refinery::Worker
3
3
  # Execute the work once.
4
4
  def execute(message)
5
5
  logger.info "received message: #{message.inspect}"
data/workers/sample.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # This is a sample worker.
2
- class Sample < Refinery::Worker
2
+ class SampleWorker < Refinery::Worker
3
3
  # Execute the work once.
4
4
  def execute(message)
5
5
  logger.info "received message: #{message.inspect}"
data/workers/sleep.rb CHANGED
@@ -1,4 +1,4 @@
1
- class Sleep < Refinery::Worker
1
+ class SleepWorker < Refinery::Worker
2
2
  def execute(message)
3
3
  logger.info "received message: #{message.inspect}"
4
4
  sleep(message['seconds'])
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.0
4
+ version: 0.9.2
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-01 00:00:00 -04:00
12
+ date: 2009-06-04 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15