callee 0.3.5 → 0.3.6

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: 36ed2afe48979d71aad7f56b7512fd07a86b5828106d67238cb8abae60b05ec1
4
- data.tar.gz: d4d785e9f02bcb3cbce26eb6842f5ff1d15e6a8c7587ca23a8f969cd7bb48ce9
3
+ metadata.gz: b90a991b33aeb47d5c41b000e1d111dfb804de113aa653ce796ed78803ab8c9b
4
+ data.tar.gz: 8fab709b5ceb07d726641aed3cd194761ead8169152f25aa03a49cb1044d8028
5
5
  SHA512:
6
- metadata.gz: 696c669a1ca05fb96263649dd3963fbc31aca184129367024b5b9c640a22cf166e5363d3be5f95b84c9bf16d84ac491a9d8a4670abb6d6f391ebd8bb3a451348
7
- data.tar.gz: af8148a8aaea14d92e92491e2f30c475c00a9546da4aac16d1d0870e9cdc8d37432e59a7296769dd6d4d1ca1438cd2f977fce429e4446c72e70c6afc2c415bf5
6
+ metadata.gz: 85854ef52f40ccacb9b36daeed7fb0b31e8b38417442f3372434cc5c38e59ada13546ab8411d3c2143c84fc98f9db4aaef7a4ab59b8d4c16d441c13933017ed2
7
+ data.tar.gz: 62a97738fafee05270d00a016328177ad4f05d359f4b3fc7168fb1c7135b2c23e63a1f1cb5cf08a9fd8836b543a6ee4bed98a16868846bc8778546c63f9d8f19
@@ -15,10 +15,12 @@ jobs:
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@master
18
+
18
19
  - name: Set up Ruby
19
- uses: actions/setup-ruby@v1
20
+ uses: ruby/setup-ruby@v1
20
21
  with:
21
- version: 2.7.x
22
+ ruby-version: "3.2.2"
23
+ bundler-cache: true
22
24
 
23
25
  - name: Publish to GPR
24
26
  run: |
@@ -15,10 +15,12 @@ jobs:
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@master
18
+
18
19
  - name: Set up Ruby
19
- uses: actions/setup-ruby@v1
20
+ uses: ruby/setup-ruby@v1
20
21
  with:
21
- version: 2.7.x
22
+ ruby-version: "3.2.2"
23
+ bundler-cache: true
22
24
 
23
25
  - name: Publish to RubyGems
24
26
  run: |
@@ -14,11 +14,14 @@ jobs:
14
14
  rubocop:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v1
17
+ - uses: actions/checkout@v3
18
+
18
19
  - name: Set up Ruby
19
- uses: actions/setup-ruby@v1
20
+ uses: ruby/setup-ruby@v1
20
21
  with:
21
- ruby-version: 2.7.x
22
+ ruby-version: "3.2.2"
23
+ bundler-cache: true
24
+
22
25
  - name: Run Rubocop
23
26
  run: |
24
27
  gem install bundler
@@ -28,11 +31,14 @@ jobs:
28
31
  reek:
29
32
  runs-on: ubuntu-latest
30
33
  steps:
31
- - uses: actions/checkout@v1
34
+ - uses: actions/checkout@v3
35
+
32
36
  - name: Set up Ruby
33
- uses: actions/setup-ruby@v1
37
+ uses: ruby/setup-ruby@v1
34
38
  with:
35
- ruby-version: 2.7.x
39
+ ruby-version: "3.2.2"
40
+ bundler-cache: true
41
+
36
42
  - name: Run Reek
37
43
  run: |
38
44
  gem install bundler
@@ -42,11 +48,14 @@ jobs:
42
48
  test:
43
49
  runs-on: ubuntu-latest
44
50
  steps:
45
- - uses: actions/checkout@v1
51
+ - uses: actions/checkout@v3
52
+
46
53
  - name: Set up Ruby
47
- uses: actions/setup-ruby@v1
54
+ uses: ruby/setup-ruby@v1
48
55
  with:
49
- ruby-version: 2.7.x
56
+ ruby-version: "3.2.2"
57
+ bundler-cache: true
58
+
50
59
  - name: Run tests
51
60
  run: |
52
61
  gem install bundler
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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.6] - 2023-07-25
8
+
9
+ - Update dependencies.
10
+ - Fix test coverage.
11
+
7
12
  ## [0.3.4] - 2020-08-29
8
13
 
9
14
  - Update development dependencies.
data/Gemfile.lock CHANGED
@@ -1,36 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- callee (0.3.5)
5
- dry-initializer (>= 2.5, < 4.0)
4
+ callee (0.3.6)
5
+ dry-initializer (>= 2.5)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.1)
11
- coderay (1.1.3)
12
- docile (1.3.2)
13
- dry-initializer (3.0.4)
10
+ ast (2.4.2)
11
+ docile (1.4.0)
12
+ dry-initializer (3.1.1)
14
13
  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)
14
+ minitest (5.18.1)
15
+ parallel (1.23.0)
16
+ parser (3.2.2.3)
19
17
  ast (~> 2.4.1)
20
- pry (0.13.1)
21
- coderay (~> 1.1)
22
- method_source (~> 1.0)
23
- psych (3.1.0)
24
- rainbow (3.0.0)
25
- rake (13.0.1)
26
- rb-readline (0.5.5)
27
- reek (6.0.1)
18
+ racc
19
+ racc (1.7.1)
20
+ rainbow (3.1.1)
21
+ rake (13.0.6)
22
+ reek (6.1.4)
28
23
  kwalify (~> 0.7.0)
29
- parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
30
- psych (~> 3.1.0)
24
+ parser (~> 3.2.0)
31
25
  rainbow (>= 2.0, < 4.0)
32
- regexp_parser (1.8.1)
33
- rexml (3.2.4)
26
+ regexp_parser (2.8.1)
27
+ rexml (3.2.5)
34
28
  rubocop (0.92.0)
35
29
  parallel (~> 1.10)
36
30
  parser (>= 2.7.1.5)
@@ -40,35 +34,34 @@ GEM
40
34
  rubocop-ast (>= 0.5.0)
41
35
  ruby-progressbar (~> 1.7)
42
36
  unicode-display_width (>= 1.4.0, < 2.0)
43
- rubocop-ast (0.7.1)
44
- parser (>= 2.7.1.5)
37
+ rubocop-ast (1.29.0)
38
+ parser (>= 3.2.1.0)
45
39
  rubocop-performance (1.8.1)
46
40
  rubocop (>= 0.87.0)
47
41
  rubocop-ast (>= 0.4.0)
48
- ruby-progressbar (1.10.1)
49
- simplecov (0.19.0)
42
+ ruby-progressbar (1.13.0)
43
+ simplecov (0.22.0)
50
44
  docile (~> 1.1)
51
45
  simplecov-html (~> 0.11)
46
+ simplecov_json_formatter (~> 0.1)
52
47
  simplecov-html (0.12.3)
48
+ simplecov_json_formatter (0.1.4)
53
49
  standard (0.7)
54
50
  rubocop (= 0.92)
55
51
  rubocop-performance (= 1.8.1)
56
- unicode-display_width (1.7.0)
52
+ unicode-display_width (1.8.0)
57
53
 
58
54
  PLATFORMS
59
55
  ruby
60
56
 
61
57
  DEPENDENCIES
62
- bundler (~> 2.0)
58
+ bundler (~> 2.4)
63
59
  callee!
64
60
  minitest (~> 5.0)
65
- pry (~> 0.13)
66
61
  rake (~> 13.0)
67
- rb-readline (~> 0.5)
68
- reek (~> 6.0)
69
- rubocop (~> 0.92)
62
+ reek
70
63
  simplecov (~> 0.19)
71
- standard (~> 0.7)
64
+ standard
72
65
 
73
66
  BUNDLED WITH
74
- 2.1.4
67
+ 2.4.17
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
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:
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/3.0/) to specify calling parameters and options if necessary. Here is a basic usage example:
26
26
 
27
27
  ``` ruby
28
28
  class Power
data/bin/console CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "pry"
5
4
  require "callee"
6
5
 
7
- Pry.start
6
+ binding.irb
data/callee.gemspec CHANGED
@@ -24,15 +24,12 @@ Gem::Specification.new do |spec|
24
24
  spec.required_ruby_version = ">= 2.5.0"
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_dependency "dry-initializer", ">= 2.5", "< 4.0"
27
+ spec.add_dependency "dry-initializer", ">= 2.5"
28
28
 
29
- spec.add_development_dependency "bundler", "~> 2.0"
29
+ spec.add_development_dependency "bundler", "~> 2.4"
30
30
  spec.add_development_dependency "minitest", "~> 5.0"
31
- spec.add_development_dependency "pry", "~> 0.13"
32
31
  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"
32
+ spec.add_development_dependency "reek"
36
33
  spec.add_development_dependency "simplecov", "~> 0.19"
37
- spec.add_development_dependency "standard", "~> 0.7"
34
+ spec.add_development_dependency "standard"
38
35
  end
@@ -1,3 +1,3 @@
1
1
  module Callee
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Musayev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-04 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-initializer
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.5'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '4.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,23 +24,20 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.5'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '4.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bundler
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '2.0'
33
+ version: '2.4'
40
34
  type: :development
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '2.0'
40
+ version: '2.4'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: minitest
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,20 +52,6 @@ dependencies:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
54
  version: '5.0'
61
- - !ruby/object:Gem::Dependency
62
- name: pry
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '0.13'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '0.13'
75
55
  - !ruby/object:Gem::Dependency
76
56
  name: rake
77
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,48 +66,20 @@ dependencies:
86
66
  - - "~>"
87
67
  - !ruby/object:Gem::Version
88
68
  version: '13.0'
89
- - !ruby/object:Gem::Dependency
90
- name: rb-readline
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '0.5'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '0.5'
103
69
  - !ruby/object:Gem::Dependency
104
70
  name: reek
105
71
  requirement: !ruby/object:Gem::Requirement
106
72
  requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '6.0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: '6.0'
117
- - !ruby/object:Gem::Dependency
118
- name: rubocop
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
73
+ - - ">="
122
74
  - !ruby/object:Gem::Version
123
- version: '0.92'
75
+ version: '0'
124
76
  type: :development
125
77
  prerelease: false
126
78
  version_requirements: !ruby/object:Gem::Requirement
127
79
  requirements:
128
- - - "~>"
80
+ - - ">="
129
81
  - !ruby/object:Gem::Version
130
- version: '0.92'
82
+ version: '0'
131
83
  - !ruby/object:Gem::Dependency
132
84
  name: simplecov
133
85
  requirement: !ruby/object:Gem::Requirement
@@ -146,16 +98,16 @@ dependencies:
146
98
  name: standard
147
99
  requirement: !ruby/object:Gem::Requirement
148
100
  requirements:
149
- - - "~>"
101
+ - - ">="
150
102
  - !ruby/object:Gem::Version
151
- version: '0.7'
103
+ version: '0'
152
104
  type: :development
153
105
  prerelease: false
154
106
  version_requirements: !ruby/object:Gem::Requirement
155
107
  requirements:
156
- - - "~>"
108
+ - - ">="
157
109
  - !ruby/object:Gem::Version
158
- version: '0.7'
110
+ version: '0'
159
111
  description: Callee provides a standardized way to define callable classes with a
160
112
  strict params specification, based on dry-initializer
161
113
  email:
@@ -170,8 +122,6 @@ files:
170
122
  - ".gitignore"
171
123
  - ".reek.yml"
172
124
  - ".rubocop.yml"
173
- - ".ruby-version"
174
- - ".travis.yml"
175
125
  - CHANGELOG.md
176
126
  - Gemfile
177
127
  - Gemfile.lock
@@ -205,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
155
  - !ruby/object:Gem::Version
206
156
  version: '0'
207
157
  requirements: []
208
- rubygems_version: 3.1.2
158
+ rubygems_version: 3.4.10
209
159
  signing_key:
210
160
  specification_version: 4
211
161
  summary: Make callable service classes
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.7.0
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.1
7
- before_install: gem install bundler -v 2.0.2