shields-badge 1.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: '094f6de22862b2111b2491f43f95b80e9f57ebb3eacacb342d51bcfe16fbb2b3'
4
+ data.tar.gz: 31cc6e753be19273cda6ef68340ff0ac0a75c3cbfc4fa896fdd2dd93ddaf8efe
5
+ SHA512:
6
+ metadata.gz: 90a71bcc9c4ceb4574180b9b0a9c64f56e26fb0e26b2c0b41a745dc6b6f6384d48706c291fc875a92ddd60e4601355e582c1927e7eb3c2c1f5e048d84b4c0645
7
+ data.tar.gz: 93786920c8d68cad1f8720f9a2d9145ae12e09a5f4ecb1069d7f32a09d3cc75e0a6b05a3e18d68ac6d21725ffcd355061dec42f10e38e612267de5c933234a39
checksums.yaml.gz.sig ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,31 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog v1](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+ ### Added
9
+ ### Changed
10
+ ### Deprecated
11
+ ### Removed
12
+ ### Fixed
13
+ ### Security
14
+
15
+ ## [1.0.0] - 2025-05-29
16
+ - TAG: [v1.0.0][1.0.0t]
17
+ - Line Coverage: 99.45% (360 / 362)
18
+ - Branch Coverage: 94.29% (33 / 35)
19
+ 27.12% documented
20
+ ### Added
21
+ - Initial release
22
+ - Badge: Activity - `GithubCommitsSinceLatestRelease`
23
+ - Badge: Build - `GithubBranchCheckRuns`
24
+ - Badge: Code Coverage - `Coveralls`
25
+ - Badge: Downloads - `GemDownloadsRank`
26
+ - Badge: Downloads - `GemTotalDownloads`
27
+ - Badge: Social - `GithubRepoStars`
28
+
29
+ [Unreleased]: https://gitlab.com/galtzo-floss/shields-badge/-/compare/v1.0.0...HEAD
30
+ [1.0.0]: https://gitlab.com/galtzo-floss/shields-badge/-/compare/v1.0.0...v1.0.0
31
+ [1.0.0t]: https://gitlab.com/galtzo-floss/shields-badge/-/tags/v1.0.0
@@ -0,0 +1,133 @@
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, religion, or sexual identity
11
+ 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
27
+ overall community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or
32
+ advances of 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
36
+ address, 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 e-mail 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
+ [INSERT CONTACT METHOD].
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
87
+ of 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
94
+ permanent 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
114
+ the community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.0, available at
120
+ [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
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
127
+ at [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.0]: https://www.contributor-covenant.org/version/2/0/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
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,139 @@
1
+ ## Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/galtzo-floss/shields-badge][🚎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
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
15
+
16
+ Simply follow these instructions:
17
+
18
+ 1. Fork the repository
19
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
20
+ 3. Make some fixes.
21
+ 4. Commit your changes (`git commit -am 'Added some feature'`)
22
+ 5. Push to the branch (`git push origin my-new-feature`)
23
+ 6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
24
+ 7. Create new Pull Request.
25
+
26
+ ## Appraisals
27
+
28
+ From time to time the appraisal gemfiles in `gemfiles/` will need to be updated.
29
+ They are created and updated with the commands:
30
+
31
+ NOTE: We run on a [fork][🚎appraisal-fork] of Appraisal.
32
+
33
+ Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
34
+
35
+ ```shell
36
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
37
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
38
+ bundle exec rake rubocop_gradual:autocorrect
39
+ ```
40
+
41
+ When adding an appraisal to CI check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
42
+
43
+ ## The Reek List
44
+
45
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
46
+
47
+ To refresh the `reek` list:
48
+
49
+ ```bash
50
+ bundle exec reek > REEK
51
+ ```
52
+
53
+ ## Run Tests
54
+
55
+ To run all tests
56
+
57
+ ```bash
58
+ bundle exec rake test
59
+ ```
60
+
61
+ ## Lint It
62
+
63
+ Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
64
+
65
+ ```bash
66
+ bundle exec rake
67
+ ```
68
+
69
+ Or just run the linter.
70
+
71
+ ```bash
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/galtzo-floss/shields-badge/-/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/galtzo-floss/shields-badge
122
+ [🧪build]: https://github.com/galtzo-floss/shields-badge/actions
123
+ [🤝conduct]: https://gitlab.com/galtzo-floss/shields-badge/-/blob/main/CODE_OF_CONDUCT.md
124
+ [🖐contrib-rocks]: https://contrib.rocks
125
+ [🖐contributors]: https://github.com/galtzo-floss/shields-badge/graphs/contributors
126
+ [🚎contributors-gl]: https://gitlab.com/galtzo-floss/shields-badge/-/graphs/main
127
+ [🖐contributors-img]: https://contrib.rocks/image?repo=galtzo-floss/shields-badge
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
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
136
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
137
+ [🚎appraisal-eval-gemfile-pr]: https://github.com/thoughtbot/appraisal/pull/248
138
+ [🚎appraisal-fork]: https://github.com/pboling/appraisal/tree/galtzo
139
+ [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Peter H. Boling
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.