logicum 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logicum/class_attribute.rb +0 -2
- data/lib/logicum/interactor.rb +4 -4
- data/lib/logicum/version.rb +1 -1
- data/logicum.gemspec +3 -3
- metadata +17 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52a7e80a92f27c371d5f85c6b981ed012e2f77dae0254633e6acfcf533957e83
|
4
|
+
data.tar.gz: ab91326d86c589ae77aba91284e82d306b4fe98e566e2a09ae1ee669994588bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bbf7253eaec7fdde9d1e6a5d45ecfcc0e62e5e8bc82f60b49d92d46828d94d86a1bd1784ed0f38205952cdfa114bcaf0eaf79124bd6f38b1ecfd9395d1c33c6
|
7
|
+
data.tar.gz: d665fcea85a146e06e07f0ae59c1e2d62c094c3b26d6f9c23fa0699f77a17484f9759b1ad9e3bbe27eeaec72ef67f328c9dfecfbbea3e77cc0f954ef22fa17f2
|
data/lib/logicum/interactor.rb
CHANGED
@@ -24,7 +24,7 @@ module Logicum
|
|
24
24
|
provisions.concat instance_variable_names
|
25
25
|
end
|
26
26
|
|
27
|
-
# Shortcut for caller if nothing needed in
|
27
|
+
# Shortcut for caller if nothing needed in initializer.
|
28
28
|
# For example:
|
29
29
|
#
|
30
30
|
# AddUser.call foo: 'bar'
|
@@ -32,14 +32,14 @@ module Logicum
|
|
32
32
|
# is equivalent to:
|
33
33
|
#
|
34
34
|
# AddUser.new.call foo: 'bar'
|
35
|
-
def call(*args, &block)
|
36
|
-
new.call *args, &block
|
35
|
+
def call(*args, **kwargs, &block)
|
36
|
+
new.call *args, **kwargs, &block
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
|
41
41
|
module CallInterface
|
42
|
-
def call(
|
42
|
+
def call(*, **)
|
43
43
|
raise MissingCallError unless defined? super
|
44
44
|
|
45
45
|
@__result__ = Result.new
|
data/lib/logicum/version.rb
CHANGED
data/logicum.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
end
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler"
|
24
|
-
spec.add_development_dependency "rake"
|
25
|
-
spec.add_development_dependency "minitest", "
|
23
|
+
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
spec.add_development_dependency "minitest", ">= 5.0"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,58 +1,58 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logicum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Stewart
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '5.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- boss@airbladesoftware.com
|
58
58
|
executables: []
|
@@ -77,7 +77,7 @@ homepage: https://github.com/airblade/logicum
|
|
77
77
|
licenses:
|
78
78
|
- MIT
|
79
79
|
metadata: {}
|
80
|
-
post_install_message:
|
80
|
+
post_install_message:
|
81
81
|
rdoc_options: []
|
82
82
|
require_paths:
|
83
83
|
- lib
|
@@ -92,9 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
|
-
|
96
|
-
|
97
|
-
signing_key:
|
95
|
+
rubygems_version: 3.1.4
|
96
|
+
signing_key:
|
98
97
|
specification_version: 4
|
99
98
|
summary: Simplifies writing a unit of business logic.
|
100
99
|
test_files: []
|