omniauth-ldap 2.0.0 → 2.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4a580a1583118feff557707be44e27399e53b1b4
4
- data.tar.gz: 2b1e9f565c330b999f2724f0ea192ab86c47ca33
2
+ SHA256:
3
+ metadata.gz: 64fced98d7ab577e6c9abc446ace5678b829670e9d241f0a759c61efc47ecf5e
4
+ data.tar.gz: 7fda93687c96509833b9d72f277995f53eb2368ebe44740180ceadd3afac6ebe
5
5
  SHA512:
6
- metadata.gz: 790f8a998f080ccd92746f748fb4d0066a4e2e87d62cd9f0434dc639fc829e7711a52ab640c97541eb8346528c6e4556bd25c6cfc86a69f09639bfbb8ce14d2c
7
- data.tar.gz: 5722ea2a9335f2171b70aafdf461790eb22ebbbb7e48fc56a646b776ec96d9915fdcfc4e581c7afe8b53cc5ead645eedfbf89e9aaa4e7e7ed2ea6acbb1584a6c
6
+ metadata.gz: 8750eeed19ed13d89d041b14123b68cc459e7f5595d04d6d0fe67227c06c312f7952264f6fdd19a8f57957ce98c9ea3620d125fd01c445446c8848400a668e12
7
+ data.tar.gz: ed9dc416b2eba5c6e9d9cc5e889f50bd70347ff4a6ce9261cb8703e77d010c7834a5a566ef8ed7f93f5fbaf4baba0afa9965191decebdf84ed8ffd8b79590a8d
checksums.yaml.gz.sig ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,231 @@
1
+ # Changelog
2
+
3
+ [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
4
+
5
+ Since version v2.3.1, all notable changes to this project will be documented in this file.
6
+
7
+ This changelog lists the releases of the original omniauth-ldap, and the GitLab forked versions, up until v2.3.0.
8
+
9
+ The format is based on [Keep a Changelog][📗keep-changelog],
10
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
11
+ and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
12
+ Please file a bug if you notice a violation of semantic versioning.
13
+
14
+ [📌semver]: https://semver.org/spec/v2.0.0.html
15
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
16
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
17
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
18
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
19
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
20
+
21
+ ## [Unreleased]
22
+
23
+ ### Added
24
+
25
+ ### Changed
26
+
27
+ ### Deprecated
28
+
29
+ ### Removed
30
+
31
+ ### Fixed
32
+
33
+ ### Security
34
+
35
+ ## [2.3.2] - 2025-11-06
36
+
37
+ - TAG: [v2.3.2][2.3.2t]
38
+ - COVERAGE: 97.64% -- 290/297 lines in 4 files
39
+ - BRANCH COVERAGE: 79.69% -- 102/128 branches in 4 files
40
+ - 44.12% documented
41
+
42
+ ### Added
43
+
44
+ - Support for SCRIPT_NAME for proper URL generation
45
+ - behind certain proxies/load balancers, or
46
+ - under a subdirectory
47
+ - Password Policy for LDAP Directories
48
+ - password_policy: true|false (default: false)
49
+ - on authentication failure, if the server returns password policy controls, the info will be included in the failure message
50
+ - https://datatracker.ietf.org/doc/html/draft-behera-ldap-password-policy-11
51
+ - Support for JSON bodies
52
+ - Support custom LDAP attributes mapping
53
+ - Raise a distinct error when LDAP server is unreachable
54
+ - Previously raised an invalid credentials authentication failure error, which is technically incorrect
55
+ - Documentation of TLS verification options
56
+
57
+ ### Changed
58
+
59
+ - Make support for OmniAuth v1.2+ explicit
60
+ - Versions < 1.2 do not support SCRIPT_NAME properly, and may cause other issues
61
+
62
+ ## [2.3.1] - 2025-11-05
63
+
64
+ - TAG: [v2.3.1][2.3.1t]
65
+ - COVERAGE: 97.85% -- 228/233 lines in 4 files
66
+ - BRANCH COVERAGE: 81.58% -- 62/76 branches in 4 files
67
+ - 37.50% documented
68
+
69
+ ### Added
70
+
71
+ - Added RBS types
72
+ - Upgraded RSpec tests to v3 syntax
73
+ - Improved code coverage to 98% lines and 78% branches
74
+ - Added integration tests with a complete Roda-based demo app for specs
75
+ - Well tested support for all versions of OmniAuth >= v1 and Rack >= v1 via appraisals
76
+ - Document why auth.uid == dn
77
+ - Support for LDAP-based SSO identity via HTTP Header
78
+ - Document how to use filter option
79
+ - All fixes and updates from the GitLab fork since up to v2.3.0
80
+ - https://github.com/omniauth/omniauth-ldap/pull/100
81
+ - https://gitlab.com/gitlab-org/gitlab-ce/issues/13280
82
+
83
+ ### Changed
84
+
85
+ - Make support for Ruby v2.0 explicit
86
+ - Make support for OmniAuth v1+ explicit
87
+ - Make support for Rack v1+ explicit
88
+ - Modernize codebase to use more recent Ruby syntax (upgrade from Ruby v1 to v2 syntax) and conventions
89
+
90
+ ### Fixed
91
+
92
+ - Prevent key duplication in symbolize_hash_keys
93
+
94
+ ## [2.3.0-gl] (gitlab fork) - 2025-08-20
95
+
96
+ - TAG: [v2.3.0][2.3.0t-gl] (gitlab)
97
+
98
+ ## [2.2.0-gl] (gitlab fork) - 2022-06-24
99
+
100
+ - TAG: [v2.2.0][2.2.0t-gl] (gitlab)
101
+
102
+ ## [2.1.1-gl] (gitlab fork) - 2019-02-22
103
+
104
+ - TAG: [v2.1.1][2.1.1t-gl] (gitlab)
105
+
106
+ ### Added
107
+
108
+ - Add a String check to `tls_options` sanitization to allow other objects
109
+
110
+ ## [2.1.0-gl] (gitlab fork) - 2018-06-18
111
+
112
+ - TAG: [v2.1.0][2.1.0t-gl] (gitlab)
113
+
114
+ ### Added
115
+
116
+ - Expose `:tls_options` SSL configuration option.
117
+
118
+ ### Deprecated
119
+
120
+ - Deprecate :ca_file, :ssl_version
121
+
122
+ ## [2.0.4-gl] (gitlab fork) - 2017-08-10
123
+
124
+ - TAG: [v2.0.4][2.0.4t-gl] (gitlab)
125
+
126
+ - Improve log message when invalid credentials are used
127
+
128
+ ## 2.0.3 (gitlab fork) - 2017-07-20
129
+
130
+ - Protects against wrong request method call to callback
131
+
132
+ ## [2.0.2-gl] (gitlab fork) - 2017-06-13
133
+
134
+ - TAG: [v2.0.2][2.0.2t-gl] (gitlab)
135
+
136
+ ## [2.0.1-gl] (gitlab fork) - 2017-06-09
137
+
138
+ - TAG: [v2.0.1][2.0.1t-gl] (gitlab)
139
+
140
+ ## [2.0.0-gl] (gitlab fork) - 2017-06-07
141
+
142
+ - TAG: [v2.0.0][2.0.0t-gl] (gitlab)
143
+
144
+ ## [2.0.0] (intridea) - 2018-01-09
145
+
146
+ - TAG: [v2.0.0][2.0.0t] (github)
147
+
148
+ ## [1.2.1-gl] (gitlab fork) - 2015-03-17
149
+
150
+ - TAG: [v1.2.1][1.2.1t-gl] (gitlab)
151
+
152
+ ## [1.2.0-gl] (gitlab fork) - 2014-10-29
153
+
154
+ - TAG: [v1.2.0][1.2.0t-gl] (gitlab)
155
+
156
+ ## [1.1.0-gl] (gitlab fork) - 2014-09-08
157
+
158
+ - TAG: [v1.1.0][1.1.0t-gl] (gitlab)
159
+
160
+ ## [1.0.5-gl] - 2016-02-17
161
+
162
+ - TAG: [v1.0.5][1.0.5t-gl] (gitlab fork, gem not released)
163
+ - TAG: [v1.0.5][1.0.5t] (github)
164
+
165
+ ## 1.0.4
166
+
167
+ - released 2014-02-03 (intridea)
168
+ - released 2013-11-13 (gitlab fork)
169
+
170
+ ## 1.0.3
171
+
172
+ - released 2013-01-23 (intridea)
173
+ - released 2013-06-13 (gitlab fork)
174
+
175
+ ## [1.0.2-gl]
176
+
177
+ - TAG: [v1.0.2][1.0.2t-gl] (gitlab) - released 2012-12-30
178
+ - TAG: [v1.0.2][1.0.2t] (github) - released 2011-12-17
179
+
180
+ ## 1.0.1 - 2011-11-02
181
+
182
+ ## [1.0.0-gl] - 2011-11-02
183
+
184
+ - TAG: [v1.0.0][1.0.0t-gl] (gitlab)
185
+ - TAG: [v1.0.0][1.0.0t] (github)
186
+
187
+ [2.3.0-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v2.2.0...v2.3.0
188
+ [2.3.0t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.3.0
189
+ [2.2.0-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v2.1.1...v2.2.0
190
+ [2.2.0t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.2.0
191
+ [2.1.1-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v2.1.0...v2.1.1
192
+ [2.1.1t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.1.1
193
+ [2.1.0-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v2.0.4...v2.1.0
194
+ [2.1.0t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.1.0
195
+ [2.0.4-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v2.0.2...v2.0.4
196
+ [2.0.4t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.0.4
197
+ [//]: # ( There is no tag for v2.0.3 on GitLab)
198
+ [2.0.2-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v2.0.1...v2.0.2
199
+ [2.0.2t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.0.2
200
+ [2.0.1-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v2.0.0...v2.0.1
201
+ [2.0.1t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.0.1
202
+ [2.0.0-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v1.2.1...v2.0.0
203
+ [2.0.0t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/2.0.0
204
+ [2.0.0]: https://github.com/omniauth/omniauth-ldap/compare/v1.0.5...v2.0.0
205
+ [2.0.0t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v2.0.0
206
+ [1.2.1-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v1.2.0...v1.2.1
207
+ [1.2.1t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/1.2.1
208
+ [1.2.0-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v1.1.0...v1.2.0
209
+ [1.2.0t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/1.2.0
210
+ [1.1.0-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v1.0.2...v1.1.0
211
+ [1.1.0t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/1.1.0
212
+ [1.0.5-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v1.0.2...v1.0.5
213
+ [1.0.5t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/1.0.5
214
+ [1.0.5]: https://github.com/omniauth/omniauth-ldap/compare/v1.0.2...v1.0.5
215
+ [1.0.5t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v1.0.5
216
+ [//]: # ( There are no tags for v1.0.3, v1.0.4 on GitHub, or GitLab)
217
+ [1.0.2-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/v1.0.1...v1.0.2
218
+ [1.0.2t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/1.0.2
219
+ [1.0.2]: https://github.com/omniauth/omniauth-ldap/compare/v1.0.1...v1.0.2
220
+ [1.0.2t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v1.0.2
221
+ [//]: # ( There are no tags for v1.0.1 on GitHub, or GitLab)
222
+ [1.0.0-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/compare/5656da80d4193e0d0584f44bac493a87695e580f...v1.0.0
223
+ [1.0.0t-gl]: https://gitlab.com/gitlab-org/ruby/gems/omniauth-ldap/-/tags/1.0.0
224
+ [1.0.0]: https://github.com/omniauth/omniauth-ldap/compare/5656da80d4193e0d0584f44bac493a87695e580f...v1.0.0
225
+ [1.0.0t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v1.0.0
226
+
227
+ [Unreleased]: https://github.com/omniauth/omniauth-ldap/compare/v2.3.2...HEAD
228
+ [2.3.2]: https://github.com/omniauth/omniauth-ldap/compare/v2.3.1...v2.3.2
229
+ [2.3.2t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v2.3.2
230
+ [2.3.1]: https://github.com/omniauth/omniauth-ldap/compare/v2.0.0...v2.3.1
231
+ [2.3.1t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v2.3.1
data/CITATION.cff ADDED
@@ -0,0 +1,20 @@
1
+ cff-version: 1.2.0
2
+ title: omniauth-ldap
3
+ message: >-
4
+ If you use this work and you want to cite it,
5
+ then you can use the metadata from this file.
6
+ type: software
7
+ authors:
8
+ - given-names: Peter Hurn
9
+ family-names: Boling
10
+ email: peter@railsbling.com
11
+ affiliation: railsbling.com
12
+ orcid: 'https://orcid.org/0009-0008-8519-441X'
13
+ identifiers:
14
+ - type: url
15
+ value: 'https://github.com/omniauth/omniauth-ldap'
16
+ description: omniauth-ldap
17
+ repository-code: 'https://github.com/omniauth/omniauth-ldap'
18
+ abstract: >-
19
+ omniauth-ldap
20
+ license: See license file
@@ -0,0 +1,134 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
133
+ [🚂maint-contact]: http://www.railsbling.com/contact
134
+ [🚂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,213 @@
1
+ # Contributing
2
+
3
+ Bug reports and pull requests are welcome on [GitHub][📜src-gh].
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] if you make changes.
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
+ ## Executables vs Rake tasks
26
+
27
+ Executables shipped by dependencies, such as omniauth-ldap, and stone_checksums, are available
28
+ after running `bin/setup`. These include:
29
+
30
+ - gem_checksums
31
+ - kettle-changelog
32
+ - kettle-commit-msg
33
+ - omniauth-ldap-setup
34
+ - kettle-dvcs
35
+ - kettle-pre-release
36
+ - kettle-readme-backers
37
+ - kettle-release
38
+
39
+ There are many Rake tasks available as well. You can see them by running:
40
+
41
+ ```shell
42
+ bin/rake -T
43
+ ```
44
+
45
+ ## Environment Variables for Local Development
46
+
47
+ 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.
48
+
49
+ General/runtime
50
+ - DEBUG: Enable extra internal logging for this library (default: false)
51
+ - REQUIRE_BENCH: Enable `require_bench` to profile requires (default: false)
52
+ - CI: When set to true, adjusts default rake tasks toward CI behavior
53
+
54
+ Coverage (kettle-soup-cover / SimpleCov)
55
+ - K_SOUP_COV_DO: Enable coverage collection (default: true in .envrc)
56
+ - K_SOUP_COV_FORMATTERS: Comma-separated list of formatters (html, xml, rcov, lcov, json, tty)
57
+ - K_SOUP_COV_MIN_LINE: Minimum line coverage threshold (integer, e.g., 100)
58
+ - K_SOUP_COV_MIN_BRANCH: Minimum branch coverage threshold (integer, e.g., 100)
59
+ - K_SOUP_COV_MIN_HARD: Fail the run if thresholds are not met (true/false)
60
+ - K_SOUP_COV_MULTI_FORMATTERS: Enable multiple formatters at once (true/false)
61
+ - K_SOUP_COV_OPEN_BIN: Path to browser opener for HTML (empty disables auto-open)
62
+ - MAX_ROWS: Limit console output rows for simplecov-console (e.g., 1)
63
+ 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.
64
+
65
+ GitHub API and CI helpers
66
+ - GITHUB_TOKEN or GH_TOKEN: Token used by `ci:act` and release workflow checks to query GitHub Actions status at higher rate limits
67
+
68
+ Releasing and signing
69
+ - SKIP_GEM_SIGNING: If set, skip gem signing during build/release
70
+ - GEM_CERT_USER: Username for selecting your public cert in `certs/<USER>.pem` (defaults to $USER)
71
+ - SOURCE_DATE_EPOCH: Reproducible build timestamp. `kettle-release` will set this automatically for the session.
72
+
73
+ Git hooks and commit message helpers (exe/kettle-commit-msg)
74
+ - GIT_HOOK_BRANCH_VALIDATE: Branch name validation mode (e.g., `jira`) or `false` to disable
75
+ - GIT_HOOK_FOOTER_APPEND: Append a footer to commit messages when goalie allows (true/false)
76
+ - GIT_HOOK_FOOTER_SENTINEL: Required when footer append is enabled — a unique first-line sentinel to prevent duplicates
77
+ - GIT_HOOK_FOOTER_APPEND_DEBUG: Extra debug output in the footer template (true/false)
78
+
79
+ For a quick starting point, this repository’s `.envrc` shows sane defaults, and `.env.local` can override them locally.
80
+
81
+ ## Appraisals
82
+
83
+ From time to time the [appraisal2][🚎appraisal2] gemfiles in `gemfiles/` will need to be updated.
84
+ They are created and updated with the commands:
85
+
86
+ ```console
87
+ bin/rake appraisal:update
88
+ ```
89
+
90
+ When adding an appraisal to CI, check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
91
+
92
+ ## The Reek List
93
+
94
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
95
+
96
+ To refresh the `reek` list:
97
+
98
+ ```console
99
+ bundle exec reek > REEK
100
+ ```
101
+
102
+ ## Run Tests
103
+
104
+ To run all tests
105
+
106
+ ```console
107
+ bundle exec rake test
108
+ ```
109
+
110
+ ### Spec organization (required)
111
+
112
+ - 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/ldap/my_class.rb` -> `spec/omniauth/ldap/my_class_spec.rb`.
113
+ - 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.
114
+
115
+ ## Lint It
116
+
117
+ Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
118
+
119
+ ```console
120
+ bundle exec rake
121
+ ```
122
+
123
+ Or just run the linter.
124
+
125
+ ```console
126
+ bundle exec rake rubocop_gradual:autocorrect
127
+ ```
128
+
129
+ 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.
130
+
131
+ ### Important: Do not add inline RuboCop disables
132
+
133
+ 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:
134
+
135
+ - Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
136
+ - When a violation is temporary, and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
137
+ - `bundle exec rake rubocop_gradual:autocorrect` (preferred)
138
+ - `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
139
+
140
+ 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.
141
+
142
+ ## Contributors
143
+
144
+ Your picture could be here!
145
+
146
+ [![Contributors][🖐contributors-img]][🖐contributors]
147
+
148
+ Made with [contributors-img][🖐contrib-rocks].
149
+
150
+ ## For Maintainers
151
+
152
+ ### One-time, Per-maintainer, Setup
153
+
154
+ **IMPORTANT**: To sign a build,
155
+ a public key for signing gems will need to be picked up by the line in the
156
+ `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
157
+ All releases are signed releases.
158
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
159
+
160
+ NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in the environment.
161
+
162
+ ### To release a new version:
163
+
164
+ #### Automated process
165
+
166
+ 1. Update version.rb to contain the correct version-to-be-released.
167
+ 2. Run `bundle exec kettle-changelog`.
168
+ 3. Run `bundle exec kettle-release`.
169
+
170
+ #### Manual process
171
+
172
+ 1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
173
+ 2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
174
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
175
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
176
+ 5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
177
+ - NOTE: Remember to [check the build][🧪build].
178
+ 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
179
+ 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
180
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
181
+ 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
182
+ - If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
183
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
184
+ - If the echo above has no output, then it didn't work.
185
+ - Note: `zsh/datetime` module is needed, if running `zsh`.
186
+ - In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
187
+ 10. Run `bundle exec rake build`
188
+ 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
189
+ to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
190
+ [gem][💎stone_checksums].
191
+ - The script automatically commits but does not push the checksums
192
+ 12. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
193
+ - `sha256sum pkg/<gem name>-<version>.gem`
194
+ 13. Run `bundle exec rake release` which will create a git tag for the version,
195
+ push git commits and tags, and push the `.gem` file to the gem host configured in the gemspec.
196
+
197
+ [📜src-gh]: https://github.com/omniauth/omniauth-ldap
198
+ [🧪build]: https://github.com/omniauth/omniauth-ldap/actions
199
+ [🤝conduct]: https://gitlab.com/omniauth/omniauth-ldap/-/blob/main/CODE_OF_CONDUCT.md
200
+ [🖐contrib-rocks]: https://contrib.rocks
201
+ [🖐contributors]: https://github.com/omniauth/omniauth-ldap/graphs/contributors
202
+ [🖐contributors-img]: https://contrib.rocks/image?repo=omniauth/omniauth-ldap
203
+ [💎gem-coop]: https://gem.coop
204
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
205
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
206
+ [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
207
+ [💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
208
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
209
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
210
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
211
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
212
+ [🚎appraisal2]: https://github.com/appraisal-rb/appraisal2
213
+ [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache