rspec-pending_for 0.1.16 → 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 +50 -0
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +24 -23
- data/CONTRIBUTING.md +152 -0
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.md +535 -100
- data/REEK +0 -0
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +21 -0
- data/lib/rspec/pending_for/build.rb +81 -32
- data/lib/rspec/pending_for/rspec.rb +3 -2
- data/lib/rspec/pending_for/version.rb +6 -1
- data/lib/rspec/pending_for.rb +30 -7
- data/lib/rspec-pending_for.rb +1 -0
- data.tar.gz.sig +5 -0
- metadata +156 -39
- metadata.gz.sig +3 -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
ADDED
Binary file
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
[![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
|
4
|
+
|
5
|
+
All notable changes to this project will be documented in this file.
|
6
|
+
|
7
|
+
The format is based on [Keep a Changelog][📗keep-changelog],
|
8
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
9
|
+
and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
|
10
|
+
Please file a bug if you notice a violation of semantic versioning.
|
11
|
+
|
12
|
+
[📌semver]: https://semver.org/spec/v2.0.0.html
|
13
|
+
[📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
|
14
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
15
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
16
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
17
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
18
|
+
|
19
|
+
## [Unreleased]
|
20
|
+
### Added
|
21
|
+
### Changed
|
22
|
+
### Deprecated
|
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!
|
34
|
+
|
35
|
+
## [0.1.17] - 2025-02-24 ([tag][0.1.17t])
|
36
|
+
- TAG: [v0.1.7][0.1.17t]
|
37
|
+
- COVERAGE: 98.44% -- 63/64 lines in 6 files
|
38
|
+
- BRANCH COVERAGE: 94.44% -- 17/18 branches in 6 files
|
39
|
+
- 63.64% documented
|
40
|
+
### Added
|
41
|
+
- Specs for `skip_for`
|
42
|
+
### Fixed
|
43
|
+
- Compatibility with truffleruby (maybe? not able to run it in CI yet)
|
44
|
+
- Fixed compatibility with Ruby < 2
|
45
|
+
|
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
|
@@ -7,8 +6,8 @@ We as members, contributors, and leaders pledge to make participation in our
|
|
7
6
|
community a harassment-free experience for everyone, regardless of age, body
|
8
7
|
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
9
8
|
identity and expression, level of experience, education, socio-economic status,
|
10
|
-
nationality, personal appearance, race, religion, or sexual
|
11
|
-
and orientation.
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
10
|
+
identity and orientation.
|
12
11
|
|
13
12
|
We pledge to act and interact in ways that contribute to an open, welcoming,
|
14
13
|
diverse, inclusive, and healthy community.
|
@@ -23,17 +22,17 @@ community include:
|
|
23
22
|
* Giving and gracefully accepting constructive feedback
|
24
23
|
* Accepting responsibility and apologizing to those affected by our mistakes,
|
25
24
|
and learning from the experience
|
26
|
-
* Focusing on what is best not just for us as individuals, but for the
|
27
|
-
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
26
|
+
community
|
28
27
|
|
29
28
|
Examples of unacceptable behavior include:
|
30
29
|
|
31
|
-
* The use of sexualized language or imagery, and sexual attention or
|
32
|
-
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
31
|
+
any kind
|
33
32
|
* Trolling, insulting or derogatory comments, and personal or political attacks
|
34
33
|
* Public or private harassment
|
35
|
-
* Publishing others' private information, such as a physical or email
|
36
|
-
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
35
|
+
without their explicit permission
|
37
36
|
* Other conduct which could reasonably be considered inappropriate in a
|
38
37
|
professional setting
|
39
38
|
|
@@ -53,7 +52,7 @@ decisions when appropriate.
|
|
53
52
|
|
54
53
|
This Code of Conduct applies within all community spaces, and also applies when
|
55
54
|
an individual is officially representing the community in public spaces.
|
56
|
-
Examples of representing our community include using an official
|
55
|
+
Examples of representing our community include using an official email address,
|
57
56
|
posting via an official social media account, or acting as an appointed
|
58
57
|
representative at an online or offline event.
|
59
58
|
|
@@ -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
|
-
[
|
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
|
@@ -83,15 +82,15 @@ behavior was inappropriate. A public apology may be requested.
|
|
83
82
|
|
84
83
|
### 2. Warning
|
85
84
|
|
86
|
-
**Community Impact**: A violation through a single incident or series
|
87
|
-
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
86
|
+
actions.
|
88
87
|
|
89
88
|
**Consequence**: A warning with consequences for continued behavior. No
|
90
89
|
interaction with the people involved, including unsolicited interaction with
|
91
90
|
those enforcing the Code of Conduct, for a specified period of time. This
|
92
91
|
includes avoiding interactions in community spaces as well as external channels
|
93
|
-
like social media. Violating these terms may lead to a temporary or
|
94
|
-
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
93
|
+
ban.
|
95
94
|
|
96
95
|
### 3. Temporary Ban
|
97
96
|
|
@@ -107,27 +106,29 @@ Violating these terms may lead to a permanent ban.
|
|
107
106
|
### 4. Permanent Ban
|
108
107
|
|
109
108
|
**Community Impact**: Demonstrating a pattern of violation of community
|
110
|
-
standards, including sustained inappropriate behavior,
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
111
110
|
individual, or aggression toward or disparagement of classes of individuals.
|
112
111
|
|
113
|
-
**Consequence**: A permanent ban from any sort of public interaction within
|
114
|
-
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
113
|
+
community.
|
115
114
|
|
116
115
|
## Attribution
|
117
116
|
|
118
117
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
119
|
-
version 2.
|
120
|
-
[https://www.contributor-covenant.org/version/2/
|
118
|
+
version 2.1, available at
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
121
120
|
|
122
121
|
Community Impact Guidelines were inspired by
|
123
122
|
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
124
123
|
|
125
124
|
For answers to common questions about this code of conduct, see the FAQ at
|
126
|
-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
|
127
|
-
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
128
127
|
|
129
128
|
[homepage]: https://www.contributor-covenant.org
|
130
|
-
[v2.
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
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
|
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
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
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
|
+
the [code of conduct][🤝conduct].
|
6
|
+
|
7
|
+
To submit a patch, please fork the project, create a patch with tests, and send a pull request.
|
8
|
+
|
9
|
+
Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog].
|
10
|
+
|
11
|
+
## Help out!
|
12
|
+
|
13
|
+
Take a look at the `reek` list which is the file called `REEK` and find something to improve.
|
14
|
+
|
15
|
+
Follow these instructions:
|
16
|
+
|
17
|
+
1. Fork the repository
|
18
|
+
2. Create a feature branch (`git checkout -b my-new-feature`)
|
19
|
+
3. Make some fixes.
|
20
|
+
4. Commit changes (`git commit -am 'Added some feature'`)
|
21
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
22
|
+
6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
|
23
|
+
7. Create new Pull Request.
|
24
|
+
|
25
|
+
## Appraisals
|
26
|
+
|
27
|
+
From time to time the Appraisal2 gemfiles in `gemfiles/` will need to be updated.
|
28
|
+
They are created and updated with the commands:
|
29
|
+
|
30
|
+
```console
|
31
|
+
bin/rake appraisal:update
|
32
|
+
```
|
33
|
+
|
34
|
+
When adding an appraisal to CI check the [runner tool cache][🏃♂️runner-tool-cache] to see which runner to use.
|
35
|
+
|
36
|
+
## The Reek List
|
37
|
+
|
38
|
+
Take a look at the `reek` list which is the file called `REEK` and find something to improve.
|
39
|
+
|
40
|
+
To refresh the `reek` list:
|
41
|
+
|
42
|
+
```console
|
43
|
+
bundle exec reek > REEK
|
44
|
+
```
|
45
|
+
|
46
|
+
## Run Tests
|
47
|
+
|
48
|
+
To run all tests
|
49
|
+
|
50
|
+
```console
|
51
|
+
bundle exec rake test
|
52
|
+
```
|
53
|
+
|
54
|
+
## Lint It
|
55
|
+
|
56
|
+
Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
|
57
|
+
|
58
|
+
```console
|
59
|
+
bundle exec rake
|
60
|
+
```
|
61
|
+
|
62
|
+
Or just run the linter.
|
63
|
+
|
64
|
+
```console
|
65
|
+
bundle exec rake rubocop_gradual:autocorrect
|
66
|
+
```
|
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
|
+
|
81
|
+
## Contributors
|
82
|
+
|
83
|
+
Your picture could be here!
|
84
|
+
|
85
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
86
|
+
|
87
|
+
Made with [contributors-img][🖐contrib-rocks].
|
88
|
+
|
89
|
+
Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/rspec-pending_for/-/graphs/main][🚎contributors-gl]
|
90
|
+
|
91
|
+
## For Maintainers
|
92
|
+
|
93
|
+
### One-time, Per-maintainer, Setup
|
94
|
+
|
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.
|
99
|
+
See: [RubyGems Security Guide][🔒️rubygems-security-guide]
|
100
|
+
|
101
|
+
NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some value in your environment.
|
102
|
+
|
103
|
+
### To release a new version:
|
104
|
+
|
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
|
112
|
+
2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
|
113
|
+
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
114
|
+
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
115
|
+
5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
|
116
|
+
- NOTE: Remember to [check the build][🧪build].
|
117
|
+
6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
|
118
|
+
7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
|
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`
|
126
|
+
10. Run `bundle exec rake build`
|
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
|
139
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
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
|
143
|
+
[💎rubygems]: https://rubygems.org
|
144
|
+
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
145
|
+
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
|
146
|
+
[🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
|
147
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
148
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
149
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
150
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
151
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
152
|
+
[🏃♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
|
data/{LICENSE → LICENSE.txt}
RENAMED