omniauth-identity 3.1.3 → 3.1.5

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.
data/CONTRIBUTING.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Contributing
2
2
 
3
- Bug reports and pull requests are welcome on GitHub at [https://github.com/omniauth/omniauth-identity][🚎src-main].
3
+ Bug reports and pull requests are welcome on [CodeBerg][📜src-cb], [GitLab][📜src-gl], or [GitHub][📜src-gh].
4
4
  This project should be a safe, welcoming space for collaboration, so contributors agree to adhere to
5
5
  the [code of conduct][🤝conduct].
6
6
 
7
7
  To submit a patch, please fork the project, create a patch with tests, and send a pull request.
8
8
 
9
- Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog].
9
+ Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] if you make changes.
10
10
 
11
11
  ## Help out!
12
12
 
@@ -22,20 +22,78 @@ Follow these instructions:
22
22
  6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
23
23
  7. Create new Pull Request.
24
24
 
25
- ## Appraisals
25
+ ## Executables vs Rake tasks
26
26
 
27
- From time to time the appraisal gemfiles in `gemfiles/` will need to be updated.
27
+ Executables shipped by omniauth-identity can be used with or without generating the binstubs.
28
+ They will work when omniauth-identity is installed globally (i.e., `gem install omniauth-identity`) and do not require that omniauth-identity be in your bundle.
28
29
 
29
- NOTE: The `eval_gemfile` feature comes from a [fork][🚎appraisal-fork] of Appraisal.
30
+ - kettle-changelog
31
+ - kettle-commit-msg
32
+ - omniauth-identity-setup
33
+ - kettle-dvcs
34
+ - kettle-pre-release
35
+ - kettle-readme-backers
36
+ - kettle-release
30
37
 
31
- Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
38
+ However, the rake tasks provided by omniauth-identity do require omniauth-identity to be added as a development dependency and loaded in your Rakefile.
39
+ See the full list of rake tasks in head of Rakefile
32
40
 
33
- Create or update them with the commands:
41
+ **Gemfile**
42
+ ```ruby
43
+ group :development do
44
+ gem "omniauth-identity", require: false
45
+ end
46
+ ```
34
47
 
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
48
+ **Rakefile**
49
+ ```ruby
50
+ # Rakefile
51
+ require "omniauth/identity"
52
+ ```
53
+
54
+ ## Environment Variables for Local Development
55
+
56
+ Below are the primary environment variables recognized by stone_checksums (and its integrated tools). Unless otherwise noted, set boolean values to the string "true" to enable.
57
+
58
+ General/runtime
59
+ - DEBUG: Enable extra internal logging for this library (default: false)
60
+ - REQUIRE_BENCH: Enable `require_bench` to profile requires (default: false)
61
+ - CI: When set to true, adjusts default rake tasks toward CI behavior
62
+
63
+ Coverage (kettle-soup-cover / SimpleCov)
64
+ - K_SOUP_COV_DO: Enable coverage collection (default: true in .envrc)
65
+ - K_SOUP_COV_FORMATTERS: Comma-separated list of formatters (html, xml, rcov, lcov, json, tty)
66
+ - K_SOUP_COV_MIN_LINE: Minimum line coverage threshold (integer, e.g., 100)
67
+ - K_SOUP_COV_MIN_BRANCH: Minimum branch coverage threshold (integer, e.g., 100)
68
+ - K_SOUP_COV_MIN_HARD: Fail the run if thresholds are not met (true/false)
69
+ - K_SOUP_COV_MULTI_FORMATTERS: Enable multiple formatters at once (true/false)
70
+ - K_SOUP_COV_OPEN_BIN: Path to browser opener for HTML (empty disables auto-open)
71
+ - MAX_ROWS: Limit console output rows for simplecov-console (e.g., 1)
72
+ Tip: When running a single spec file locally, you may want `K_SOUP_COV_MIN_HARD=false` to avoid failing thresholds for a partial run.
73
+
74
+ GitHub API and CI helpers
75
+ - GITHUB_TOKEN or GH_TOKEN: Token used by `ci:act` and release workflow checks to query GitHub Actions status at higher rate limits
76
+
77
+ Releasing and signing
78
+ - SKIP_GEM_SIGNING: If set, skip gem signing during build/release
79
+ - GEM_CERT_USER: Username for selecting your public cert in `certs/<USER>.pem` (defaults to $USER)
80
+ - SOURCE_DATE_EPOCH: Reproducible build timestamp. `kettle-release` will set this automatically for the session.
81
+
82
+ Git hooks and commit message helpers (exe/kettle-commit-msg)
83
+ - GIT_HOOK_BRANCH_VALIDATE: Branch name validation mode (e.g., `jira`) or `false` to disable
84
+ - GIT_HOOK_FOOTER_APPEND: Append a footer to commit messages when goalie allows (true/false)
85
+ - GIT_HOOK_FOOTER_SENTINEL: Required when footer append is enabled — a unique first-line sentinel to prevent duplicates
86
+ - GIT_HOOK_FOOTER_APPEND_DEBUG: Extra debug output in the footer template (true/false)
87
+
88
+ For a quick starting point, this repository’s `.envrc` shows sane defaults, and `.env.local` can override them locally.
89
+
90
+ ## Appraisals
91
+
92
+ From time to time the [appraisal2][🚎appraisal2] gemfiles in `gemfiles/` will need to be updated.
93
+ They are created and updated with the commands:
94
+
95
+ ```console
96
+ bin/rake appraisal:update
39
97
  ```
40
98
 
41
99
  When adding an appraisal to CI, check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
@@ -46,7 +104,7 @@ Take a look at the `reek` list which is the file called `REEK` and find somethin
46
104
 
47
105
  To refresh the `reek` list:
48
106
 
49
- ```bash
107
+ ```console
50
108
  bundle exec reek > REEK
51
109
  ```
52
110
 
@@ -55,18 +113,18 @@ bundle exec reek > REEK
55
113
  NOTE: To run *all* tests have the following databases installed, configured, and running.
56
114
 
57
115
  1. [RethinkDB](https://rethinkdb.com), an open source, real-time, web database, [installed](https://rethinkdb.com/docs/install/) and [running](https://rethinkdb.com/docs/start-a-server/), e.g.
58
- ```bash
116
+ ```console
59
117
  brew install rethinkdb
60
118
  rethinkdb
61
119
  ```
62
120
  2. [MongoDB](https://docs.mongodb.com/manual/administration/install-community/)
63
- ```bash
121
+ ```console
64
122
  brew tap mongodb/brew
65
123
  brew install mongodb-community@4.4
66
124
  mongod --config /usr/local/etc/mongod.conf
67
125
  ```
68
126
  3. [CouchDB](https://couchdb.apache.org) - download the .app, or:
69
- ```bash
127
+ ```console
70
128
  brew install couchdb
71
129
  ```
72
130
  CouchDB 3.x requires a set admin password set before startup.
@@ -80,24 +138,24 @@ NOTE: To run *all* tests have the following databases installed, configured, and
80
138
  export COUCHDB_PASSWORD=yourabsolutesecret
81
139
  ```
82
140
  Then start the CouchDB service
83
- ```bash
141
+ ```console
84
142
  brew services start couchdb
85
143
  ```
86
144
 
87
145
  Now you can run any of the tests!
88
146
 
89
147
  To run all tests on all databases (except RethinkDB):
90
- ```bash
148
+ ```console
91
149
  bundle exec rake spec:orm:all
92
150
  ```
93
151
 
94
152
  To run all tests that do not require any additional services, i.e. excluding MongoDB, CouchDB, & RethinkDB:
95
- ```bash
153
+ ```console
96
154
  bundle exec rake test
97
155
  ```
98
156
 
99
157
  To run a specific DB:
100
- ```bash
158
+ ```console
101
159
  # CouchDB / CouchPotato
102
160
  bundle exec rspec spec spec_orms --tag 'couchdb'
103
161
 
@@ -114,26 +172,50 @@ bundle exec rspec spec_orms/mongoid_spec.rb
114
172
  bundle exec rspec spec_ignored/nobrainer_spec.rb
115
173
  ```
116
174
 
175
+ ### Spec organization (required)
176
+
177
+ - One spec file per class/module. For each class or module under `lib/`, keep all of its unit tests in a single spec file under `spec/` that mirrors the path and file name exactly: `lib/omniauth/identity/*.rb` -> `spec/omniauth/identity/*_spec.rb`.
178
+ - Never add a second spec file for the same class/module. Examples of disallowed names: `*_more_spec.rb`, `*_extra_spec.rb`, `*_status_spec.rb`, or any other suffix that still targets the same class. If you find yourself wanting a second file, merge those examples into the canonical spec file for that class/module.
179
+ - Exception: Integration specs that intentionally span multiple classes. Place these under `spec/integration/` (or a clearly named integration folder), and do not directly mirror a single class. Name them after the scenario, not a class.
180
+ - Migration note: If a duplicate spec file exists, move all examples into the canonical file and delete the duplicate. Do not leave stubs or empty files behind.
181
+
117
182
  ## Lint It
118
183
 
119
184
  Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
120
185
 
121
- ```bash
186
+ ```console
122
187
  bundle exec rake
123
188
  ```
124
189
 
125
190
  Or just run the linter.
126
191
 
127
- ```bash
192
+ ```console
128
193
  bundle exec rake rubocop_gradual:autocorrect
129
194
  ```
130
195
 
196
+ 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.
197
+
198
+ ### Important: Do not add inline RuboCop disables
199
+
200
+ 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:
201
+
202
+ - Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
203
+ - When a violation is temporary and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
204
+ - `bundle exec rake rubocop_gradual:autocorrect` (preferred)
205
+ - `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
206
+
207
+ 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.
208
+
131
209
  ## Contributors
132
210
 
211
+ Your picture could be here!
212
+
133
213
  [![Contributors][🖐contributors-img]][🖐contributors]
134
214
 
135
215
  Made with [contributors-img][🖐contrib-rocks].
136
216
 
217
+ Also see GitLab Contributors: [https://gitlab.com/omniauth/omniauth-identity/-/graphs/main][🚎contributors-gl]
218
+
137
219
  ## For Maintainers
138
220
 
139
221
  ### One-time, Per-maintainer, Setup
@@ -141,13 +223,21 @@ Made with [contributors-img][🖐contrib-rocks].
141
223
  **IMPORTANT**: To sign a build,
142
224
  a public key for signing gems will need to be picked up by the line in the
143
225
  `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
144
- All releases to RubyGems.org are signed releases.
226
+ All releases are signed releases.
145
227
  See: [RubyGems Security Guide][🔒️rubygems-security-guide]
146
228
 
147
229
  NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in the environment.
148
230
 
149
231
  ### To release a new version:
150
232
 
233
+ #### Automated process
234
+
235
+ 1. Update version.rb to contain the correct version-to-be-released.
236
+ 2. Run `bundle exec kettle-changelog`.
237
+ 3. Run `bundle exec kettle-release`.
238
+
239
+ #### Manual process
240
+
151
241
  1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
152
242
  2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
153
243
  3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
@@ -157,7 +247,8 @@ NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in th
157
247
  6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
158
248
  7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
159
249
  8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
160
- 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
250
+ 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
251
+ - If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
161
252
  - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
162
253
  - If the echo above has no output, then it didn't work.
163
254
  - Note: `zsh/datetime` module is needed, if running `zsh`.
@@ -167,22 +258,28 @@ NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in th
167
258
  to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
168
259
  [gem][💎stone_checksums].
169
260
  - The script automatically commits but does not push the checksums
170
- 12. Run `bundle exec rake release` which will create a git tag for the version,
171
- push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
172
-
173
- 13. [🚎src-main]: https://github.com/omniauth/omniauth-identity
261
+ 12. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
262
+ - `sha256sum pkg/<gem name>-<version>.gem`
263
+ 13. Run `bundle exec rake release` which will create a git tag for the version,
264
+ push git commits and tags, and push the `.gem` file to the gem host configured in the gemspec.
265
+
266
+ [📜src-gl]: https://gitlab.com/omniauth/omniauth-identity/
267
+ [📜src-cb]: https://codeberg.org/omniauth/omniauth-identity
268
+ [📜src-gh]: https://github.com/omniauth/omniauth-identity
174
269
  [🧪build]: https://github.com/omniauth/omniauth-identity/actions
175
- [🤝conduct]: https://github.com/omniauth/omniauth-identity/blob/main/CODE_OF_CONDUCT.md
270
+ [🤝conduct]: https://gitlab.com/omniauth/omniauth-identity/-/blob/main/CODE_OF_CONDUCT.md
176
271
  [🖐contrib-rocks]: https://contrib.rocks
177
272
  [🖐contributors]: https://github.com/omniauth/omniauth-identity/graphs/contributors
273
+ [🚎contributors-gl]: https://gitlab.com/omniauth/omniauth-identity/-/graphs/main
178
274
  [🖐contributors-img]: https://contrib.rocks/image?repo=omniauth/omniauth-identity
179
- [💎rubygems]: https://rubygems.org
275
+ [💎gem-coop]: https://gem.coop
180
276
  [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
181
277
  [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
182
278
  [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
183
- [💎stone_checksums]: https://github.com/pboling/stone_checksums
279
+ [💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
184
280
  [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
185
281
  [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
186
- [🚎appraisal-eval-gemfile-pr]: https://github.com/thoughtbot/appraisal/pull/248
187
- [🚎appraisal-fork]: https://github.com/pboling/appraisal/tree/galtzo
282
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
283
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
284
+ [🚎appraisal2]: https://github.com/appraisal-rb/appraisal2
188
285
  [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
data/FUNDING.md ADDED
@@ -0,0 +1,66 @@
1
+ <!-- RELEASE-NOTES-FOOTER-START -->
2
+
3
+ Official Discord 👉️ [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite]
4
+
5
+ Many paths lead to being a sponsor or a backer of this project. Are you on such a path?
6
+
7
+ [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal]
8
+
9
+ [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate on Polar][🖇polar-img]][🖇polar] [![Donate to my FLOSS or refugee efforts at ko-fi.com][🖇kofi-img]][🖇kofi] [![Donate to my FLOSS or refugee efforts using Patreon][🖇patreon-img]][🖇patreon]
10
+
11
+ [⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
12
+ [⛳liberapay]: https://liberapay.com/pboling/donate
13
+ [🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
14
+ [🖇sponsor]: https://github.com/sponsors/pboling
15
+ [🖇polar-img]: https://img.shields.io/badge/polar-donate-a51611.svg?style=flat
16
+ [🖇polar]: https://polar.sh/pboling
17
+ [🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
18
+ [🖇kofi]: https://ko-fi.com/O5O86SNP4
19
+ [🖇patreon-img]: https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat
20
+ [🖇patreon]: https://patreon.com/galtzo
21
+ [🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
22
+ [🖇buyme]: https://www.buymeacoffee.com/pboling
23
+ [🖇paypal-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&logo=paypal
24
+ [🖇paypal]: https://www.paypal.com/paypalme/peterboling
25
+ [✉️discord-invite]: https://discord.gg/3qme4XHNKN
26
+ [✉️discord-invite-img]: https://img.shields.io/discord/1373797679469170758?style=flat
27
+
28
+ <!-- RELEASE-NOTES-FOOTER-END -->
29
+
30
+ # 🤑 Request for Help
31
+
32
+ Maintainers have teeth and need to pay their dentists.
33
+ After getting laid off in an RIF in March and filled with many dozens of rejections,
34
+ I'm now spending ~60+ hours a week building open source tools.
35
+ I'm hoping to be able to pay for my kids' health insurance this month,
36
+ so if you value the work I am doing, I need your support.
37
+ Please consider sponsoring me or the project.
38
+
39
+ To join the community or get help 👇️ Join the Discord.
40
+
41
+ [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
42
+
43
+ To say "thanks for maintaining such a great tool" ☝️ Join the Discord or 👇️ send money.
44
+
45
+ [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay-img] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal-img]
46
+
47
+ # Another Way to Support Open Source Software
48
+
49
+ > How wonderful it is that nobody need wait a single moment before starting to improve the world.<br/>
50
+ >—Anne Frank
51
+
52
+ I’m driven by a passion to foster a thriving open-source community – a space where people can tackle complex problems, no matter how small. Revitalizing libraries that have fallen into disrepair, and building new libraries focused on solving real-world challenges, are my passions — totaling 79 hours of FLOSS coding over just the past seven days, a pretty regular week for me. I was recently affected by layoffs, and the tech jobs market is unwelcoming. I’m reaching out here because your support would significantly aid my efforts to provide for my family, and my farm (11 🐔 chickens, 2 🐶 dogs, 3 🐰 rabbits, 8 🐈‍ cats).
53
+
54
+ If you work at a company that uses my work, please encourage them to support me as a corporate sponsor. My work on gems you use might show up in `bundle fund`.
55
+
56
+ I’m developing a new library, [floss_funding][🖇floss-funding-gem], designed to empower open-source developers like myself to get paid for the work we do, in a sustainable way. Please give it a look.
57
+
58
+ **[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
59
+
60
+ [⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
61
+ [🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
62
+ [🖇buyme-img]: https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff
63
+ [🖇paypal-bottom-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=for-the-badge&logo=paypal&color=0A0A0A
64
+ [🖇floss-funding.dev]: https://floss-funding.dev
65
+ [🖇floss-funding-gem]: https://github.com/galtzo-floss/floss_funding
66
+ [✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge