Skip to content

Commit a7beaf1

Browse files
authored
Merge pull request #11 from VitalConnectInc/feat/10-release-3.0.0
Feat/10 release 3.0.0
2 parents 301cd5b + 4d8ac78 commit a7beaf1

File tree

135 files changed

+2582
-5848
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+2582
-5848
lines changed

.rubocop_gradual.lock

+551-3,037
Large diffs are not rendered by default.

.travis.yml

-26
This file was deleted.

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
Since version 3.0.0, the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
### Added
9+
### Changed
10+
### Fixed
11+
### Removed
12+
13+
## 3.0.0
14+
3831 relevant lines, 3510 lines covered and 321 lines missed. ( 91.62% )
15+
1228 total branches, 1070 branches covered and 158 branches missed. ( 87.13% )
16+
### Fixed
17+
- Compatibility with Ruby 2.7+
18+
### Removed
19+
- Support for Ruby < 2.7
220

321
## 2.9.2
422

CHANGES-2.0.0

-36
This file was deleted.

CHANGES-2.1.0

-36
This file was deleted.

CODE_OF_CONDUCT.md

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
* Demonstrating empathy and kindness toward other people
14+
* Being respectful of differing opinions, viewpoints, and experiences
15+
* Giving and gracefully accepting constructive feedback
16+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
* Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
* The use of sexualized language or imagery, and sexual attention or
22+
advances of any kind
23+
* Trolling, insulting or derogatory comments, and personal or political attacks
24+
* Public or private harassment
25+
* Publishing others' private information, such as a physical or email
26+
address, without their explicit permission
27+
* Other conduct which could reasonably be considered inappropriate in a
28+
professional setting
29+
30+
## Enforcement Responsibilities
31+
32+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33+
34+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35+
36+
## Scope
37+
38+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39+
40+
## Enforcement
41+
42+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [email protected]. All complaints will be reviewed and investigated promptly and fairly.
43+
44+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45+
46+
## Enforcement Guidelines
47+
48+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49+
50+
### 1. Correction
51+
52+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53+
54+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55+
56+
### 2. Warning
57+
58+
**Community Impact**: A violation through a single incident or series of actions.
59+
60+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61+
62+
### 3. Temporary Ban
63+
64+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65+
66+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67+
68+
### 4. Permanent Ban
69+
70+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71+
72+
**Consequence**: A permanent ban from any sort of public interaction within the community.
73+
74+
## Attribution
75+
76+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78+
79+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80+
81+
[homepage]: https://www.contributor-covenant.org
82+
83+
For answers to common questions about this code of conduct, see the FAQ at
84+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## Contributing
2+
3+
Bug reports and pull requests are welcome on GitHub at [https://github.com/VitalConnectInc/ruby-openid2][🚎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+
## Release
11+
12+
### One-time, Per-developer, Setup
13+
14+
**IMPORTANT**: Your public key for signing gems will need to be picked up by the line in the
15+
`gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there),
16+
in order to sign the new release.
17+
See: [RubyGems Security Guide][🔒️rubygems-security-guide]
18+
19+
### To release a new version:
20+
21+
1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
22+
2. Update the version number in `version.rb`
23+
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
24+
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
25+
5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
26+
a. NOTE: Remember to [check the build][🧪build]!
27+
6. Run `git checkout main`
28+
7. Run `git pull origin main` to ensure you will release the latest trunk code.
29+
8. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
30+
a. Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
31+
b. If the echo above has no output, then it didn't work.
32+
c. Note that you'll need the `zsh/datetime` module, if running `zsh`.
33+
d. In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
34+
9. Run `bundle exec rake build`
35+
10. Run [`bin/checksums`][🔒️rubygems-checksums-pr] to create SHA-256 and SHA-512 checksums
36+
a. Checksums will be committed automatically by the script, but not pushed
37+
11. Run `bundle exec rake release` which will create a git tag for the version,
38+
push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
39+
40+
## Contributors
41+
42+
[![Contributors][🖐contributors-img]][🖐contributors]
43+
44+
Made with [contributors-img][🖐contrib-rocks].
45+
46+
[🧪build]: https://github.com/VitalConnectInc/ruby-openid2/actions
47+
[🤝conduct]: https://github.com/VitalConnectInc/ruby-openid2/blob/main/CODE_OF_CONDUCT.md
48+
[🖐contrib-rocks]: https://contrib.rocks
49+
[🖐contributors]: https://github.com/VitalConnectInc/ruby-openid2/graphs/contributors
50+
[🖐contributors-img]: https://contrib.rocks/image?repo=VitalConnectInc/ruby-openid2
51+
[💎rubygems]: https://rubygems.org
52+
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
53+
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/guides/pull/325
54+
[🚎src-main]: https://github.com/VitalConnectInc/ruby-openid2

Gemfile.lock

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
ruby-openid (2.9.2)
4+
ruby-openid2 (3.0.0)
5+
version_gem (~> 1.1, >= 1.1.4)
56

67
GEM
78
remote: https://rubygems.org/
@@ -34,8 +35,7 @@ GEM
3435
rainbow (3.1.1)
3536
rake (13.2.1)
3637
regexp_parser (2.9.2)
37-
rexml (3.3.6)
38-
strscan
38+
rexml (3.3.7)
3939
rspec-block_is_expected (1.0.6)
4040
rubocop (1.64.1)
4141
json (~> 2.3)
@@ -119,7 +119,6 @@ GEM
119119
standard-custom (>= 1.0.2, < 2)
120120
standard-performance (>= 1.3.1, < 2)
121121
version_gem (>= 1.1.4, < 3)
122-
strscan (3.1.0)
123122
terminal-table (3.0.2)
124123
unicode-display_width (>= 1.1.1, < 3)
125124
unicode-display_width (2.5.0)
@@ -143,7 +142,7 @@ DEPENDENCIES
143142
rubocop-lts (~> 18.2, >= 18.2.1)
144143
rubocop-minitest (~> 0.36)
145144
rubocop-packaging (~> 0.5, >= 0.5.2)
146-
ruby-openid!
145+
ruby-openid2!
147146
standard (>= 1.35.1)
148147
webrick (~> 1.8)
149148
yard (~> 0.9, >= 0.9.34)

LICENSE LICENSE.txt

File renamed without changes.

Rakefile

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#!/usr/bin/env rake
2-
require 'bundler/gem_tasks'
2+
require "bundler/gem_tasks"
33

4-
require 'rake/testtask'
4+
require "rake/testtask"
55

6-
desc 'Run tests'
7-
Rake::TestTask.new('test') do |t|
8-
t.libs << 'lib'
9-
t.libs << 'test'
10-
t.test_files = FileList['test/**/test_*.rb']
6+
desc "Run tests"
7+
Rake::TestTask.new("test") do |t|
8+
t.libs << "lib"
9+
t.libs << "test"
10+
t.test_files = FileList["test/**/test_*.rb"]
1111
t.verbose = false
1212
end
1313

1414
begin
15-
require 'rubocop/lts'
15+
require "rubocop/lts"
1616
Rubocop::Lts.install_tasks
1717
rescue LoadError
1818
task(:rubocop_gradual) do
19-
warn('RuboCop (Gradual) is disabled')
19+
warn("RuboCop (Gradual) is disabled")
2020
end
2121
end
2222

SECURITY.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
|---------|-----------|
7+
| 3.x ||
8+
| 2.x ||
9+
| 1.x ||
10+
11+
## Reporting a Vulnerability
12+
13+
Peter Boling is the primary maintainer of this gem. Please find a way
14+
to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
15+
possible.

admin/mkassoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/usr/bin/env ruby
22

3-
require 'openid/consumer/associationmanager'
4-
require 'openid/store/memory'
3+
require "openid/consumer/associationmanager"
4+
require "openid/store/memory"
55

66
store = OpenID::Store::Memory.new
77
ARGV.each do |server_url|
8-
unless URI::DEFAULT_PARSER.make_regexp =~ server_url
8+
unless URI::DEFAULT_PARSER.make_regexp&.match?(server_url)
99
puts "`#{server_url}` will be skipped for invalid URI format."
1010
next
1111
end
1212

1313
mgr = OpenID::Consumer::AssociationManager.new(store, server_url)
14-
puts '=' * 50
14+
puts "=" * 50
1515
puts "Server: #{server_url}"
1616
puts mgr.get_association.serialize
17-
puts '-' * 50
17+
puts "-" * 50
1818
end

bin/setup

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
set -vx
5+
6+
bundle install
7+
8+
# Do any other automated setup that you need to do here

0 commit comments

Comments
 (0)