rspec-pending_for 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +18 -5
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +3 -4
- data/CONTRIBUTING.md +69 -48
- data/README.md +402 -183
- data/REEK +0 -0
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +3 -3
- data/lib/rspec/pending_for/build.rb +49 -2
- data/lib/rspec/pending_for/version.rb +1 -1
- data/lib/rspec/pending_for.rb +20 -0
- data.tar.gz.sig +0 -0
- metadata +105 -41
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d0659caeb69f7783bdd1d6ec26e5c544a1ebc772cb762d4970ae7cc8d73d9d
|
4
|
+
data.tar.gz: 95a592a753377b39d012763451386160023e578f80ebbc487bdd3a5daac64254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2907b74df94884a8652a12452b47deea8216000a79ef99218d25ecd8773dd22bcc23d18d89d789953effc2615c92490aeecd51f68f0b239749cbf366584a665e
|
7
|
+
data.tar.gz: ed7d7ba8a563245cb32da15235dd6c2cec31e79ea6762e0d2a9738c51f631f9ea4bc4983dbccc44c3327d23ccdef9fcae7c266cc3b6fd378e54c1b668a9ccaec
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -19,10 +19,21 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
19
19
|
## [Unreleased]
|
20
20
|
### Added
|
21
21
|
### Changed
|
22
|
-
###
|
22
|
+
### Deprecated
|
23
23
|
### Removed
|
24
|
+
### Fixed
|
25
|
+
### Security
|
26
|
+
|
27
|
+
## [0.1.18] - 2025-02-24 ([tag][0.1.18t])
|
28
|
+
- TAG: [v0.1.8][0.1.18t]
|
29
|
+
- COVERAGE: 100.00% -- 86/86 lines in 6 files
|
30
|
+
- BRANCH COVERAGE: 100.00% -- 33/33 branches in 6 files
|
31
|
+
- 63.64% documented
|
32
|
+
### Added
|
33
|
+
- Versions can now be ranges!
|
24
34
|
|
25
|
-
## [0.1.
|
35
|
+
## [0.1.17] - 2025-02-24 ([tag][0.1.17t])
|
36
|
+
- TAG: [v0.1.7][0.1.17t]
|
26
37
|
- COVERAGE: 98.44% -- 63/64 lines in 6 files
|
27
38
|
- BRANCH COVERAGE: 94.44% -- 17/18 branches in 6 files
|
28
39
|
- 63.64% documented
|
@@ -32,6 +43,8 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
32
43
|
- Compatibility with truffleruby (maybe? not able to run it in CI yet)
|
33
44
|
- Fixed compatibility with Ruby < 2
|
34
45
|
|
35
|
-
[Unreleased]: https://github.com/pboling/rspec-pending_for/compare/v0.1.
|
36
|
-
[0.1.
|
37
|
-
[0.1.
|
46
|
+
[Unreleased]: https://github.com/pboling/rspec-pending_for/compare/v0.1.18...HEAD
|
47
|
+
[0.1.18]: https://github.com/pboling/rspec-pending_for/compare/v0.1.17...v0.1.18
|
48
|
+
[0.1.18t]: https://github.com/pboling/rspec-pending_for/tags/v0.1.18
|
49
|
+
[0.1.17]: https://github.com/pboling/rspec-pending_for/compare/v0.1.16...v0.1.17
|
50
|
+
[0.1.17t]: https://github.com/pboling/rspec-pending_for/tags/v0.1.17
|
data/CITATION.cff
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
cff-version: 1.2.0
|
2
|
+
title: rspec-pending_for
|
3
|
+
message: >-
|
4
|
+
If you use this work and you want to cite it,
|
5
|
+
then you can use the metadata from this file.
|
6
|
+
type: software
|
7
|
+
authors:
|
8
|
+
- given-names: Peter Hurn
|
9
|
+
family-names: Boling
|
10
|
+
email: peter@railsbling.com
|
11
|
+
affiliation: railsbling.com
|
12
|
+
orcid: 'https://orcid.org/0009-0008-8519-441X'
|
13
|
+
identifiers:
|
14
|
+
- type: url
|
15
|
+
value: 'https://github.com/galtzo-floss/rspec-pending_for/'
|
16
|
+
description: rspec-pending_for
|
17
|
+
repository-code: 'https://github.com/galtzo-floss/rspec-pending_for/'
|
18
|
+
abstract: >-
|
19
|
+
rspec-pending_for
|
20
|
+
license: See license file
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
# Contributor Covenant Code of Conduct
|
3
2
|
|
4
3
|
## Our Pledge
|
@@ -61,7 +60,7 @@ representative at an online or offline event.
|
|
61
60
|
|
62
61
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
63
62
|
reported to the community leaders responsible for enforcement at
|
64
|
-
[![Contact
|
63
|
+
[![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact].
|
65
64
|
All complaints will be reviewed and investigated promptly and fairly.
|
66
65
|
|
67
66
|
All community leaders are obligated to respect the privacy and security of the
|
@@ -131,5 +130,5 @@ For answers to common questions about this code of conduct, see the FAQ at
|
|
131
130
|
[Mozilla CoC]: https://github.com/mozilla/diversity
|
132
131
|
[FAQ]: https://www.contributor-covenant.org/faq
|
133
132
|
[translations]: https://www.contributor-covenant.org/translations
|
134
|
-
[🚂
|
135
|
-
[🚂
|
133
|
+
[🚂maint-contact]: http://www.railsbling.com/contact
|
134
|
+
[🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
|
data/CONTRIBUTING.md
CHANGED
@@ -1,38 +1,34 @@
|
|
1
1
|
# Contributing
|
2
2
|
|
3
|
-
Bug reports and pull requests are welcome on GitHub
|
4
|
-
|
3
|
+
Bug reports and pull requests are welcome on GitHub, CodeBerg, or [GitLab][🚎src-main].
|
4
|
+
This project should be a safe, welcoming space for collaboration, so contributors agree to adhere to
|
5
5
|
the [code of conduct][🤝conduct].
|
6
6
|
|
7
|
-
To submit a patch, please fork the project
|
8
|
-
Once you're happy with it send a pull request.
|
7
|
+
To submit a patch, please fork the project, create a patch with tests, and send a pull request.
|
9
8
|
|
10
|
-
|
9
|
+
Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog].
|
11
10
|
|
12
|
-
##
|
11
|
+
## Help out!
|
13
12
|
|
14
|
-
|
13
|
+
Take a look at the `reek` list which is the file called `REEK` and find something to improve.
|
14
|
+
|
15
|
+
Follow these instructions:
|
15
16
|
|
16
17
|
1. Fork the repository
|
17
|
-
2. Create
|
18
|
+
2. Create a feature branch (`git checkout -b my-new-feature`)
|
18
19
|
3. Make some fixes.
|
19
|
-
4. Commit
|
20
|
+
4. Commit changes (`git commit -am 'Added some feature'`)
|
20
21
|
5. Push to the branch (`git push origin my-new-feature`)
|
21
22
|
6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
|
22
23
|
7. Create new Pull Request.
|
23
24
|
|
24
25
|
## Appraisals
|
25
26
|
|
26
|
-
From time to time the
|
27
|
+
From time to time the Appraisal2 gemfiles in `gemfiles/` will need to be updated.
|
27
28
|
They are created and updated with the commands:
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
|
32
|
-
|
33
|
-
```shell
|
34
|
-
BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
|
35
|
-
BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
|
30
|
+
```console
|
31
|
+
bin/rake appraisal:update
|
36
32
|
```
|
37
33
|
|
38
34
|
When adding an appraisal to CI check the [runner tool cache][🏃♂️runner-tool-cache] to see which runner to use.
|
@@ -43,7 +39,7 @@ Take a look at the `reek` list which is the file called `REEK` and find somethin
|
|
43
39
|
|
44
40
|
To refresh the `reek` list:
|
45
41
|
|
46
|
-
```
|
42
|
+
```console
|
47
43
|
bundle exec reek > REEK
|
48
44
|
```
|
49
45
|
|
@@ -51,7 +47,7 @@ bundle exec reek > REEK
|
|
51
47
|
|
52
48
|
To run all tests
|
53
49
|
|
54
|
-
```
|
50
|
+
```console
|
55
51
|
bundle exec rake test
|
56
52
|
```
|
57
53
|
|
@@ -59,16 +55,29 @@ bundle exec rake test
|
|
59
55
|
|
60
56
|
Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
|
61
57
|
|
62
|
-
```
|
58
|
+
```console
|
63
59
|
bundle exec rake
|
64
60
|
```
|
65
61
|
|
66
62
|
Or just run the linter.
|
67
63
|
|
68
|
-
```
|
64
|
+
```console
|
69
65
|
bundle exec rake rubocop_gradual:autocorrect
|
70
66
|
```
|
71
67
|
|
68
|
+
For more detailed information about using RuboCop in this project, please see the [RUBOCOP.md](RUBOCOP.md) guide. This project uses `rubocop_gradual` instead of vanilla RuboCop, which requires specific commands for checking violations.
|
69
|
+
|
70
|
+
### Important: Do not add inline RuboCop disables
|
71
|
+
|
72
|
+
Never add `# rubocop:disable ...` / `# rubocop:enable ...` comments to code or specs (except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). Instead:
|
73
|
+
|
74
|
+
- Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
|
75
|
+
- When a violation is temporary and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
|
76
|
+
- `bundle exec rake rubocop_gradual:autocorrect` (preferred)
|
77
|
+
- `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
|
78
|
+
|
79
|
+
As a general rule, fix style issues rather than ignoring them. For example, our specs should follow RSpec conventions like using `described_class` for the class under test.
|
80
|
+
|
72
81
|
## Contributors
|
73
82
|
|
74
83
|
Your picture could be here!
|
@@ -77,55 +86,67 @@ Your picture could be here!
|
|
77
86
|
|
78
87
|
Made with [contributors-img][🖐contrib-rocks].
|
79
88
|
|
80
|
-
Also see GitLab Contributors: [https://gitlab.com/
|
89
|
+
Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/rspec-pending_for/-/graphs/main][🚎contributors-gl]
|
81
90
|
|
82
91
|
## For Maintainers
|
83
92
|
|
84
93
|
### One-time, Per-maintainer, Setup
|
85
94
|
|
86
|
-
**IMPORTANT**:
|
87
|
-
|
88
|
-
|
95
|
+
**IMPORTANT**: If you want to sign the build you create,
|
96
|
+
your public key for signing gems will need to be picked up by the line in the
|
97
|
+
`gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
|
98
|
+
All releases to RubyGems.org will be signed.
|
89
99
|
See: [RubyGems Security Guide][🔒️rubygems-security-guide]
|
90
100
|
|
101
|
+
NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some value in your environment.
|
102
|
+
|
91
103
|
### To release a new version:
|
92
104
|
|
93
|
-
|
105
|
+
#### Automated process
|
106
|
+
|
107
|
+
Run `kettle-release`.
|
108
|
+
|
109
|
+
#### Manual process
|
110
|
+
|
111
|
+
1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
|
94
112
|
2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
|
95
113
|
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
96
114
|
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
97
|
-
5. Run `git push` to trigger the final CI pipeline before release,
|
98
|
-
|
115
|
+
5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
|
116
|
+
- NOTE: Remember to [check the build][🧪build].
|
99
117
|
6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
|
100
118
|
7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
|
101
|
-
8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure
|
102
|
-
9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
119
|
+
8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
|
120
|
+
9. Optional for older Bundler (< 2.7.0): Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use the same timestamp and generate the same checksums
|
121
|
+
- If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
|
122
|
+
- Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
|
123
|
+
- If the echo above has no output, then it didn't work.
|
124
|
+
- Note: `zsh/datetime` module is needed, if running `zsh`.
|
125
|
+
- In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
|
107
126
|
10. Run `bundle exec rake build`
|
108
|
-
11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr]
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
[
|
116
|
-
|
127
|
+
11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
|
128
|
+
to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
|
129
|
+
[gem][💎stone_checksums].
|
130
|
+
- The script automatically commits but does not push the checksums
|
131
|
+
12. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
|
132
|
+
- `sha256sum pkg/<gem name>-<version>.gem`
|
133
|
+
13. Run `bundle exec rake release` which will create a git tag for the version,
|
134
|
+
push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
|
135
|
+
|
136
|
+
[🚎src-main]: https://gitlab.com/galtzo-floss/rspec-pending_for
|
137
|
+
[🧪build]: https://github.com/galtzo-floss/rspec-pending_for/actions
|
138
|
+
[🤝conduct]: https://gitlab.com/galtzo-floss/rspec-pending_for/-/blob/main/CODE_OF_CONDUCT.md
|
117
139
|
[🖐contrib-rocks]: https://contrib.rocks
|
118
|
-
[🖐contributors]: https://github.com/
|
119
|
-
[🚎contributors-gl]: https://gitlab.com/
|
120
|
-
[🖐contributors-img]: https://contrib.rocks/image?repo=
|
140
|
+
[🖐contributors]: https://github.com/galtzo-floss/rspec-pending_for/graphs/contributors
|
141
|
+
[🚎contributors-gl]: https://gitlab.com/galtzo-floss/rspec-pending_for/-/graphs/main
|
142
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=galtzo-floss/rspec-pending_for
|
121
143
|
[💎rubygems]: https://rubygems.org
|
122
144
|
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
123
145
|
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
|
124
146
|
[🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
|
147
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
125
148
|
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
126
149
|
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
127
150
|
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
128
151
|
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
129
|
-
[🚎appraisal-eval-gemfile-pr]: https://github.com/thoughtbot/appraisal/pull/248
|
130
|
-
[🚎appraisal-fork]: https://github.com/pboling/appraisal/tree/galtzo
|
131
152
|
[🏃♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
|