seam 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d5952bb7e0d86052efcc14e254ff5c7157c1b2a
4
- data.tar.gz: b56f6783e898afd0ee3d1a6fc836aef121c6bac3
3
+ metadata.gz: 00d1bdc3f04b6886794f6d9b8947ed665f36841e
4
+ data.tar.gz: c75f378c4ed3a3baf11f68e5b121ff9065fc42b1
5
5
  SHA512:
6
- metadata.gz: c5756f019e6eacc0a1a90509021aa68e3753055ea6102d2d0ae42851062e38f4bba5ad508054d2e79d30543c32050613b23dfd3d30e3ce0b36a39a3191b4bd46
7
- data.tar.gz: d287f29a24f6533fb4e1f13202e272224b3bc2272f2db084361ca008d396a9ce950fa6fe8b2601f492f9bfac7fe48a926513b661153668161880e48576484660
6
+ metadata.gz: 2ddef0ab3b75439ee35ed29d1f59b98cfa8f1d61662c91bcd075481640e6b0d7ef0bcff566ee2f373f2964598633c7f552015b711cec69e4fde100c0bf408bc6
7
+ data.tar.gz: b1c82553a5849831d45b2876ebe9e68a7e74b938c3efdd6be6e9a8e1f971e86154b00fc6a7b077615715f253cd17c5c2a6651a3b3311310e8d4200e4ee13b32c
data/lib/seam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Seam
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
data/lib/seam/worker.rb CHANGED
@@ -97,7 +97,7 @@ module Seam
97
97
  end
98
98
 
99
99
  def step
100
- s = @step || self.class.name.underscore.gsub('_worker', '')
100
+ s = @step || self.class.name.underscore.gsub('_worker', '').split('/')[-1]
101
101
  s.to_s
102
102
  end
103
103
 
@@ -17,6 +17,11 @@ describe "worker" do
17
17
  worker.handles(:darren)
18
18
  worker.step.must_equal "darren"
19
19
  end
20
+
21
+ it "should drop namespaces" do
22
+ worker = ThisIsANamespace::ThisIsAnotherNamespace::IAmAWorker.new
23
+ worker.step.must_equal "i_am_a"
24
+ end
20
25
  end
21
26
 
22
27
  describe "inherited & all" do
@@ -957,3 +962,12 @@ class IWillNotCallHandlesWorker < Seam::Worker
957
962
  # no calling handles here
958
963
  def process; end
959
964
  end
965
+
966
+ module ThisIsANamespace
967
+ module ThisIsAnotherNamespace
968
+ class IAmAWorker < Seam::Worker
969
+ def process; end
970
+ end
971
+ end
972
+ end
973
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Cauthon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-04 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport