simple_worker 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/worker.rb +1 -1
  2. data/test/test_runner.rb +1 -3
  3. metadata +1 -1
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
- module Worker
4
+ class Worker
5
5
  def set_progress(hash)
6
6
  puts 'set_progress: ' + hash.inspect
7
7
  end
data/test/test_runner.rb CHANGED
@@ -1,8 +1,6 @@
1
1
  require 'simple_worker'
2
2
 
3
- class TestRunner
4
-
5
- include SimpleWorker::Worker
3
+ class TestRunner < SimpleWorker::Worker
6
4
 
7
5
  def run(data=nil)
8
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder