appraisal2 3.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 48c10cc390c3e867c853049163f6aace2a3980439f6fae81dc6c689131b431a4
4
+ data.tar.gz: 2db45bd980fc49813d3f4f70dd40dc604b492b6ff8e6954eb93f2b71a4aa9b52
5
+ SHA512:
6
+ metadata.gz: d74930e7289feb1f3731044f42616a71fe8da8d6c899929dedff8e3381dfcf6bd7c5481413c4086d508bd5c10668e29540d86a30ef6f65b74a87887043b3af85
7
+ data.tar.gz: 73a486be485a24ab59234bd0dd97bf93b3c388a1f5c46fcbc73a6809ff248571e81380d009560fe9937e16aa4654bc812b3e81fd1d6ece9caa5f2085d9201720
checksums.yaml.gz.sig ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ This file documents all notable changes to this project.
4
+
5
+ Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+ ### Added
10
+ ### Changed
11
+ ### Deprecated
12
+ ### Removed
13
+ ### Fixed
14
+ ### Security
15
+
16
+ ## [3.0.0] - 2025-07-27
17
+ - Initial release as hard fork, from [appraisal v3.0.0.rc1](https://github.com/thoughtbot/appraisal/commit/602cdd9b5f8cb8f36992733422f69312b172f427), with many improvements - by @pboling
18
+ - support for `eval_gemfile`
19
+ - support for Ruby 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6 (all removed, or planned-to-be, in thoughtbot's `appraisal`)
20
+ - NOTE: The [setup-ruby GH Action](https://github.com/ruby/setup-ruby) only ships support for Ruby 2.3+, so older Rubies are no longer tested in CI. Compatibility is assumed thanks to [![Enforced Code Style Linter][💎rlts-img]](https://github.com/rubocop-lts/rubocop-lts) enforcing the syntax for the oldest supported Ruby, which is Ruby v1.8. File a bug if you find something broken.
21
+ - Support for JRuby 9.4+
22
+ - updated and improved documentation
23
+ - maintainability tracked with QLTY.sh and the reek gem
24
+ - code coverage tracked with Coveralls, QLTY.sh, and the kettle-soup-cover gem
25
+ - other minor fixes and improvements
26
+
27
+ [Unreleased]: https://gitlab.com/appraisal-rb/appraisal2/-/compare/v3.0.0...HEAD
28
+ [3.0.0]: https://gitlab.com/appraisal-rb/appraisal2/-/compare/602cdd9b5f8cb8f36992733422f69312b172f427...v3.0.0
@@ -0,0 +1,135 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, caste, color, religion, or sexual
11
+ identity and orientation.
12
+
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
15
+
16
+ ## Our Standards
17
+
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the overall
27
+ community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or advances of
32
+ any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email address,
36
+ without their explicit permission
37
+ * Other conduct which could reasonably be considered inappropriate in a
38
+ professional setting
39
+
40
+ ## Enforcement Responsibilities
41
+
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
46
+
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
51
+
52
+ ## Scope
53
+
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official email address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
59
+
60
+ ## Enforcement
61
+
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact].
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series of
87
+ actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or permanent
94
+ ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within the
114
+ community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.1, available at
120
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ 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 at
127
+ [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
134
+ [🚂bdfl-contact]: http://www.railsbling.com/contact
135
+ [🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,136 @@
1
+ # Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/appraisal-rb/appraisal2][🚎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.
8
+ Once you're happy with it send a pull request.
9
+
10
+ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
11
+
12
+ ## You can help!
13
+
14
+ Simply follow these instructions:
15
+
16
+ 1. Join the Discord: [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite]
17
+ 2. Fork the repository
18
+ 3. Create your feature branch (`git checkout -b my-new-feature`)
19
+ 4. Make some fixes.
20
+ 5. Commit your changes (`git commit -am 'Added some feature'`)
21
+ 6. Push to the branch (`git push origin my-new-feature`)
22
+ 7. Make sure to add tests for it. This is important, so it doesn't break in a future release.
23
+ 8. Run the at least one workflow of tests via `act`, e.g.,:
24
+ ```console
25
+ act -W '.github/workflows/ruby-3-3.yml'
26
+ ```
27
+ NOTE: Because there are so many workflows, running `act` naked might grind your machine to a halt.
28
+ 9. Create new Pull Request.
29
+ 10. Announce it in the channel for this org in the [Discord][✉️discord-invite]!
30
+
31
+ NOTE: Run tests with `act` to have confidence they will pass in CI.
32
+ Also, because the spec run makes many changes to local bundle config,
33
+ many specs will fail locally in subsequent runs unless run via `act`.
34
+ The spec suite is not idempotent. This is a goal for the future, if you'd like to work on it.
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 against the current Ruby release:
49
+
50
+ ```console
51
+ bundle exec rake act
52
+ ```
53
+
54
+ Or the equivalent:
55
+
56
+ ```console
57
+ act -W '.github/workflows/current.yml'
58
+ ```
59
+ NOTE: Because there are so many workflows, running `act` naked might grind your machine to a halt.
60
+
61
+ ## Lint It
62
+
63
+ Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
64
+
65
+ ```console
66
+ bundle exec rake
67
+ ```
68
+
69
+ Or just run the linter.
70
+
71
+ ```console
72
+ bundle exec rake rubocop_gradual:autocorrect
73
+ ```
74
+
75
+ ## Contributors
76
+
77
+ Your picture could be here!
78
+
79
+ [![Contributors][🖐contributors-img]][🖐contributors]
80
+
81
+ Made with [contributors-img][🖐contrib-rocks].
82
+
83
+ Also see GitLab Contributors: [https://gitlab.com/appraisal-rb/appraisal2/-/graphs/main][🚎contributors-gl]
84
+
85
+ ## For Maintainers
86
+
87
+ ### One-time, Per-maintainer, Setup
88
+
89
+ **IMPORTANT**: If you want to sign the build you create,
90
+ your public key for signing gems will need to be picked up by the line in the
91
+ `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
92
+ All releases to RubyGems.org will be signed.
93
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
94
+
95
+ NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some value in your environment.
96
+
97
+ ### To release a new version:
98
+
99
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
100
+ 2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
101
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
102
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
103
+ 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
104
+ - NOTE: Remember to [check the build][🧪build]!
105
+ 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
106
+ 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
107
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
108
+ 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
109
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
110
+ - If the echo above has no output, then it didn't work.
111
+ - Note that you'll need the `zsh/datetime` module, if running `zsh`.
112
+ - In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
113
+ 10. Run `bundle exec rake build`
114
+ 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
115
+ to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
116
+ [gem][💎stone_checksums].
117
+ - Checksums will be committed automatically by the script, but not pushed
118
+ 12. Run `bundle exec rake release` which will create a git tag for the version,
119
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
120
+
121
+ [🚎src-main]: https://gitlab.com/appraisal-rb/appraisal2
122
+ [🧪build]: https://github.com/appraisal-rb/appraisal2/actions
123
+ [🤝conduct]: https://gitlab.com/appraisal-rb/appraisal2/-/blob/main/CODE_OF_CONDUCT.md
124
+ [🖐contrib-rocks]: https://contrib.rocks
125
+ [🖐contributors]: https://github.com/appraisal-rb/appraisal2/graphs/contributors
126
+ [🚎contributors-gl]: https://gitlab.com/appraisal-rb/appraisal2/-/graphs/main
127
+ [🖐contributors-img]: https://contrib.rocks/image?repo=appraisal-rb/appraisal2
128
+ [💎rubygems]: https://rubygems.org
129
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
130
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
131
+ [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
132
+ [💎stone_checksums]: https://github.com/pboling/stone_checksums
133
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
134
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
135
+ [✉️discord-invite]: https://discord.gg/3qme4XHNKN
136
+ [✉️discord-invite-img]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2010 - 2013 Joe Ferris and thoughtbot, inc.
4
+ Copyright (c) 2024 - 2025 Peter H. Boling (Galtzo.com)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.