service-objecter 1.0.2 → 1.0.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: 532b19d9414039fd42820517b7d161e1d04fc128
4
- data.tar.gz: 16a05b512bde91850f6bdc6b59e122d031c63958
3
+ metadata.gz: 6645a84f848858d07ba1b4cdb9f476c8214f76e3
4
+ data.tar.gz: b534fc49c8f0a5f86f58b7d755b3f9bd38210528
5
5
  SHA512:
6
- metadata.gz: 1992401ee5ae66bb7423c6f37db058215d754056f646dff21a4492e4af3e19e03a80524df6bdbe921b8c31779383cff627a058be2b235999bbfc89502ac749ac
7
- data.tar.gz: cfe8d90dab6124583ca400d53ac3bcb19b40644bb884b01d288a1905205ee7082fc95fc9dbcdef83555fa9aaaa258d68e115efc9353ff2de943bc28b0007e143
6
+ metadata.gz: 2f2c3da391be0767c8a1d358618cc64b94c758802981e7eb621f18f1a28d8f53dc732100943dc0e56feeba87df4e3564b886fbc6d91952284ac524ee88a72a1c
7
+ data.tar.gz: 307b75a8a11c5a2df28fe3574ca05105a98cbd48581a719e07cfb4a86ac8cd6cfa81bac79fc220fc95b28468eb64a86bd5b12aca5edffa1da94818e247a8f991
@@ -4,7 +4,7 @@ require 'service_objecter/chainit_integration'
4
4
  module ServiceObjecter
5
5
  def self.included(klass)
6
6
  klass.extend(ClassMethods)
7
- klass.include(ChainitIntegration) if defined?(ChainIt)
7
+ klass.include(ServiceObjecter::ChainitIntegration) if defined?(ChainIt)
8
8
  end
9
9
 
10
10
  module ClassMethods
@@ -41,6 +41,10 @@ module ServiceObjecter
41
41
  @result ||= Result.new(true)
42
42
  end
43
43
 
44
+ # def result=(*args)
45
+ # result.push(*args)
46
+ # end
47
+
44
48
  # Transactions helper
45
49
  # Simple usage
46
50
  #
@@ -1,17 +1,12 @@
1
1
  require 'forwardable'
2
+
2
3
  module ServiceObjecter
3
4
  module ChainitIntegration
4
5
  extend(Forwardable)
5
6
 
6
- def initialize
7
- __set_chain__
8
- end
9
-
10
- def_delegators :@__chain__, :chain, :skip_next, :on_error, :result
7
+ def_delegators :__get_chain__, :chain, :skip_next, :on_error, :result
11
8
  alias run chain
12
9
 
13
- private
14
-
15
10
  def __set_chain__
16
11
  @__chain__ = ChainIt.new
17
12
  @__chain__.chain { ServiceObjecter::Result.new(true) }
@@ -19,6 +14,7 @@ module ServiceObjecter
19
14
  end
20
15
 
21
16
  def __get_chain__
17
+ __set_chain__ unless @__chain__
22
18
  @__chain__
23
19
  end
24
20
  end
@@ -1,3 +1,3 @@
1
1
  module ServiceObjecter
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service-objecter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - btolarz