simple_worker 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/lib/simple_worker.rb CHANGED
@@ -4,7 +4,7 @@ require File.join(File.dirname(__FILE__), 'worker')
4
4
 
5
5
  module SimpleWorker
6
6
 
7
- class Base < SimpleWorker::ApiAuth
7
+ class Service < SimpleWorker::ApiAuth
8
8
 
9
9
  include SimpleWorker::HttpEnabled
10
10
 
data/lib/worker.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # This is an abstract module that developers creating works can mixin/include to use the SimpleWorker special functions.
2
2
  module SimpleWorker
3
3
 
4
- class Worker
4
+ class Base
5
5
  def set_progress(hash)
6
6
  puts 'set_progress: ' + hash.inspect
7
7
  end
@@ -17,7 +17,7 @@ class SimpleWorkerTests < Test::Unit::TestCase
17
17
 
18
18
  def test_queue
19
19
 
20
- worker = SimpleWorker::Base.new(@access_key, @secret_key)
20
+ worker = SimpleWorker::Service.new(@access_key, @secret_key)
21
21
 
22
22
  # Upload latest runner code
23
23
  worker.upload(File.join(File.dirname(__FILE__), "./test_runner.rb"), "TestRunner")
data/test/test_runner.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'simple_worker'
2
2
 
3
- class TestRunner < SimpleWorker::Worker
3
+ class TestRunner < SimpleWorker::Base
4
4
 
5
5
  def run(data=nil)
6
6
  puts 'running the runner for leroy '.upcase + ' with data: ' + data.inspect
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 -08:00
12
+ date: 2009-11-18 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15