rspec-block_is_expected 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +47 -3
  4. data/CODE_OF_CONDUCT.md +57 -47
  5. data/CONTRIBUTING.md +51 -0
  6. data/{LICENSE → LICENSE.txt} +1 -1
  7. data/README.md +236 -99
  8. data/SECURITY.md +13 -0
  9. data/lib/rspec/block_is_expected/matchers/not.rb +4 -4
  10. data/lib/rspec/block_is_expected/rspec.rb +7 -7
  11. data/lib/rspec/block_is_expected/shared_examples/block_does_not_raise_examples.rb +5 -0
  12. data/lib/rspec/block_is_expected/shared_examples/block_raises_error_examples.rb +5 -0
  13. data/lib/rspec/block_is_expected/version.rb +1 -1
  14. data/lib/rspec/block_is_expected.rb +2 -2
  15. data.tar.gz.sig +0 -0
  16. metadata +54 -84
  17. metadata.gz.sig +0 -0
  18. data/.gitignore +0 -15
  19. data/.rspec +0 -3
  20. data/.rubocop.yml +0 -52
  21. data/.rubocop_todo.yml +0 -32
  22. data/.tool-versions +0 -1
  23. data/.travis.yml +0 -61
  24. data/Appraisals +0 -32
  25. data/Gemfile +0 -22
  26. data/Gemfile.lock +0 -107
  27. data/Rakefile +0 -29
  28. data/bin/console +0 -14
  29. data/bin/setup +0 -8
  30. data/gemfiles/jruby_1.7.26.gemfile +0 -16
  31. data/gemfiles/jruby_9.1.9.0.gemfile +0 -15
  32. data/gemfiles/jruby_9.2.0.0.gemfile +0 -15
  33. data/gemfiles/jruby_head.gemfile +0 -15
  34. data/gemfiles/ruby_1.8.7_p374.gemfile +0 -16
  35. data/gemfiles/ruby_1.9.3_p551.gemfile +0 -16
  36. data/gemfiles/ruby_2.0.0_p648.gemfile +0 -16
  37. data/gemfiles/ruby_2.1.10.gemfile +0 -15
  38. data/gemfiles/ruby_2.2.10.gemfile +0 -16
  39. data/gemfiles/ruby_2.3.7.gemfile +0 -16
  40. data/gemfiles/ruby_2.4.4.gemfile +0 -16
  41. data/gemfiles/ruby_2.5.1.gemfile +0 -16
  42. data/gemfiles/ruby_head.gemfile +0 -16
  43. data/rspec-block_is_expected.gemspec +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a811433ebee4f90c89a910b8943d64eebf7382707a7cc816ac98457111d4c1de
4
- data.tar.gz: 46988de21adb0276656dbdc4a08dcccda9130898b6a6f312da05e6764b680661
3
+ metadata.gz: 29d909e2873766b37f4471c2aed8edf9078432b514f964ae8cab5e534e89a4e2
4
+ data.tar.gz: e83daabfe2ba4bf79bb085c816b02bf033e9367285d52a315db41a0b7ed9fc6c
5
5
  SHA512:
6
- metadata.gz: 9670493137ff9827d1b72de9c29e2c317923d34040e6ad681183ea1bec578481b9f31c21a5173f7c8fa35929b6e9373ba8296cf4a043c78d5511e3f9672129ee
7
- data.tar.gz: 63af4754c61daf83d23eae24f853f7ed91ba05c741c8f4f0ca772e96040f56d22bd0ef76ebee9188bdfca0ee37a62caa7ac1412080a696842183d46424630031
6
+ metadata.gz: e2ddbefcfec8932992996837096e1f64af24ff09a1777fa278d6f880ca3c553758d0f8b3edf841bb0dd4efa4a0855a9a36392a7a1a2c774dd4185f863705d192
7
+ data.tar.gz: 9adad062146654efa05b2cfb61706afead7a763b9c8b52a153b824cf5550f16b17116c000f97093c90691b89c1a2a0becc145edc96a2e335254084edbfe3bf04
checksums.yaml.gz.sig ADDED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Changelog
2
- All notable changes to this project will be documented in this file.
2
+ All notable changes to this project since v1.0.3 will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog v1](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.0.0.html).
@@ -10,16 +10,60 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
- ## [1.0.4] - 2023-03-23
13
+ ## [1.0.6] 2024-06-23 ([tag][1.0.6t])
14
+ ### Added
15
+ - Security policy (SECURITY.md)
16
+ - Random ordering of test suite
17
+ - shared examples:
18
+ - `block_is_expected to not raise`
19
+ - `block_is_expected to raise error`
20
+ - Appraisals for testing on every Ruby supported by GHA (2.0 - 3.3)
21
+ - Signed release
22
+
23
+ ## [1.0.5] - 2023-04-01 ([tag][1.0.5t])
24
+ ### Added
25
+ - Structured gemfiles
26
+ - Rubocop with standard, gradual, & more
27
+ - Releases are now signed
28
+ - Releases now have checksums
29
+ ### Changed
30
+ - TravisCI => GitHub Actions
31
+ - CODE_OF_CONDUCT.md upgraded to v2.0
32
+ - Moved from master to main default branch
33
+ ### Fixed
34
+ - README Badges (CI status)
35
+
36
+ ## [1.0.4] - 2023-03-23 ([tag][1.0.4t])
14
37
  ### Added
15
38
  - Required ruby version in gemspec >= 1.8.7
39
+ - not bumping major version, because this was already the de-facto minimum
16
40
  ### Changed
17
41
  - Moved rubocop config to root
18
42
  ### Fixed
19
43
  - documentation of rubocop config
20
44
  - Copyright years
21
45
 
22
- ## [1.0.3] - 2023-03-23
46
+ ## [1.0.3] - 2023-03-23 ([tag][1.0.3t])
23
47
  ### Added
24
48
  - negated matchers
25
49
  - rubocop config
50
+
51
+ ## [1.0.2] - 2018-10-03
52
+
53
+ ## [1.0.1] - 2018-10-01
54
+
55
+ ## 1.0.0 - 2018-10-01
56
+ ### Added
57
+ - Initial Release
58
+
59
+ [Unreleased]: https://github.com/pboling/rspec-block_is_expected/compare/v1.0.6...HEAD
60
+ [1.0.6]: https://github.com/pboling/rspec-block_is_expected/compare/v1.0.5...v1.0.6
61
+ [1.0.6t]: https://github.com/pboling/rspec-block_is_expected/tags/v1.0.6
62
+ [1.0.5]: https://github.com/pboling/rspec-block_is_expected/compare/v1.0.4...v1.0.5
63
+ [1.0.5t]: https://github.com/pboling/rspec-block_is_expected/tags/v1.0.5
64
+ [1.0.4]: https://github.com/pboling/rspec-block_is_expected/compare/v1.0.3...v1.0.4
65
+ [1.0.4t]: https://github.com/pboling/rspec-block_is_expected/tags/v1.0.4
66
+ [1.0.3]: https://github.com/pboling/rspec-block_is_expected/compare/v1.0.2...v1.0.3
67
+ [1.0.3t]: https://github.com/pboling/rspec-block_is_expected/tags/v1.0.3
68
+ [1.0.2]: https://github.com/pboling/rspec-block_is_expected/compare/v1.0.1...v1.0.2
69
+ [1.0.1]: https://github.com/pboling/rspec-block_is_expected/compare/v1.0.0...v1.0.1
data/CODE_OF_CONDUCT.md CHANGED
@@ -2,73 +2,83 @@
2
2
 
3
3
  ## Our Pledge
4
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, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
11
8
 
12
9
  ## Our Standards
13
10
 
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
11
+ Examples of behavior that contributes to a positive environment for our community include:
16
12
 
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
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
22
18
 
23
- Examples of unacceptable behavior by participants include:
19
+ Examples of unacceptable behavior include:
24
20
 
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
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
28
24
  * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
31
27
  * Other conduct which could reasonably be considered inappropriate in a
32
28
  professional setting
33
29
 
34
- ## Our Responsibilities
30
+ ## Enforcement Responsibilities
35
31
 
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.
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
39
33
 
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.
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
45
35
 
46
36
  ## Scope
47
37
 
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.
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
54
39
 
55
40
  ## Enforcement
56
41
 
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at peter.boling@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.
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
63
59
 
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.
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
67
73
 
68
74
  ## Attribution
69
75
 
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
72
82
 
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,51 @@
1
+ ## Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/pboling/rspec-block_is_expected][🚎src-main]
4
+ . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
5
+ the [code of conduct][🤝conduct].
6
+
7
+ To submit a patch, please fork the project and create a patch with tests. Once you're happy with it send a pull request
8
+ and post a message to the [gitter chat][🏘chat].
9
+
10
+ ## Release
11
+
12
+ To release a new version:
13
+
14
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
15
+ 2. Update the version number in `version.rb`
16
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
17
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
18
+ 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
19
+ a. NOTE: Remember to [check the build][🧪build]!
20
+ 6. Run `git checkout main`
21
+ 7. Run `git pull origin main` to ensure you will release the latest trunk code.
22
+ 8. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
23
+ a. Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
24
+ b. If the echo above has no output, then it didn't work.
25
+ c. Note that you'll need the `zsh/datetime` module, if running `zsh`.
26
+ 9. Run `bundle exec rake build`
27
+ 10. Run [`bin/checksums`][🔒️rubygems-checksums-pr] to create SHA-256 and SHA-512 checksums
28
+ a. Checksums will be committed automatically by the script, but not pushed
29
+ 11. Run `bundle exec rake release` which will create a git tag for the version,
30
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
31
+
32
+ NOTE: You will need to have a public key in `certs/`, and list your cert in the
33
+ `gemspec`, in order to sign the new release.
34
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
35
+
36
+ ## Contributors
37
+
38
+ [![Contributors][🖐contributors-img]][🖐contributors]
39
+
40
+ Made with [contributors-img][🖐contrib-rocks].
41
+
42
+ [🧪build]: https://github.com/pboling/rspec-block_is_expected/actions
43
+ [🏘chat]: https://matrix.to/#/%23pboling_rspec-block_is_expected:gitter.im
44
+ [🤝conduct]: https://github.com/pboling/rspec-block_is_expected/blob/main/CODE_OF_CONDUCT.md
45
+ [🖐contrib-rocks]: https://contrib.rocks
46
+ [🖐contributors]: https://github.com/pboling/rspec-block_is_expected/graphs/contributors
47
+ [🖐contributors-img]: https://contrib.rocks/image?repo=pboling/rspec-block_is_expected
48
+ [💎rubygems]: https://rubygems.org
49
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
50
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/guides/pull/325
51
+ [🚎src-main]: https://github.com/pboling/rspec-block_is_expected
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018, 2020, 2023 Peter H. Boling of RailsBling.com
1
+ Copyright © 2018, 2020, 2023 - 2024 Peter H. Boling of RailsBling.com
2
2
 
3
3
  MIT License
4
4