resol 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -2
- data/lib/resol/builder.rb +4 -4
- data/lib/resol/callbacks.rb +1 -1
- data/lib/resol/result.rb +4 -4
- data/lib/resol/service.rb +4 -4
- data/lib/resol/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33dbd02433c7393f8d8f266c695d200183c89353a8b7a8c88ead39fe440e6adf
|
4
|
+
data.tar.gz: aba889493d6a145d47f34a9aebd85a86802b6e132383fbaf59a1e53e6c814609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34cc31c049d23bceb945518162b725fc919bd3aae6746d58a90038fe6d678d9ab5c8b4060d6e39a3ae248974973768c97f4ffe5abdcde49bad922081dc6dbf2f
|
7
|
+
data.tar.gz: aa8c2b3c450dc5b23314a53ed3c65fd662ce3e880b15ca6ab271b5f99a0e05229659c43fd6793ae47b0c7a99f53bcec2541ea025897075cc60ddedda970c1857
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
resol (0.4.
|
4
|
+
resol (0.4.1)
|
5
5
|
smart_initializer (~> 0.5)
|
6
6
|
uber (~> 0.1)
|
7
7
|
|
@@ -118,6 +118,7 @@ GEM
|
|
118
118
|
|
119
119
|
PLATFORMS
|
120
120
|
x86_64-darwin-19
|
121
|
+
x86_64-darwin-20
|
121
122
|
x86_64-linux
|
122
123
|
|
123
124
|
DEPENDENCIES
|
@@ -132,4 +133,4 @@ DEPENDENCIES
|
|
132
133
|
simplecov-lcov
|
133
134
|
|
134
135
|
BUNDLED WITH
|
135
|
-
2.2.
|
136
|
+
2.2.19
|
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(
|
11
|
+
def build_klass(...)
|
12
12
|
klass = self
|
13
13
|
|
14
14
|
loop do
|
15
|
-
new_klass = klass.build!(klass,
|
15
|
+
new_klass = klass.build!(klass, ...)
|
16
16
|
break if new_klass == klass
|
17
17
|
|
18
18
|
klass = new_klass
|
@@ -21,8 +21,8 @@ module Resol
|
|
21
21
|
klass
|
22
22
|
end
|
23
23
|
|
24
|
-
def build(
|
25
|
-
build_klass(
|
24
|
+
def build(...)
|
25
|
+
build_klass(...).new(...)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/resol/callbacks.rb
CHANGED
data/lib/resol/result.rb
CHANGED
data/lib/resol/service.rb
CHANGED
@@ -51,8 +51,8 @@ module Resol
|
|
51
51
|
super
|
52
52
|
end
|
53
53
|
|
54
|
-
def call(*args, &block)
|
55
|
-
command = build(*args)
|
54
|
+
def call(*args, **kwargs, &block)
|
55
|
+
command = build(*args, **kwargs)
|
56
56
|
__run_callbacks__(command)
|
57
57
|
command.call(&block)
|
58
58
|
|
@@ -64,8 +64,8 @@ module Resol
|
|
64
64
|
Resol::Failure(e)
|
65
65
|
end
|
66
66
|
|
67
|
-
def call!(
|
68
|
-
call(
|
67
|
+
def call!(...)
|
68
|
+
call(...).value_or { |error| raise error }
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
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.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksei Bespalov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: smart_initializer
|
@@ -179,7 +179,7 @@ homepage: https://github.com/umbrellio/resol
|
|
179
179
|
licenses:
|
180
180
|
- MIT
|
181
181
|
metadata: {}
|
182
|
-
post_install_message:
|
182
|
+
post_install_message:
|
183
183
|
rdoc_options: []
|
184
184
|
require_paths:
|
185
185
|
- lib
|
@@ -194,8 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
|
-
rubygems_version: 3.
|
198
|
-
signing_key:
|
197
|
+
rubygems_version: 3.2.15
|
198
|
+
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Gem for creating (any) object patterns
|
201
201
|
test_files: []
|