floss_funding 1.0.0.pre.alpha.1

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: b45daa39a243f7b6fd37bcc70d1f01c8c2d373cc2b3e5cfd34f51dea19bb22a5
4
+ data.tar.gz: e54d87904228a79996f45e3e37a11679ea39b860ef67cc38bcf701667927ca69
5
+ SHA512:
6
+ metadata.gz: 54bc48b6c013465b5e52ddfe5e15cd8230980b529c4570547471e8f3ebd1a904afde8997b99aa03e35653be3957a751cfa19bdd7ba1075f38c89df6e9fd138e9
7
+ data.tar.gz: d1620ef3a2894f44334a3d689054492a9d1263aeeb04e236ad8d74ab0fcd77e40e1e7745ac757a8e78b7fff5ebe00f071b4f0e7913f5bb6275d0ed2c79f6c39e
checksums.yaml.gz.sig ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,25 @@
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-alpha.1] - 2025-08-08
16
+ - TAG: [v1.0.0-alpha.1][1.0.0-alpha.1t]
17
+ - COVERAGE: 100.00% -- 262/262 lines in 6 files
18
+ - BRANCH COVERAGE: 100.00% -- 85/85 branches in 6 files
19
+ - 100.00% documented
20
+ ### Added
21
+ - Initial release
22
+
23
+ [Unreleased]: https://gitlab.com/galtzo-floss/floss_funding/-/compare/v1.0.0-alpha.1...main
24
+ [1.0.0-alpha.1]: https://gitlab.com/galtzo-floss/floss_funding/-/compare/389ece6fb9bd04013d11edca6fb6830139a84f4c...v1.0.0-alpha.1
25
+ [1.0.0-alpha.1t]: https://gitlab.com/galtzo-floss/floss_funding/-/tags/v1.0.0-alpha.1
@@ -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 Maintainer][🚂maint-contact-img]][🚂maint-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
+ [🚂maint-contact]: http://www.railsbling.com/contact
135
+ [🚂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,134 @@
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
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
32
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
33
+ bundle exec rake rubocop_gradual:autocorrect
34
+ ```
35
+
36
+ When adding an appraisal to CI check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
37
+
38
+ ## The Reek List
39
+
40
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
41
+
42
+ To refresh the `reek` list:
43
+
44
+ ```console
45
+ bundle exec reek > REEK
46
+ ```
47
+
48
+ ## Run Tests
49
+
50
+ To run all tests
51
+
52
+ ```console
53
+ bundle exec rake test
54
+ ```
55
+
56
+ ## Lint It
57
+
58
+ Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
59
+
60
+ ```console
61
+ bundle exec rake
62
+ ```
63
+
64
+ Or just run the linter.
65
+
66
+ ```console
67
+ bundle exec rake rubocop_gradual:autocorrect
68
+ ```
69
+
70
+ 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.
71
+
72
+ ## Contributors
73
+
74
+ Your picture could be here!
75
+
76
+ [![Contributors][🖐contributors-img]][🖐contributors]
77
+
78
+ Made with [contributors-img][🖐contrib-rocks].
79
+
80
+ Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/floss_funding/-/graphs/main][🚎contributors-gl]
81
+
82
+ ## For Maintainers
83
+
84
+ ### One-time, Per-maintainer, Setup
85
+
86
+ **IMPORTANT**: If you want to sign the build you create,
87
+ your public key for signing gems will need to be picked up by the line in the
88
+ `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
89
+ All releases to RubyGems.org will be signed.
90
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
91
+
92
+ NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some value in your environment.
93
+
94
+ ### To release a new version:
95
+
96
+ 1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
97
+ 2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
98
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
99
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
100
+ 5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
101
+ - NOTE: Remember to [check the build][🧪build].
102
+ 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
103
+ 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
104
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
105
+ 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
106
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
107
+ - If the echo above has no output, then it didn't work.
108
+ - Note: `zsh/datetime` module is needed, if running `zsh`.
109
+ - In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
110
+ 10. Run `bundle exec rake build`
111
+ 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
112
+ to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
113
+ [gem][💎stone_checksums].
114
+ - The script automatically commits but does not push the checksums
115
+ 12. Run `bundle exec rake release` which will create a git tag for the version,
116
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
117
+
118
+ [🚎src-main]: https://gitlab.com/galtzo-floss/floss_funding
119
+ [🧪build]: https://github.com/galtzo-floss/floss_funding/actions
120
+ [🤝conduct]: https://gitlab.com/galtzo-floss/floss_funding/-/blob/main/CODE_OF_CONDUCT.md
121
+ [🖐contrib-rocks]: https://contrib.rocks
122
+ [🖐contributors]: https://github.com/galtzo-floss/floss_funding/graphs/contributors
123
+ [🚎contributors-gl]: https://gitlab.com/galtzo-floss/floss_funding/-/graphs/main
124
+ [🖐contributors-img]: https://contrib.rocks/image?repo=galtzo-floss/floss_funding
125
+ [💎rubygems]: https://rubygems.org
126
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
127
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
128
+ [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
129
+ [💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
130
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
131
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
132
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
133
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
134
+ [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
data/LICENSE.txt ADDED
@@ -0,0 +1,19 @@
1
+ Copyright © 2025 Peter Boling, floss-funding.dev
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.