simple_worker 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,13 +19,14 @@ module SimpleWorker
19
19
  def inherited(subclass)
20
20
  subclass.reset!
21
21
 
22
- # puts "New subclass: #{subclass}"
23
- # puts "subclass.inspect=" + subclass.inspect
24
- # puts 'existing caller=' + (subclass.instance_variable_defined?(:@caller_file) ? subclass.instance_variable_get(:@caller_file).inspect : "nil")
25
- # puts "caller=" + caller.inspect
26
- splits = caller[0].split(":")
27
- caller_file = splits[0] + ":" + splits[1]
28
- # puts 'caller_file=' + caller_file
22
+ puts "subclass.inspect=" + subclass.inspect
23
+ puts 'existing caller=' + (subclass.instance_variable_defined?(:@caller_file) ? subclass.instance_variable_get(:@caller_file).inspect : "nil")
24
+ puts "caller=" + caller.inspect
25
+ # splits = caller[0].split(":")
26
+ # caller_file = splits[0] + ":" + splits[1]
27
+ caller_file = caller[0][0...(caller[0].index(":in"))]
28
+ caller_file = caller_file[0...(caller_file.rindex(":"))]
29
+ puts 'caller_file=' + caller_file
29
30
  # don't need these class_variables anymore probably
30
31
  subclass.instance_variable_set(:@caller_file, caller_file)
31
32
 
@@ -13,6 +13,7 @@ class TestWorker2 < SimpleWorker::Base
13
13
  attr_accessor :s3_key, :times, :x
14
14
 
15
15
 
16
+ #TEST dsd
16
17
  def who_am_i2?
17
18
  return self.class.name
18
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Travis Reeder