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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd11fdb0b0b5ddbc8db9593a530f0e19fe728f1ac58cc3dbb102868a52573f24
4
- data.tar.gz: c628da55ad7e1847881c979b782dce7d973b23ace0f84ca20e1f528904c2fba9
3
+ metadata.gz: 33dbd02433c7393f8d8f266c695d200183c89353a8b7a8c88ead39fe440e6adf
4
+ data.tar.gz: aba889493d6a145d47f34a9aebd85a86802b6e132383fbaf59a1e53e6c814609
5
5
  SHA512:
6
- metadata.gz: 6f4f0eff29c871470ac99506bb77738fe9bb7d6bf485b01d010973462659766e397c96915e7807aa15ffeb480e46738106ece879e8fdb4e5f76ad6170bceced5
7
- data.tar.gz: a8d952cd3325b38b6b63f4066308c402b811fcdd6b2edd0e9d2d336ea15068bde3eb575add4d28cccd496b1f2978a7e1c4b96511851a4b387d7ced8f3b895551
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.0)
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.15
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(*args)
11
+ def build_klass(...)
12
12
  klass = self
13
13
 
14
14
  loop do
15
- new_klass = klass.build!(klass, *args)
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(*args)
25
- build_klass(*args).new(*args)
24
+ def build(...)
25
+ build_klass(...).new(...)
26
26
  end
27
27
  end
28
28
  end
@@ -20,7 +20,7 @@ module Resol
20
20
  private
21
21
 
22
22
  def __run_callbacks__(instance)
23
- @__callback_methods__.each { |method_name| instance.send(method_name) }
23
+ @__callback_methods__.each { |method_name| instance.__send__(method_name) }
24
24
  end
25
25
  end
26
26
  end
data/lib/resol/result.rb CHANGED
@@ -70,11 +70,11 @@ module Resol
70
70
  end
71
71
  end
72
72
 
73
- def self.Success(*args)
74
- Success.new(*args)
73
+ def self.Success(...)
74
+ Success.new(...)
75
75
  end
76
76
 
77
- def self.Failure(*args)
78
- Failure.new(*args)
77
+ def self.Failure(...)
78
+ Failure.new(...)
79
79
  end
80
80
  end
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!(*args)
68
- call(*args).value_or { |error| raise error }
67
+ def call!(...)
68
+ call(...).value_or { |error| raise error }
69
69
  end
70
70
  end
71
71
 
data/lib/resol/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resol
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
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.0
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-04-21 00:00:00.000000000 Z
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.1.2
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: []