serviz 0.1.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: f5c7ab5aa65d4e38eb1dc46293514d3b0c2646e42e0e57e564d6da528ba5641c
4
- data.tar.gz: '03591abc857c6138c2d3eb595547373dd75cf9aa7a2855693566f384325a7da3'
3
+ metadata.gz: 177871346c263a1cd84842ef37ffa32e1fd4a398242e4d050821b2c12e5b705c
4
+ data.tar.gz: 1e65d0ea46eae2a2e0914445a55b73fa32e5f256affdd4549a11d047c4cb4181
5
5
  SHA512:
6
- metadata.gz: '081c3fadf6244312e478e99e6d85b386140f317e544f230f8f648bdfe1a34d48502cb581d50c524ae481dd1d56e9360ac52674e04dd7680e37bd3365d08274e7'
7
- data.tar.gz: 251d149787e0460e3039e539c881aac1ae8a7f4a4d92afccccb9e105c2c6d016faff54bae0acabd632b4646ae9ef3d2ee0184af6eff50a25d5cc53aa20d54ef5
6
+ metadata.gz: 6ab5a8ab13a585d3d76d434b97a8ef16d2280756ecae1eadbb38c20f2a408599f0ceebe60c98a42430d1ee55889affee566ee7ab4ada8a533008a8791e0275a0
7
+ data.tar.gz: 84b5f495b341bf886e68340dcac0b0ce1ff4afce744c7a6fa89e10e7c4b07bbbc7b454c79a802b794730f1c5af5fe9f50086ce74755bc7a25e6e6202e4ab22ca
@@ -1,9 +1,14 @@
1
+ require 'serviz/version'
2
+
1
3
  module Serviz
2
4
  class Base
3
5
  attr_accessor :errors, :result
4
6
 
5
7
  def self.call(*args)
6
- new(*args).call
8
+ instance = new(*args)
9
+ instance.call
10
+
11
+ instance
7
12
  end
8
13
 
9
14
  def call
@@ -1,3 +1,3 @@
1
1
  module Serviz
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -9,8 +9,6 @@ class RegisterUser < Serviz::Base
9
9
  else
10
10
  self.errors << 'No user!'
11
11
  end
12
-
13
- self
14
12
  end
15
13
  end
16
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serviz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - markets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-05 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler