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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57106416b9e845a3ba712be54cc61f56cf1d8a9c
4
- data.tar.gz: ed9f9ec2225f398483588bfa4cd94b8438434fb4
3
+ metadata.gz: 532b19d9414039fd42820517b7d161e1d04fc128
4
+ data.tar.gz: 16a05b512bde91850f6bdc6b59e122d031c63958
5
5
  SHA512:
6
- metadata.gz: d6d012ab9ca388b19187db3fb8961a2f157870d6169a9e1b56db6f4441e4227c98d9b41232ba03537d472dd9ac5c32d222491e312a73de6b5f103d41afcb2012
7
- data.tar.gz: 7637a2b110650b5023285974032a165e9fc3b15ada5024886c4e7fb91e22259779b914746c6c037b7bb97b6bee37f710f97da6d175784eea457d58dab595053e
6
+ metadata.gz: 1992401ee5ae66bb7423c6f37db058215d754056f646dff21a4492e4af3e19e03a80524df6bdbe921b8c31779383cff627a058be2b235999bbfc89502ac749ac
7
+ data.tar.gz: cfe8d90dab6124583ca400d53ac3bcb19b40644bb884b01d288a1905205ee7082fc95fc9dbcdef83555fa9aaaa258d68e115efc9353ff2de943bc28b0007e143
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ServiceObjecter
2
2
 
3
- [![CircleCI](https://circleci.com/gh/tier-tools/service_objecter/tree/master.svg?style=svg)](https://circleci.com/gh/tier-tools/service_objecter/tree/master)
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 self.prepended(klass)
7
- klass.extend(ClassMethods)
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__
@@ -1,3 +1,3 @@
1
1
  module ServiceObjecter
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
@@ -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.singleton_class.prepend(ChainitIntegration) if defined?(ChainIt)
7
+ klass.include(ChainitIntegration) if defined?(ChainIt)
8
8
  end
9
9
 
10
10
  module ClassMethods
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - btolarz