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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aed7685063ddba46ffee74bf622edbd0f6a7146fedfe45cc13e59e4a6d986c4
4
- data.tar.gz: 726bd9ed6d71b31f0620f673ef857a4ffbc1590c827ed52c849f0f78b9d49ee0
3
+ metadata.gz: c39c38c1db2e8fc84c8d158a55722fa5813aaf374eb4f1829b8c2e986f8d34da
4
+ data.tar.gz: 131b9d624e2be66040e3302f3b27111a6d3047c334375b311d647c44865218fe
5
5
  SHA512:
6
- metadata.gz: 0a5bfb013c016b9ff7eb4c6bb54437a684dfeecfe421baac9db19ff6f0fb62c2c2234dcdca5d8c41c579fb5881022622c4bf27b48e859a6000a6262f844eaf5a
7
- data.tar.gz: 437e24403249041deaae6cb2c631b74107e66b0ace75dbfd97647c7a168d40bf0a7de6ad8843015062878b91e7d19cf3d8e60fff6211121f97e6d012c1202c89
6
+ metadata.gz: 00df43e2354c98ef45515085cd55fef8331e429a35a5f170799b6f172f5aa5b9796099a83522c4074fc160bdb10b18db68ec7e379f11d9185e75dba988f5b5a6
7
+ data.tar.gz: 8d680815333dfc6a51d8fb4478ef25d11f279d53f713e4b930bcc48b3c5c4054239bf9c1813f4ae2cda07ad32246e3f553d74704fadbb4a57ca3c32a96059771
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
@@ -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
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/.rubocop.yml CHANGED
@@ -1,6 +1,33 @@
1
1
  AllCops:
2
2
  DisplayCopNames: true
3
3
  DisplayStyleGuide: true
4
- TargetRubyVersion: 2.6
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
- [Unreleased]: https://github.com/CultureHQ/client/compare/v1.0.0...HEAD
14
- [1.0.0]: https://github.com/CultureHQ/client/compare/v0.0.2...v1.0.0
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
@@ -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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Kevin Deisz
3
+ Copyright (c) 2017-present Kevin Newton
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Minitest::Keyword
2
2
 
3
- [![Build Status](https://travis-ci.org/kddeisz/minitest-keyword.svg?branch=master)](https://travis-ci.org/kddeisz/minitest-keyword)
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/kddeisz/minitest-keyword.
91
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kddnewton/minitest-keyword.
92
92
 
93
93
  ## License
94
94
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minitest
4
4
  module Keyword
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
@@ -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
@@ -1,22 +1,31 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'minitest/keyword/version'
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 = Minitest::Keyword::VERSION
10
- spec.authors = ['Kevin Deisz']
11
- spec.email = ['kevin.deisz@gmail.com']
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 = 'https://github.com/kddeisz/minitest-keyword'
15
+ spec.homepage = repository
15
16
  spec.license = 'MIT'
16
17
 
17
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
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', '~> 12.3'
28
- spec.add_development_dependency 'rubocop', '~> 0.62'
29
- spec.add_development_dependency 'simplecov', '~> 0.15'
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Kevin Deisz
8
- autorequire:
7
+ - Kevin Newton
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-06 00:00:00.000000000 Z
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: '12.3'
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: '12.3'
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: '0.62'
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: '0.62'
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.15'
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.15'
83
- description:
82
+ version: '0.17'
83
+ description:
84
84
  email:
85
- - kevin.deisz@gmail.com
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/kddeisz/minitest-keyword
106
+ homepage: https://github.com/kddnewton/minitest-keyword
104
107
  licenses:
105
108
  - MIT
106
- metadata: {}
107
- post_install_message:
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.0.1
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: []
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- rvm: 2.6.0
3
- branches:
4
- only: master
5
- before_install:
6
- - gem install bundler
7
- script:
8
- - bundle exec rake
9
- - bundle exec rubocop
10
- cache: bundler