minitest-keyword 1.0.0 → 1.0.2
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 +10 -0
- data/.github/workflows/auto-merge.yml +22 -0
- data/.github/workflows/main.yml +23 -0
- data/.gitignore +0 -1
- data/.rubocop.yml +43 -2
- data/CHANGELOG.md +19 -3
- data/CODE_OF_CONDUCT.md +76 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +61 -0
- data/LICENSE +1 -1
- data/README.md +7 -7
- data/Rakefile +14 -5
- data/bin/console +3 -3
- data/lib/minitest/keyword/version.rb +1 -1
- data/lib/minitest/keyword.rb +49 -32
- data/minitest-keyword.gemspec +35 -25
- metadata +40 -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: 70d8098146612cfca7688027b68ad119cec7304cf2d57e4a53917d1c6768de4b
|
4
|
+
data.tar.gz: e42b3dc2b49e40ce56fd354cba7bf00de356c9204e9e4bdf1819db86ad47a9d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfbf23bf6c7e1d70c39b67280c48eb5384133af034f6da161a4fd1e7dc6a8bf9cf1661d73eee722779cad1a755e743f1490c01d1a51584340697a87dcca7719e
|
7
|
+
data.tar.gz: 96ee9c50998942a3b4f9f3c7f2dca57b9373efe73d13899866c8e1ba3eb6f68e3e3f954b34bd4125dca89dace6edf4e42df6d7e93b47eaba3cae68270586e913
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Dependabot auto-merge
|
2
|
+
on: pull_request
|
3
|
+
|
4
|
+
permissions:
|
5
|
+
contents: write
|
6
|
+
pull-requests: write
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
dependabot:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
if: ${{ github.actor == 'dependabot[bot]' }}
|
12
|
+
steps:
|
13
|
+
- name: Dependabot metadata
|
14
|
+
id: metadata
|
15
|
+
uses: dependabot/fetch-metadata@v1.6.0
|
16
|
+
with:
|
17
|
+
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
18
|
+
- name: Enable auto-merge for Dependabot PRs
|
19
|
+
run: gh pr merge --auto --merge "$PR_URL"
|
20
|
+
env:
|
21
|
+
PR_URL: ${{github.event.pull_request.html_url}}
|
22
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Main
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
ci:
|
9
|
+
name: CI
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
env:
|
12
|
+
CI: true
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@master
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: '3.2'
|
18
|
+
bundler-cache: true
|
19
|
+
- name: Lint and test
|
20
|
+
run: |
|
21
|
+
bundle exec rake stree:check
|
22
|
+
bundle exec rubocop --parallel
|
23
|
+
bundle exec rake test
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,6 +1,47 @@
|
|
1
|
+
inherit_gem:
|
2
|
+
syntax_tree: config/rubocop.yml
|
3
|
+
|
1
4
|
AllCops:
|
2
5
|
DisplayCopNames: true
|
3
6
|
DisplayStyleGuide: true
|
4
|
-
|
7
|
+
NewCops: enable
|
8
|
+
SuggestExtensions: false
|
9
|
+
TargetRubyVersion: 2.7
|
5
10
|
Exclude:
|
6
|
-
- 'vendor/**/*'
|
11
|
+
- '{tmp,vendor,yard}/**/*'
|
12
|
+
|
13
|
+
Gemspec/DevelopmentDependencies:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Gemspec/RequiredRubyVersion:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Metrics/BlockLength:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Metrics/MethodLength:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Layout/LineLength:
|
26
|
+
Max: 80
|
27
|
+
|
28
|
+
Lint/AmbiguousBlockAssociation:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Naming/RescuedExceptionsVariableName:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Style/Documentation:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/FormatString:
|
38
|
+
EnforcedStyle: percent
|
39
|
+
|
40
|
+
Style/FormatStringToken:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/PerlBackrefs:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/SlicingWithRange:
|
47
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -6,9 +6,25 @@ 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.2] - 2024-01-23
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Support keyword arguments for `assert_respond_to` and `refute_respond_to`.
|
14
|
+
|
15
|
+
## [1.0.1] - 2021-11-17
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
- Require MFA for releasing.
|
20
|
+
|
9
21
|
## [1.0.0] - 2019-01-06
|
22
|
+
|
10
23
|
### 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
24
|
|
13
|
-
|
14
|
-
|
25
|
+
- 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.
|
26
|
+
|
27
|
+
[unreleased]: https://github.com/kddnewton/minitest-keyword/compare/v1.0.2...HEAD
|
28
|
+
[1.0.2]: https://github.com/kddnewton/minitest-keyword/compare/v1.0.1...v1.0.2
|
29
|
+
[1.0.1]: https://github.com/kddnewton/minitest-keyword/compare/v1.0.0...v1.0.1
|
30
|
+
[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
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
minitest-keyword (1.0.2)
|
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
|
+
json (2.7.1)
|
13
|
+
language_server-protocol (3.17.0.3)
|
14
|
+
minitest (5.21.1)
|
15
|
+
parallel (1.24.0)
|
16
|
+
parser (3.3.0.3)
|
17
|
+
ast (~> 2.4.1)
|
18
|
+
racc
|
19
|
+
prettier_print (1.2.1)
|
20
|
+
racc (1.7.3)
|
21
|
+
rainbow (3.1.1)
|
22
|
+
rake (13.1.0)
|
23
|
+
regexp_parser (2.9.0)
|
24
|
+
rexml (3.2.6)
|
25
|
+
rubocop (1.59.0)
|
26
|
+
json (~> 2.3)
|
27
|
+
language_server-protocol (>= 3.17.0)
|
28
|
+
parallel (~> 1.10)
|
29
|
+
parser (>= 3.2.2.4)
|
30
|
+
rainbow (>= 2.2.2, < 4.0)
|
31
|
+
regexp_parser (>= 1.8, < 3.0)
|
32
|
+
rexml (>= 3.2.5, < 4.0)
|
33
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
34
|
+
ruby-progressbar (~> 1.7)
|
35
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
36
|
+
rubocop-ast (1.30.0)
|
37
|
+
parser (>= 3.2.1.0)
|
38
|
+
ruby-progressbar (1.13.0)
|
39
|
+
simplecov (0.22.0)
|
40
|
+
docile (~> 1.1)
|
41
|
+
simplecov-html (~> 0.11)
|
42
|
+
simplecov_json_formatter (~> 0.1)
|
43
|
+
simplecov-html (0.12.3)
|
44
|
+
simplecov_json_formatter (0.1.4)
|
45
|
+
syntax_tree (6.2.0)
|
46
|
+
prettier_print (>= 1.2.0)
|
47
|
+
unicode-display_width (2.5.0)
|
48
|
+
|
49
|
+
PLATFORMS
|
50
|
+
ruby
|
51
|
+
|
52
|
+
DEPENDENCIES
|
53
|
+
bundler (~> 2.0)
|
54
|
+
minitest-keyword!
|
55
|
+
rake (~> 13.0)
|
56
|
+
rubocop (~> 1.12)
|
57
|
+
simplecov (~> 0.17)
|
58
|
+
syntax_tree
|
59
|
+
|
60
|
+
BUNDLED WITH
|
61
|
+
2.4.1
|
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
|
|
@@ -10,7 +10,7 @@ A small gem for allowing you to use Minitest assertions with keyword arguments.
|
|
10
10
|
Add this line to your application's Gemfile:
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
gem
|
13
|
+
gem "minitest-keyword"
|
14
14
|
```
|
15
15
|
|
16
16
|
And then execute:
|
@@ -23,16 +23,16 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
|
-
Add `require
|
26
|
+
Add `require "minitest/keyword"` to your `test_helper.rb` script. In your tests you will now be able to change your assertions from:
|
27
27
|
|
28
28
|
```ruby
|
29
|
-
assert_equal
|
29
|
+
assert_equal "foo", foo.inspect
|
30
30
|
```
|
31
31
|
|
32
32
|
to:
|
33
33
|
|
34
34
|
```ruby
|
35
|
-
assert_equal expected:
|
35
|
+
assert_equal expected: "foo", actual: foo.inspect
|
36
36
|
```
|
37
37
|
|
38
38
|
All of the standard Minitest assertions can now be used with keyword arguments. Note that this gem is still backwards-compatible with Minitest itself, so your existing tests won't break.
|
@@ -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/Rakefile
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rake/testtask"
|
5
|
+
require "syntax_tree/rake_tasks"
|
5
6
|
|
6
7
|
Rake::TestTask.new(:test) do |t|
|
7
|
-
t.libs <<
|
8
|
-
t.libs <<
|
9
|
-
t.test_files = FileList[
|
8
|
+
t.libs << "test"
|
9
|
+
t.libs << "lib"
|
10
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
10
11
|
end
|
11
12
|
|
12
13
|
task default: :test
|
14
|
+
|
15
|
+
configure = ->(task) do
|
16
|
+
task.source_files =
|
17
|
+
FileList[%w[Gemfile Rakefile *.gemspec lib/**/*.rb test/**/*.rb]]
|
18
|
+
end
|
19
|
+
|
20
|
+
SyntaxTree::Rake::CheckTask.new(&configure)
|
21
|
+
SyntaxTree::Rake::WriteTask.new(&configure)
|
data/bin/console
CHANGED
data/lib/minitest/keyword.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "minitest"
|
4
|
+
require "minitest/keyword/version"
|
5
5
|
|
6
6
|
module Minitest
|
7
7
|
# The module containing overridden assertion methods that will be prepended
|
@@ -24,8 +24,10 @@ module Minitest
|
|
24
24
|
# keyword arguments
|
25
25
|
class OverloadedArgumentError < ArgumentError
|
26
26
|
def initialize(method_name, argument_name)
|
27
|
-
super(
|
28
|
-
|
27
|
+
super(
|
28
|
+
"Cannot specify keyword argument and pass regular argument to " \
|
29
|
+
"#{method_name} for argument #{argument_name}"
|
30
|
+
)
|
29
31
|
end
|
30
32
|
end
|
31
33
|
|
@@ -33,44 +35,59 @@ module Minitest
|
|
33
35
|
# regular argument or a keyword argument
|
34
36
|
class MissingRequiredArgumentError < ArgumentError
|
35
37
|
def initialize(method_name, argument_name)
|
36
|
-
super(
|
37
|
-
|
38
|
+
super(
|
39
|
+
"You must specify a value for the #{argument_name} argument " \
|
40
|
+
"for the #{method_name} assertion"
|
41
|
+
)
|
38
42
|
end
|
39
43
|
end
|
40
44
|
|
41
|
-
Assertions
|
42
|
-
|
43
|
-
|
45
|
+
Assertions
|
46
|
+
.instance_methods
|
47
|
+
.grep(/assert|refute/)
|
48
|
+
.each do |method_name|
|
49
|
+
parameters = Assertions.instance_method(method_name).parameters
|
50
|
+
next if parameters.empty?
|
44
51
|
|
45
|
-
|
46
|
-
|
47
|
-
|
52
|
+
define_method(method_name) do |*args, **kwargs, &block|
|
53
|
+
passed_args = []
|
54
|
+
passed_kwargs = {}
|
48
55
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
56
|
+
parameters.each.with_index do |(type, arg_name), index|
|
57
|
+
if args.length > index &&
|
58
|
+
(kwargs.key?(arg_name) || kwargs.key?(ALIASES[arg_name]))
|
59
|
+
raise OverloadedArgumentError.new(method_name, arg_name)
|
60
|
+
end
|
54
61
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
62
|
+
if type == :req && args.length <= index && !kwargs.key?(arg_name) &&
|
63
|
+
!kwargs.key?(ALIASES[arg_name])
|
64
|
+
raise MissingRequiredArgumentError.new(method_name, arg_name)
|
65
|
+
end
|
59
66
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
+
case type
|
68
|
+
when :rest
|
69
|
+
passed_args +=
|
70
|
+
if args.any?
|
71
|
+
args[index..-1]
|
72
|
+
else
|
73
|
+
kwargs[arg_name] || kwargs[ALIASES[arg_name]]
|
74
|
+
end
|
75
|
+
when :key
|
76
|
+
passed_kwargs[arg_name] = (
|
77
|
+
kwargs[arg_name] || kwargs[ALIASES[arg_name]]
|
78
|
+
)
|
79
|
+
when :req, :opt
|
80
|
+
passed_args << (
|
81
|
+
args[index] || kwargs[arg_name] || kwargs[ALIASES[arg_name]]
|
82
|
+
)
|
83
|
+
else
|
84
|
+
raise "Unknown parameter type #{type}"
|
85
|
+
end
|
67
86
|
end
|
68
|
-
end
|
69
87
|
|
70
|
-
|
88
|
+
super(*passed_args, **passed_kwargs, &block)
|
89
|
+
end
|
71
90
|
end
|
72
|
-
end
|
73
|
-
# rubocop:enable Metrics/MethodLength
|
74
91
|
end
|
75
92
|
|
76
93
|
# Hook into the Minitest::Test class and prepend the Keyword module
|
data/minitest-keyword.gemspec
CHANGED
@@ -1,30 +1,40 @@
|
|
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
|
-
spec.name
|
9
|
-
spec.version
|
10
|
-
spec.authors
|
11
|
-
spec.email
|
12
|
-
|
13
|
-
spec.summary
|
14
|
-
spec.homepage
|
15
|
-
spec.license
|
16
|
-
|
17
|
-
spec.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
spec.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
spec.
|
29
|
-
spec.
|
9
|
+
spec.name = "minitest-keyword"
|
10
|
+
spec.version = version
|
11
|
+
spec.authors = ["Kevin Newton"]
|
12
|
+
spec.email = ["kddnewton@gmail.com"]
|
13
|
+
|
14
|
+
spec.summary = "Use Minitest assertions with keyword arguments"
|
15
|
+
spec.homepage = repository
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
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 =
|
26
|
+
`git ls-files -z`.split("\x0")
|
27
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
28
|
+
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_dependency "minitest", "~> 5.0"
|
34
|
+
|
35
|
+
spec.add_development_dependency "bundler", "~> 2.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"
|
39
|
+
spec.add_development_dependency "syntax_tree"
|
30
40
|
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.2
|
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: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -44,54 +44,72 @@ 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
|
-
|
82
|
+
version: '0.17'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: syntax_tree
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description:
|
84
98
|
email:
|
85
|
-
-
|
99
|
+
- kddnewton@gmail.com
|
86
100
|
executables: []
|
87
101
|
extensions: []
|
88
102
|
extra_rdoc_files: []
|
89
103
|
files:
|
104
|
+
- ".github/dependabot.yml"
|
105
|
+
- ".github/workflows/auto-merge.yml"
|
106
|
+
- ".github/workflows/main.yml"
|
90
107
|
- ".gitignore"
|
91
108
|
- ".rubocop.yml"
|
92
|
-
- ".travis.yml"
|
93
109
|
- CHANGELOG.md
|
110
|
+
- CODE_OF_CONDUCT.md
|
94
111
|
- Gemfile
|
112
|
+
- Gemfile.lock
|
95
113
|
- LICENSE
|
96
114
|
- README.md
|
97
115
|
- Rakefile
|
@@ -100,11 +118,15 @@ files:
|
|
100
118
|
- lib/minitest/keyword.rb
|
101
119
|
- lib/minitest/keyword/version.rb
|
102
120
|
- minitest-keyword.gemspec
|
103
|
-
homepage: https://github.com/
|
121
|
+
homepage: https://github.com/kddnewton/minitest-keyword
|
104
122
|
licenses:
|
105
123
|
- MIT
|
106
|
-
metadata:
|
107
|
-
|
124
|
+
metadata:
|
125
|
+
bug_tracker_uri: https://github.com/kddnewton/minitest-keyword/issues
|
126
|
+
changelog_uri: https://github.com/kddnewton/minitest-keyword/blob/v1.0.2/CHANGELOG.md
|
127
|
+
source_code_uri: https://github.com/kddnewton/minitest-keyword
|
128
|
+
rubygems_mfa_required: 'true'
|
129
|
+
post_install_message:
|
108
130
|
rdoc_options: []
|
109
131
|
require_paths:
|
110
132
|
- lib
|
@@ -119,8 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
141
|
- !ruby/object:Gem::Version
|
120
142
|
version: '0'
|
121
143
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
123
|
-
signing_key:
|
144
|
+
rubygems_version: 3.4.1
|
145
|
+
signing_key:
|
124
146
|
specification_version: 4
|
125
147
|
summary: Use Minitest assertions with keyword arguments
|
126
148
|
test_files: []
|