oauth2 2.0.9 → 2.0.10

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/CODE_OF_CONDUCT.md CHANGED
File without changes
data/CONTRIBUTING.md CHANGED
@@ -1,44 +1,139 @@
1
1
  ## Contributing
2
2
 
3
- Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/oauth-xx/oauth2][source]
3
+ Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/oauth-xx/oauth2][🚎src-main]
4
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. Once you're happy with it send a pull request!
8
-
9
- ## Detailed instructions on Submitting a Pull Request
10
- 1. [Fork the repository.][fork]
11
- 2. [Create a topic branch.][branch]
12
- 3. Add specs for your unimplemented feature or bug fix.
13
- 4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
14
- 5. Implement your feature or bug fix.
15
- 6. Run `bundle exec rake`. If your specs fail, return to step 5.
16
- 7. Run `open coverage/index.html`. If your changes are not completely covered
17
- by your tests, return to step 3.
18
- 8. Add documentation for your feature or bug fix.
19
- 9. Run `bundle exec rake verify_measurements`. If your changes are not 100%
20
- documented, go back to step 8.
21
- 10. Commit and push your changes.
22
- 11. [Submit a pull request.][pr]
23
-
24
- [fork]: http://help.github.com/fork-a-repo/
25
- [branch]: http://learn.github.com/p/branching.html
26
- [pr]: http://help.github.com/send-pull-requests/
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
+ ```
27
74
 
28
75
  ## Contributors
29
76
 
30
- [![Contributors](https://contrib.rocks/image?repo=oauth-xx/oauth2)][🚎contributors]
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/oauth-xx/oauth2/-/graphs/main][🚎contributors-gl]
31
84
 
32
- Made with [contributors-img][contrib-rocks].
85
+ ## For Maintainers
33
86
 
34
- [comment]: <> (Following links are used by README, CONTRIBUTING)
87
+ ### One-time, Per-maintainer, Setup
35
88
 
36
- [conduct]: https://gitlab.com/oauth-xx/oauth2/-/blob/main/CODE_OF_CONDUCT.md
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]
37
94
 
38
- [contrib-rocks]: https://contrib.rocks
95
+ NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some value in your environment.
39
96
 
40
- [🚎contributors]: https://gitlab.com/oauth-xx/oauth2/-/graphs/main
97
+ ### To release a new version:
41
98
 
42
- [comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
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]
43
120
 
44
- [source]: https://gitlab.com/oauth-xx/oauth2/
121
+ [🚎src-main]: https://gitlab.com/oauth-xx/oauth2
122
+ [🧪build]: https://github.com/oauth-xx/oauth2/actions
123
+ [🤝conduct]: https://gitlab.com/oauth-xx/oauth2/-/blob/main/CODE_OF_CONDUCT.md
124
+ [🖐contrib-rocks]: https://contrib.rocks
125
+ [🖐contributors]: https://github.com/oauth-xx/oauth2/graphs/contributors
126
+ [🚎contributors-gl]: https://gitlab.com/oauth-xx/oauth2/-/graphs/main
127
+ [🖐contributors-img]: https://contrib.rocks/image?repo=oauth-xx/oauth2
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
@@ -1,7 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2011 - 2013 Michael Bleigh and Intridea, Inc.
4
- Copyright (c) 2017 - 2022 oauth-xx organization, https://gitlab.com/oauth-xx
4
+ Copyright (c) 2017 - 2025 Peter H. Boling, of RailsBling.com, and OAuth2 contributors
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal