service-objecter 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/service_objecter/chainit_integration.rb +4 -10
- data/lib/service_objecter/version.rb +1 -1
- data/lib/service_objecter.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 532b19d9414039fd42820517b7d161e1d04fc128
|
4
|
+
data.tar.gz: 16a05b512bde91850f6bdc6b59e122d031c63958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1992401ee5ae66bb7423c6f37db058215d754056f646dff21a4492e4af3e19e03a80524df6bdbe921b8c31779383cff627a058be2b235999bbfc89502ac749ac
|
7
|
+
data.tar.gz: cfe8d90dab6124583ca400d53ac3bcb19b40644bb884b01d288a1905205ee7082fc95fc9dbcdef83555fa9aaaa258d68e115efc9353ff2de943bc28b0007e143
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ServiceObjecter
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Build Status](https://travis-ci.com/tier-tools/service_objecter.svg?branch=master)](https://travis-ci.com/tier-tools/service_objecter)
|
4
4
|
|
5
5
|
## Description
|
6
6
|
|
@@ -3,16 +3,8 @@ module ServiceObjecter
|
|
3
3
|
module ChainitIntegration
|
4
4
|
extend(Forwardable)
|
5
5
|
|
6
|
-
def
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
module ClassMethods
|
11
|
-
def call(*args)
|
12
|
-
service = new
|
13
|
-
service.send :__set_chain__
|
14
|
-
service.call(*args)
|
15
|
-
end
|
6
|
+
def initialize
|
7
|
+
__set_chain__
|
16
8
|
end
|
17
9
|
|
18
10
|
def_delegators :@__chain__, :chain, :skip_next, :on_error, :result
|
@@ -22,6 +14,8 @@ module ServiceObjecter
|
|
22
14
|
|
23
15
|
def __set_chain__
|
24
16
|
@__chain__ = ChainIt.new
|
17
|
+
@__chain__.chain { ServiceObjecter::Result.new(true) }
|
18
|
+
@__chain__
|
25
19
|
end
|
26
20
|
|
27
21
|
def __get_chain__
|
data/lib/service_objecter.rb
CHANGED
@@ -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.
|
7
|
+
klass.include(ChainitIntegration) if defined?(ChainIt)
|
8
8
|
end
|
9
9
|
|
10
10
|
module ClassMethods
|