resol 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/resol/builder.rb +2 -2
- data/lib/resol/service.rb +2 -2
- data/lib/resol/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ace6271ca99729b99ebf4828dd8915078834d010d883ee14e71f98ac28534602
|
4
|
+
data.tar.gz: c3c864c2622e681e0dba5bae64020083a7754604ed0f67623779cc73fc324a9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcbbc7fc8aed320aae8dbc8134ba1bf04b9226bb0555d49889777ba72f113b215a31986168a6248ab1d3001619ac3ba0f5c82f63aaed8db143f7f9f4aced4930
|
7
|
+
data.tar.gz: 01ff693499b76bad144bdd215e1709db905b0ceedb6d805ebc4796538dcc96c0e1213623e0dec0b337da649d4b409a703a2dde01d2df5b6c8a877d402dfd0968
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/resol/builder.rb
CHANGED
@@ -8,11 +8,11 @@ module Resol
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ClassMethods
|
11
|
-
def build_klass(*args
|
11
|
+
def build_klass(*args)
|
12
12
|
klass = self
|
13
13
|
|
14
14
|
loop do
|
15
|
-
new_klass = klass.build!(klass, *args
|
15
|
+
new_klass = klass.build!(klass, *args)
|
16
16
|
break if new_klass == klass
|
17
17
|
|
18
18
|
klass = new_klass
|
data/lib/resol/service.rb
CHANGED
@@ -49,8 +49,8 @@ module Resol
|
|
49
49
|
super
|
50
50
|
end
|
51
51
|
|
52
|
-
def call(*args,
|
53
|
-
command = build(*args
|
52
|
+
def call(*args, &block)
|
53
|
+
command = build(*args)
|
54
54
|
command.call(&block)
|
55
55
|
|
56
56
|
error_message = "No success! or fail! called in the #call method in #{command.class}"
|
data/lib/resol/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksei Bespalov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: smart_initializer
|