callee 0.2.1 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gpr.yml +33 -0
- data/.github/workflows/rubygems.yml +32 -0
- data/.github/workflows/test.yml +54 -0
- data/.gitignore +1 -0
- data/.reek.yml +7 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +48 -76
- data/README.md +16 -40
- data/callee.gemspec +15 -17
- data/lib/callee.rb +3 -14
- data/lib/callee/version.rb +1 -1
- metadata +26 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36ed2afe48979d71aad7f56b7512fd07a86b5828106d67238cb8abae60b05ec1
|
4
|
+
data.tar.gz: d4d785e9f02bcb3cbce26eb6842f5ff1d15e6a8c7587ca23a8f969cd7bb48ce9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 696c669a1ca05fb96263649dd3963fbc31aca184129367024b5b9c640a22cf166e5363d3be5f95b84c9bf16d84ac491a9d8a4670abb6d6f391ebd8bb3a451348
|
7
|
+
data.tar.gz: af8148a8aaea14d92e92491e2f30c475c00a9546da4aac16d1d0870e9cdc8d37432e59a7296769dd6d4d1ca1438cd2f977fce429e4446c72e70c6afc2c415bf5
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: Release on GitHub
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- releases
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- releases
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
build:
|
13
|
+
name: Build + Publish
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@master
|
18
|
+
- name: Set up Ruby
|
19
|
+
uses: actions/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
version: 2.7.x
|
22
|
+
|
23
|
+
- name: Publish to GPR
|
24
|
+
run: |
|
25
|
+
mkdir -p $HOME/.gem
|
26
|
+
touch $HOME/.gem/credentials
|
27
|
+
chmod 0600 $HOME/.gem/credentials
|
28
|
+
printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n" > $HOME/.gem/credentials
|
29
|
+
gem build *.gemspec
|
30
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
31
|
+
env:
|
32
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
33
|
+
OWNER: dreikanter
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Release on RubyGems
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- releases
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- releases
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
build:
|
13
|
+
name: Build + Publish
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@master
|
18
|
+
- name: Set up Ruby
|
19
|
+
uses: actions/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
version: 2.7.x
|
22
|
+
|
23
|
+
- name: Publish to RubyGems
|
24
|
+
run: |
|
25
|
+
mkdir -p $HOME/.gem
|
26
|
+
touch $HOME/.gem/credentials
|
27
|
+
chmod 0600 $HOME/.gem/credentials
|
28
|
+
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
|
29
|
+
gem build *.gemspec
|
30
|
+
gem push *.gem
|
31
|
+
env:
|
32
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
name: Test Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
- dev
|
8
|
+
push:
|
9
|
+
branches:
|
10
|
+
- master
|
11
|
+
- dev
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
rubocop:
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v1
|
18
|
+
- name: Set up Ruby
|
19
|
+
uses: actions/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: 2.7.x
|
22
|
+
- name: Run Rubocop
|
23
|
+
run: |
|
24
|
+
gem install bundler
|
25
|
+
bundle install --jobs 4 --retry 3
|
26
|
+
bundle exec rubocop
|
27
|
+
|
28
|
+
reek:
|
29
|
+
runs-on: ubuntu-latest
|
30
|
+
steps:
|
31
|
+
- uses: actions/checkout@v1
|
32
|
+
- name: Set up Ruby
|
33
|
+
uses: actions/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
ruby-version: 2.7.x
|
36
|
+
- name: Run Reek
|
37
|
+
run: |
|
38
|
+
gem install bundler
|
39
|
+
bundle install --jobs 4 --retry 3
|
40
|
+
bundle exec reek
|
41
|
+
|
42
|
+
test:
|
43
|
+
runs-on: ubuntu-latest
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v1
|
46
|
+
- name: Set up Ruby
|
47
|
+
uses: actions/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: 2.7.x
|
50
|
+
- name: Run tests
|
51
|
+
run: |
|
52
|
+
gem install bundler
|
53
|
+
bundle install --jobs 4 --retry 3
|
54
|
+
bundle exec rake test
|
data/.gitignore
CHANGED
data/.reek.yml
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.0
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.3.4] - 2020-08-29
|
8
|
+
|
9
|
+
- Update development dependencies.
|
10
|
+
|
11
|
+
## [0.3.2] - 2019-12-24
|
12
|
+
|
13
|
+
- Simplify `#call` params propagation.
|
14
|
+
|
15
|
+
## [0.2.2] - 2019-08-07
|
16
|
+
|
17
|
+
- Fix nil param value handling.
|
18
|
+
|
7
19
|
## [0.2.1] - 2019-08-07
|
8
20
|
|
9
21
|
- `#call` method is now consistent with the way `Dry::Initializer` constructor accepts params and options.
|
data/Gemfile.lock
CHANGED
@@ -1,85 +1,59 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
callee (0.
|
4
|
+
callee (0.3.5)
|
5
5
|
dry-initializer (>= 2.5, < 4.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
builder (3.2.3)
|
13
|
-
coderay (1.1.2)
|
10
|
+
ast (2.4.1)
|
11
|
+
coderay (1.1.3)
|
14
12
|
docile (1.3.2)
|
15
|
-
dry-initializer (3.0.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
thor (>= 0.18.1)
|
27
|
-
guard-compat (1.2.1)
|
28
|
-
guard-minitest (2.4.6)
|
29
|
-
guard-compat (~> 1.2)
|
30
|
-
minitest (>= 3.0)
|
31
|
-
jaro_winkler (1.5.3)
|
32
|
-
json (2.2.0)
|
33
|
-
listen (3.1.5)
|
34
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
35
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
36
|
-
ruby_dep (~> 1.2)
|
37
|
-
lumberjack (1.0.13)
|
38
|
-
method_source (0.9.2)
|
39
|
-
minitest (5.11.3)
|
40
|
-
minitest-reporters (1.3.6)
|
41
|
-
ansi
|
42
|
-
builder
|
43
|
-
minitest (>= 5.0)
|
44
|
-
ruby-progressbar
|
45
|
-
nenv (0.3.0)
|
46
|
-
notiffany (0.1.1)
|
47
|
-
nenv (~> 0.1)
|
48
|
-
shellany (~> 0.0)
|
49
|
-
parallel (1.17.0)
|
50
|
-
parser (2.6.3.0)
|
51
|
-
ast (~> 2.4.0)
|
52
|
-
pry (0.12.2)
|
53
|
-
coderay (~> 1.1.0)
|
54
|
-
method_source (~> 0.9.0)
|
13
|
+
dry-initializer (3.0.4)
|
14
|
+
kwalify (0.7.2)
|
15
|
+
method_source (1.0.0)
|
16
|
+
minitest (5.14.2)
|
17
|
+
parallel (1.19.2)
|
18
|
+
parser (2.7.1.5)
|
19
|
+
ast (~> 2.4.1)
|
20
|
+
pry (0.13.1)
|
21
|
+
coderay (~> 1.1)
|
22
|
+
method_source (~> 1.0)
|
23
|
+
psych (3.1.0)
|
55
24
|
rainbow (3.0.0)
|
56
|
-
rake (
|
57
|
-
rb-fsevent (0.10.3)
|
58
|
-
rb-inotify (0.10.0)
|
59
|
-
ffi (~> 1.0)
|
25
|
+
rake (13.0.1)
|
60
26
|
rb-readline (0.5.5)
|
61
|
-
|
62
|
-
|
27
|
+
reek (6.0.1)
|
28
|
+
kwalify (~> 0.7.0)
|
29
|
+
parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
|
30
|
+
psych (~> 3.1.0)
|
31
|
+
rainbow (>= 2.0, < 4.0)
|
32
|
+
regexp_parser (1.8.1)
|
33
|
+
rexml (3.2.4)
|
34
|
+
rubocop (0.92.0)
|
63
35
|
parallel (~> 1.10)
|
64
|
-
parser (>= 2.
|
36
|
+
parser (>= 2.7.1.5)
|
65
37
|
rainbow (>= 2.2.2, < 4.0)
|
38
|
+
regexp_parser (>= 1.7)
|
39
|
+
rexml
|
40
|
+
rubocop-ast (>= 0.5.0)
|
66
41
|
ruby-progressbar (~> 1.7)
|
67
|
-
unicode-display_width (>= 1.4.0, <
|
68
|
-
rubocop-
|
69
|
-
|
42
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
43
|
+
rubocop-ast (0.7.1)
|
44
|
+
parser (>= 2.7.1.5)
|
45
|
+
rubocop-performance (1.8.1)
|
46
|
+
rubocop (>= 0.87.0)
|
47
|
+
rubocop-ast (>= 0.4.0)
|
70
48
|
ruby-progressbar (1.10.1)
|
71
|
-
|
72
|
-
shellany (0.0.1)
|
73
|
-
simplecov (0.17.0)
|
49
|
+
simplecov (0.19.0)
|
74
50
|
docile (~> 1.1)
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
rubocop (
|
80
|
-
|
81
|
-
thor (0.20.3)
|
82
|
-
unicode-display_width (1.6.0)
|
51
|
+
simplecov-html (~> 0.11)
|
52
|
+
simplecov-html (0.12.3)
|
53
|
+
standard (0.7)
|
54
|
+
rubocop (= 0.92)
|
55
|
+
rubocop-performance (= 1.8.1)
|
56
|
+
unicode-display_width (1.7.0)
|
83
57
|
|
84
58
|
PLATFORMS
|
85
59
|
ruby
|
@@ -87,16 +61,14 @@ PLATFORMS
|
|
87
61
|
DEPENDENCIES
|
88
62
|
bundler (~> 2.0)
|
89
63
|
callee!
|
90
|
-
guard (~> 2.15)
|
91
|
-
guard-minitest (~> 2.4, >= 2.4.6)
|
92
64
|
minitest (~> 5.0)
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
rubocop (~> 0.
|
98
|
-
simplecov (~> 0.
|
99
|
-
standard (~> 0.
|
65
|
+
pry (~> 0.13)
|
66
|
+
rake (~> 13.0)
|
67
|
+
rb-readline (~> 0.5)
|
68
|
+
reek (~> 6.0)
|
69
|
+
rubocop (~> 0.92)
|
70
|
+
simplecov (~> 0.19)
|
71
|
+
standard (~> 0.7)
|
100
72
|
|
101
73
|
BUNDLED WITH
|
102
|
-
2.
|
74
|
+
2.1.4
|
data/README.md
CHANGED
@@ -25,55 +25,28 @@ Or install it yourself as:
|
|
25
25
|
To make a class callable, you need to include `Callee` mixin and implement `call` instance method. Use [dry-initializer DSL](https://dry-rb.org/gems/dry-initializer/optionals-and-defaults/) to specify calling parameters and options if necessary. Here is a basic usage example:
|
26
26
|
|
27
27
|
``` ruby
|
28
|
-
class
|
29
|
-
include Callee
|
30
|
-
|
31
|
-
param :a
|
32
|
-
param :b
|
33
|
-
|
34
|
-
def call
|
35
|
-
a + b
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
Sum.call(1, 1) # => 2
|
40
|
-
```
|
41
|
-
|
42
|
-
Use optional params with default values:
|
43
|
-
|
44
|
-
``` ruby
|
45
|
-
class Greet
|
28
|
+
class Power
|
46
29
|
include Callee
|
47
30
|
|
48
|
-
|
49
|
-
|
31
|
+
# Required parameter
|
32
|
+
param :base
|
33
|
+
|
34
|
+
# Option with a default value
|
35
|
+
option :exponent, optional: true, default: -> { 2 }
|
50
36
|
|
51
37
|
def call
|
52
|
-
|
38
|
+
base.pow(exponent)
|
53
39
|
end
|
54
40
|
end
|
55
41
|
|
56
|
-
|
57
|
-
|
42
|
+
Power.call(2) # => 4
|
43
|
+
Power.call(2, exponent: 10) # => 1024
|
58
44
|
```
|
59
45
|
|
60
|
-
Callable class may be used as a `
|
46
|
+
Callable class may be used as a Proc. Compact notation in the next example is identical to `[1, 2, 3].map { |value| Power.call(value) }`
|
61
47
|
|
62
48
|
``` ruby
|
63
|
-
|
64
|
-
include Callee
|
65
|
-
|
66
|
-
param :value
|
67
|
-
|
68
|
-
def call
|
69
|
-
value * value
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
values = [1, 2, 3]
|
74
|
-
|
75
|
-
# Compact notation for values.map { |value| Power.call(value) }
|
76
|
-
values.map(&Power) # => [1, 4, 9]
|
49
|
+
[1, 2, 3].map(&Power) # => [1, 4, 9]
|
77
50
|
```
|
78
51
|
|
79
52
|
Since Callee mixin inherits `dry-initializer` DSL, type constraints and coercion will also work, as usual. Just make sure to include `dry-types`:
|
@@ -84,13 +57,16 @@ require "dry-types"
|
|
84
57
|
class StrictPower
|
85
58
|
include Callee
|
86
59
|
|
87
|
-
param :
|
60
|
+
param :base, type: Dry::Types["strict.integer"]
|
61
|
+
option :exponent, type: Dry::Types["strict.integer"], optional: true, default: -> { 2 }
|
88
62
|
|
89
63
|
def call
|
90
|
-
|
64
|
+
base.pow(exponent)
|
91
65
|
end
|
92
66
|
end
|
93
67
|
|
68
|
+
# Let's inherit StrictPower params definition
|
69
|
+
# and override "base" with more forgiving constraint
|
94
70
|
class CoerciblePower < StrictPower
|
95
71
|
param :value, type: Dry::Types["coercible.integer"]
|
96
72
|
end
|
data/callee.gemspec
CHANGED
@@ -3,15 +3,15 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require "callee/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.authors
|
9
|
-
spec.email
|
6
|
+
spec.name = "callee"
|
7
|
+
spec.version = Callee::VERSION
|
8
|
+
spec.authors = ["Alex Musayev"]
|
9
|
+
spec.email = ["alex.musayev@gmail.com"]
|
10
10
|
|
11
|
-
spec.summary
|
12
|
-
spec.description
|
13
|
-
spec.homepage
|
14
|
-
spec.license
|
11
|
+
spec.summary = "Make callable service classes"
|
12
|
+
spec.description = "Callee provides a standardized way to define callable classes with a strict params specification, based on dry-initializer"
|
13
|
+
spec.homepage = "https://github.com/dreikanter/callee"
|
14
|
+
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
17
17
|
spec.metadata["source_code_uri"] = spec.homepage
|
@@ -27,14 +27,12 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency "dry-initializer", ">= 2.5", "< 4.0"
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 2.0"
|
30
|
-
spec.add_development_dependency "guard", "~> 2.15"
|
31
|
-
spec.add_development_dependency "guard-minitest", "~> 2.4", ">= 2.4.6"
|
32
30
|
spec.add_development_dependency "minitest", "~> 5.0"
|
33
|
-
spec.add_development_dependency "
|
34
|
-
spec.add_development_dependency "
|
35
|
-
spec.add_development_dependency "
|
36
|
-
spec.add_development_dependency "
|
37
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
38
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
39
|
-
spec.add_development_dependency "standard", "~> 0.
|
31
|
+
spec.add_development_dependency "pry", "~> 0.13"
|
32
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
33
|
+
spec.add_development_dependency "rb-readline", "~> 0.5"
|
34
|
+
spec.add_development_dependency "reek", "~> 6.0"
|
35
|
+
spec.add_development_dependency "rubocop", "~> 0.92"
|
36
|
+
spec.add_development_dependency "simplecov", "~> 0.19"
|
37
|
+
spec.add_development_dependency "standard", "~> 0.7"
|
40
38
|
end
|
data/lib/callee.rb
CHANGED
@@ -8,27 +8,16 @@ module Callee
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ClassMethods
|
11
|
-
def call(*params, **options)
|
12
|
-
|
11
|
+
def call(*params, **options, &block)
|
12
|
+
new(*params, **options).call(&block)
|
13
13
|
end
|
14
14
|
|
15
15
|
def to_proc
|
16
16
|
method(:call).to_proc
|
17
17
|
end
|
18
|
-
|
19
|
-
private
|
20
|
-
|
21
|
-
def create_callable(params, options)
|
22
|
-
has_params = params.any?
|
23
|
-
has_options = options.any?
|
24
|
-
return new unless has_params || has_options
|
25
|
-
return new(*params) unless has_options
|
26
|
-
return new(**options) unless has_params
|
27
|
-
new(*params, **options)
|
28
|
-
end
|
29
18
|
end
|
30
19
|
|
31
20
|
def call
|
32
|
-
raise
|
21
|
+
raise "Not implemented"
|
33
22
|
end
|
34
23
|
end
|
data/lib/callee/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: callee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Musayev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-initializer
|
@@ -44,40 +44,6 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '2.0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: guard
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '2.15'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '2.15'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: guard-minitest
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '2.4'
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 2.4.6
|
71
|
-
type: :development
|
72
|
-
prerelease: false
|
73
|
-
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - "~>"
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '2.4'
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 2.4.6
|
81
47
|
- !ruby/object:Gem::Dependency
|
82
48
|
name: minitest
|
83
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,109 +59,103 @@ dependencies:
|
|
93
59
|
- !ruby/object:Gem::Version
|
94
60
|
version: '5.0'
|
95
61
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
62
|
+
name: pry
|
97
63
|
requirement: !ruby/object:Gem::Requirement
|
98
64
|
requirements:
|
99
65
|
- - "~>"
|
100
66
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 1.3.6
|
67
|
+
version: '0.13'
|
105
68
|
type: :development
|
106
69
|
prerelease: false
|
107
70
|
version_requirements: !ruby/object:Gem::Requirement
|
108
71
|
requirements:
|
109
72
|
- - "~>"
|
110
73
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
112
|
-
- - ">="
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: 1.3.6
|
74
|
+
version: '0.13'
|
115
75
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
76
|
+
name: rake
|
117
77
|
requirement: !ruby/object:Gem::Requirement
|
118
78
|
requirements:
|
119
79
|
- - "~>"
|
120
80
|
- !ruby/object:Gem::Version
|
121
|
-
version: 0
|
81
|
+
version: '13.0'
|
122
82
|
type: :development
|
123
83
|
prerelease: false
|
124
84
|
version_requirements: !ruby/object:Gem::Requirement
|
125
85
|
requirements:
|
126
86
|
- - "~>"
|
127
87
|
- !ruby/object:Gem::Version
|
128
|
-
version: 0
|
88
|
+
version: '13.0'
|
129
89
|
- !ruby/object:Gem::Dependency
|
130
|
-
name:
|
90
|
+
name: rb-readline
|
131
91
|
requirement: !ruby/object:Gem::Requirement
|
132
92
|
requirements:
|
133
93
|
- - "~>"
|
134
94
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
95
|
+
version: '0.5'
|
136
96
|
type: :development
|
137
97
|
prerelease: false
|
138
98
|
version_requirements: !ruby/object:Gem::Requirement
|
139
99
|
requirements:
|
140
100
|
- - "~>"
|
141
101
|
- !ruby/object:Gem::Version
|
142
|
-
version: '
|
102
|
+
version: '0.5'
|
143
103
|
- !ruby/object:Gem::Dependency
|
144
|
-
name:
|
104
|
+
name: reek
|
145
105
|
requirement: !ruby/object:Gem::Requirement
|
146
106
|
requirements:
|
147
107
|
- - "~>"
|
148
108
|
- !ruby/object:Gem::Version
|
149
|
-
version: 0
|
109
|
+
version: '6.0'
|
150
110
|
type: :development
|
151
111
|
prerelease: false
|
152
112
|
version_requirements: !ruby/object:Gem::Requirement
|
153
113
|
requirements:
|
154
114
|
- - "~>"
|
155
115
|
- !ruby/object:Gem::Version
|
156
|
-
version: 0
|
116
|
+
version: '6.0'
|
157
117
|
- !ruby/object:Gem::Dependency
|
158
118
|
name: rubocop
|
159
119
|
requirement: !ruby/object:Gem::Requirement
|
160
120
|
requirements:
|
161
121
|
- - "~>"
|
162
122
|
- !ruby/object:Gem::Version
|
163
|
-
version: 0.
|
123
|
+
version: '0.92'
|
164
124
|
type: :development
|
165
125
|
prerelease: false
|
166
126
|
version_requirements: !ruby/object:Gem::Requirement
|
167
127
|
requirements:
|
168
128
|
- - "~>"
|
169
129
|
- !ruby/object:Gem::Version
|
170
|
-
version: 0.
|
130
|
+
version: '0.92'
|
171
131
|
- !ruby/object:Gem::Dependency
|
172
132
|
name: simplecov
|
173
133
|
requirement: !ruby/object:Gem::Requirement
|
174
134
|
requirements:
|
175
135
|
- - "~>"
|
176
136
|
- !ruby/object:Gem::Version
|
177
|
-
version: '0.
|
137
|
+
version: '0.19'
|
178
138
|
type: :development
|
179
139
|
prerelease: false
|
180
140
|
version_requirements: !ruby/object:Gem::Requirement
|
181
141
|
requirements:
|
182
142
|
- - "~>"
|
183
143
|
- !ruby/object:Gem::Version
|
184
|
-
version: '0.
|
144
|
+
version: '0.19'
|
185
145
|
- !ruby/object:Gem::Dependency
|
186
146
|
name: standard
|
187
147
|
requirement: !ruby/object:Gem::Requirement
|
188
148
|
requirements:
|
189
149
|
- - "~>"
|
190
150
|
- !ruby/object:Gem::Version
|
191
|
-
version: 0.
|
151
|
+
version: '0.7'
|
192
152
|
type: :development
|
193
153
|
prerelease: false
|
194
154
|
version_requirements: !ruby/object:Gem::Requirement
|
195
155
|
requirements:
|
196
156
|
- - "~>"
|
197
157
|
- !ruby/object:Gem::Version
|
198
|
-
version: 0.
|
158
|
+
version: '0.7'
|
199
159
|
description: Callee provides a standardized way to define callable classes with a
|
200
160
|
strict params specification, based on dry-initializer
|
201
161
|
email:
|
@@ -204,8 +164,13 @@ executables: []
|
|
204
164
|
extensions: []
|
205
165
|
extra_rdoc_files: []
|
206
166
|
files:
|
167
|
+
- ".github/workflows/gpr.yml"
|
168
|
+
- ".github/workflows/rubygems.yml"
|
169
|
+
- ".github/workflows/test.yml"
|
207
170
|
- ".gitignore"
|
171
|
+
- ".reek.yml"
|
208
172
|
- ".rubocop.yml"
|
173
|
+
- ".ruby-version"
|
209
174
|
- ".travis.yml"
|
210
175
|
- CHANGELOG.md
|
211
176
|
- Gemfile
|
@@ -240,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
205
|
- !ruby/object:Gem::Version
|
241
206
|
version: '0'
|
242
207
|
requirements: []
|
243
|
-
rubygems_version: 3.
|
208
|
+
rubygems_version: 3.1.2
|
244
209
|
signing_key:
|
245
210
|
specification_version: 4
|
246
211
|
summary: Make callable service classes
|