minitest-keyword 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/main.yml +34 -0
- data/.gitignore +0 -1
- data/.rubocop.yml +29 -2
- data/CHANGELOG.md +12 -3
- data/CODE_OF_CONDUCT.md +76 -0
- data/Gemfile.lock +51 -0
- data/LICENSE +1 -1
- data/README.md +3 -3
- data/lib/minitest/keyword/version.rb +1 -1
- data/lib/minitest/keyword.rb +3 -1
- data/minitest-keyword.gemspec +20 -11
- metadata +25 -18
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c39c38c1db2e8fc84c8d158a55722fa5813aaf374eb4f1829b8c2e986f8d34da
|
4
|
+
data.tar.gz: 131b9d624e2be66040e3302f3b27111a6d3047c334375b311d647c44865218fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00df43e2354c98ef45515085cd55fef8331e429a35a5f170799b6f172f5aa5b9796099a83522c4074fc160bdb10b18db68ec7e379f11d9185e75dba988f5b5a6
|
7
|
+
data.tar.gz: 8d680815333dfc6a51d8fb4478ef25d11f279d53f713e4b930bcc48b3c5c4054239bf9c1813f4ae2cda07ad32246e3f553d74704fadbb4a57ca3c32a96059771
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: Main
|
2
|
+
on:
|
3
|
+
- push
|
4
|
+
- pull_request_target
|
5
|
+
jobs:
|
6
|
+
ci:
|
7
|
+
name: CI
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
env:
|
10
|
+
CI: true
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@master
|
13
|
+
- uses: ruby/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 3.0
|
16
|
+
bundler-cache: true
|
17
|
+
- name: Lint and test
|
18
|
+
run: |
|
19
|
+
bundle exec rubocop --parallel
|
20
|
+
bundle exec rake test
|
21
|
+
automerge:
|
22
|
+
name: AutoMerge
|
23
|
+
needs: ci
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
if: github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
|
26
|
+
steps:
|
27
|
+
- uses: actions/github-script@v3
|
28
|
+
with:
|
29
|
+
script: |
|
30
|
+
github.pulls.merge({
|
31
|
+
owner: context.payload.repository.owner.login,
|
32
|
+
repo: context.payload.repository.name,
|
33
|
+
pull_number: context.payload.pull_request.number
|
34
|
+
})
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,6 +1,33 @@
|
|
1
1
|
AllCops:
|
2
2
|
DisplayCopNames: true
|
3
3
|
DisplayStyleGuide: true
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.7
|
5
5
|
Exclude:
|
6
|
-
- 'vendor/**/*'
|
6
|
+
- '{tmp,vendor,yard}/**/*'
|
7
|
+
|
8
|
+
Gemspec/RequiredRubyVersion:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Layout/LineLength:
|
12
|
+
Max: 80
|
13
|
+
|
14
|
+
Lint/AmbiguousBlockAssociation:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Naming/RescuedExceptionsVariableName:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Style/Documentation:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Style/FormatString:
|
24
|
+
EnforcedStyle: percent
|
25
|
+
|
26
|
+
Style/FormatStringToken:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Style/PerlBackrefs:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
Style/SlicingWithRange:
|
33
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -6,9 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.0.1] - 2021-11-17
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Require MFA for releasing.
|
14
|
+
|
9
15
|
## [1.0.0] - 2019-01-06
|
16
|
+
|
10
17
|
### Changed
|
11
|
-
- The name of the underlying parameter changed for `assert_in_epsilon` from `a` and `b` to `exp` and `act`. As such in order to normalize, those were aliased to `expected` and `actual` as well.
|
12
18
|
|
13
|
-
|
14
|
-
|
19
|
+
- The name of the underlying parameter changed for `assert_in_epsilon` from `a` and `b` to `exp` and `act`. As such, in order to normalize, those were aliased to `expected` and `actual` as well.
|
20
|
+
|
21
|
+
[unreleased]: https://github.com/kddnewton/minitest-keyword/compare/v1.0.1...HEAD
|
22
|
+
[1.0.1]: https://github.com/kddnewton/minitest-keyword/compare/v1.0.0...v1.0.1
|
23
|
+
[1.0.0]: https://github.com/kddnewton/minitest-keyword/compare/846f1f...v1.0.0
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
- Using welcoming and inclusive language
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
19
|
+
- Gracefully accepting constructive criticism
|
20
|
+
- Focusing on what is best for the community
|
21
|
+
- Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
- Public or private harassment
|
29
|
+
- Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at kddnewton@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
72
|
+
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
74
|
+
|
75
|
+
For answers to common questions about this code of conduct, see
|
76
|
+
https://www.contributor-covenant.org/faq
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
minitest-keyword (1.0.1)
|
5
|
+
minitest (~> 5.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.2)
|
11
|
+
docile (1.4.0)
|
12
|
+
minitest (5.14.4)
|
13
|
+
parallel (1.21.0)
|
14
|
+
parser (3.0.2.0)
|
15
|
+
ast (~> 2.4.1)
|
16
|
+
rainbow (3.0.0)
|
17
|
+
rake (13.0.6)
|
18
|
+
regexp_parser (2.1.1)
|
19
|
+
rexml (3.2.5)
|
20
|
+
rubocop (1.23.0)
|
21
|
+
parallel (~> 1.10)
|
22
|
+
parser (>= 3.0.0.0)
|
23
|
+
rainbow (>= 2.2.2, < 4.0)
|
24
|
+
regexp_parser (>= 1.8, < 3.0)
|
25
|
+
rexml
|
26
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
27
|
+
ruby-progressbar (~> 1.7)
|
28
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
29
|
+
rubocop-ast (1.13.0)
|
30
|
+
parser (>= 3.0.1.1)
|
31
|
+
ruby-progressbar (1.11.0)
|
32
|
+
simplecov (0.21.2)
|
33
|
+
docile (~> 1.1)
|
34
|
+
simplecov-html (~> 0.11)
|
35
|
+
simplecov_json_formatter (~> 0.1)
|
36
|
+
simplecov-html (0.12.3)
|
37
|
+
simplecov_json_formatter (0.1.3)
|
38
|
+
unicode-display_width (2.1.0)
|
39
|
+
|
40
|
+
PLATFORMS
|
41
|
+
ruby
|
42
|
+
|
43
|
+
DEPENDENCIES
|
44
|
+
bundler (~> 2.0)
|
45
|
+
minitest-keyword!
|
46
|
+
rake (~> 13.0)
|
47
|
+
rubocop (~> 1.12)
|
48
|
+
simplecov (~> 0.17)
|
49
|
+
|
50
|
+
BUNDLED WITH
|
51
|
+
2.2.15
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Minitest::Keyword
|
2
2
|
|
3
|
-
[![Build Status](https://
|
4
|
-
[![Gem](https://img.shields.io/gem/v/minitest-keyword.svg)](https://rubygems.org/gems/minitest-keyword)
|
3
|
+
[![Build Status](https://github.com/kddnewton/minitest-keyword/workflows/Main/badge.svg)](https://github.com/kddnewton/minitest-keyword/actions)
|
4
|
+
[![Gem Version](https://img.shields.io/gem/v/minitest-keyword.svg)](https://rubygems.org/gems/minitest-keyword)
|
5
5
|
|
6
6
|
A small gem for allowing you to use Minitest assertions with keyword arguments. No longer worry about remembering the order of arguments!
|
7
7
|
|
@@ -88,7 +88,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
88
88
|
|
89
89
|
## Contributing
|
90
90
|
|
91
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
91
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kddnewton/minitest-keyword.
|
92
92
|
|
93
93
|
## License
|
94
94
|
|
data/lib/minitest/keyword.rb
CHANGED
@@ -40,6 +40,8 @@ module Minitest
|
|
40
40
|
|
41
41
|
Assertions.instance_methods.grep(/assert|refute/).each do |method_name|
|
42
42
|
parameters = Assertions.instance_method(method_name).parameters
|
43
|
+
|
44
|
+
# This check here for methods like `assert_silent`
|
43
45
|
next if parameters.empty?
|
44
46
|
|
45
47
|
# rubocop:disable Metrics/MethodLength
|
@@ -69,8 +71,8 @@ module Minitest
|
|
69
71
|
|
70
72
|
super(*passed_params, &block)
|
71
73
|
end
|
74
|
+
# rubocop:enable Metrics/MethodLength
|
72
75
|
end
|
73
|
-
# rubocop:enable Metrics/MethodLength
|
74
76
|
end
|
75
77
|
|
76
78
|
# Hook into the Minitest::Test class and prepend the Keyword module
|
data/minitest-keyword.gemspec
CHANGED
@@ -1,22 +1,31 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require_relative 'lib/minitest/keyword/version'
|
4
|
+
|
5
|
+
version = Minitest::Keyword::VERSION
|
6
|
+
repository = 'https://github.com/kddnewton/minitest-keyword'
|
6
7
|
|
7
8
|
Gem::Specification.new do |spec|
|
8
9
|
spec.name = 'minitest-keyword'
|
9
|
-
spec.version =
|
10
|
-
spec.authors = ['Kevin
|
11
|
-
spec.email = ['
|
10
|
+
spec.version = version
|
11
|
+
spec.authors = ['Kevin Newton']
|
12
|
+
spec.email = ['kddnewton@gmail.com']
|
12
13
|
|
13
14
|
spec.summary = 'Use Minitest assertions with keyword arguments'
|
14
|
-
spec.homepage =
|
15
|
+
spec.homepage = repository
|
15
16
|
spec.license = 'MIT'
|
16
17
|
|
17
|
-
spec.
|
18
|
+
spec.metadata = {
|
19
|
+
'bug_tracker_uri' => "#{repository}/issues",
|
20
|
+
'changelog_uri' => "#{repository}/blob/v#{version}/CHANGELOG.md",
|
21
|
+
'source_code_uri' => repository,
|
22
|
+
'rubygems_mfa_required' => 'true'
|
23
|
+
}
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
26
|
f.match(%r{^(test|spec|features)/})
|
19
27
|
end
|
28
|
+
|
20
29
|
spec.bindir = 'exe'
|
21
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
31
|
spec.require_paths = ['lib']
|
@@ -24,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
24
33
|
spec.add_dependency 'minitest', '~> 5.0'
|
25
34
|
|
26
35
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
28
|
-
spec.add_development_dependency 'rubocop', '~>
|
29
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
36
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
37
|
+
spec.add_development_dependency 'rubocop', '~> 1.12'
|
38
|
+
spec.add_development_dependency 'simplecov', '~> 0.17'
|
30
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-keyword
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Kevin
|
8
|
-
autorequire:
|
7
|
+
- Kevin Newton
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -44,54 +44,57 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.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
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.12'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.12'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.17'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
83
|
-
description:
|
82
|
+
version: '0.17'
|
83
|
+
description:
|
84
84
|
email:
|
85
|
-
-
|
85
|
+
- kddnewton@gmail.com
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- ".github/dependabot.yml"
|
91
|
+
- ".github/workflows/main.yml"
|
90
92
|
- ".gitignore"
|
91
93
|
- ".rubocop.yml"
|
92
|
-
- ".travis.yml"
|
93
94
|
- CHANGELOG.md
|
95
|
+
- CODE_OF_CONDUCT.md
|
94
96
|
- Gemfile
|
97
|
+
- Gemfile.lock
|
95
98
|
- LICENSE
|
96
99
|
- README.md
|
97
100
|
- Rakefile
|
@@ -100,11 +103,15 @@ files:
|
|
100
103
|
- lib/minitest/keyword.rb
|
101
104
|
- lib/minitest/keyword/version.rb
|
102
105
|
- minitest-keyword.gemspec
|
103
|
-
homepage: https://github.com/
|
106
|
+
homepage: https://github.com/kddnewton/minitest-keyword
|
104
107
|
licenses:
|
105
108
|
- MIT
|
106
|
-
metadata:
|
107
|
-
|
109
|
+
metadata:
|
110
|
+
bug_tracker_uri: https://github.com/kddnewton/minitest-keyword/issues
|
111
|
+
changelog_uri: https://github.com/kddnewton/minitest-keyword/blob/v1.0.1/CHANGELOG.md
|
112
|
+
source_code_uri: https://github.com/kddnewton/minitest-keyword
|
113
|
+
rubygems_mfa_required: 'true'
|
114
|
+
post_install_message:
|
108
115
|
rdoc_options: []
|
109
116
|
require_paths:
|
110
117
|
- lib
|
@@ -119,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
126
|
- !ruby/object:Gem::Version
|
120
127
|
version: '0'
|
121
128
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
123
|
-
signing_key:
|
129
|
+
rubygems_version: 3.2.3
|
130
|
+
signing_key:
|
124
131
|
specification_version: 4
|
125
132
|
summary: Use Minitest assertions with keyword arguments
|
126
133
|
test_files: []
|