keyless 1.1.0 → 1.2.0
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 +4 -4
- data/.github/workflows/release.yml +47 -0
- data/CHANGELOG.md +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/README.md +21 -8
- data/lib/keyless/version.rb +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf3b27e57dd5695ad190bc2940a7cdb7b08ea79b66d35bdf4c2d67acefa6cc42
|
4
|
+
data.tar.gz: aed02f107d55f5a77e50c724fa517a50864ec42f16d4c505ab84ed31d4443cf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2669da4e5baf3e6bf8fc6f3b37e28b9e09278ba245f8057fd80e332b4bee8b4c34195bba07b22b549fca6213722fc1ac9ad1f58186cd30b835524009e79daf42
|
7
|
+
data.tar.gz: 6f5ff05b341d0991786a76aff5d6f3a042800fe6a9f5fdc8a3a92e037c9b76eaa6b7d6f6d690442e4f0d85dc831c40b5ccb4ff736fa5953170d0c21ff2f8604d
|
@@ -0,0 +1,47 @@
|
|
1
|
+
name: Release
|
2
|
+
run-name: Release ${{ github.event.inputs.VERSION }}
|
3
|
+
|
4
|
+
on:
|
5
|
+
workflow_dispatch:
|
6
|
+
inputs:
|
7
|
+
VERSION:
|
8
|
+
description: The new version to release. (eg. `1.0.0`) Check the
|
9
|
+
changelog for the latest version.
|
10
|
+
|
11
|
+
concurrency:
|
12
|
+
group: '${{ github.event.inputs.VERSION }}'
|
13
|
+
cancel-in-progress: true
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
docs:
|
17
|
+
name: Release the gem
|
18
|
+
runs-on: ubuntu-22.04
|
19
|
+
timeout-minutes: 5
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v3
|
22
|
+
|
23
|
+
- name: Install Ruby 2.5
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: 2.5
|
27
|
+
bundler-cache: true
|
28
|
+
rubygems: '3.3.26'
|
29
|
+
|
30
|
+
- name: Prepare the virtual environment
|
31
|
+
uses: hausgold/actions/ci@master
|
32
|
+
with:
|
33
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
34
|
+
settings: '${{ github.repository }}'
|
35
|
+
target: ci/gem-test
|
36
|
+
|
37
|
+
- name: Switch to SSH remotes for the Git repository
|
38
|
+
run: git-ssh-remotes
|
39
|
+
|
40
|
+
- name: Enforce version '${{ github.event.inputs.VERSION }}'
|
41
|
+
run: set-gem-version '${{ github.event.inputs.VERSION }}'
|
42
|
+
|
43
|
+
- name: Prepare the Git release commit
|
44
|
+
run: git-release-commit '${{ github.event.inputs.VERSION }}'
|
45
|
+
|
46
|
+
- name: Push the release Git commit/tag and package to the registry
|
47
|
+
run: make release
|
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at development@hausgold.de. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/README.md
CHANGED
@@ -25,7 +25,9 @@ flexible on the JWT verification level.
|
|
25
25
|
- [Custom JWT verification key](#custom-jwt-verification-key)
|
26
26
|
- [Full RSA256 example](#full-rsa256-example)
|
27
27
|
- [Development](#development)
|
28
|
+
- [Code of Conduct](#code-of-conduct)
|
28
29
|
- [Contributing](#contributing)
|
30
|
+
- [Releasing](#releasing)
|
29
31
|
|
30
32
|
## Installation
|
31
33
|
|
@@ -265,17 +267,28 @@ end
|
|
265
267
|
|
266
268
|
## Development
|
267
269
|
|
268
|
-
After checking out the repo, run `
|
269
|
-
`
|
270
|
+
After checking out the repo, run `make install` to install dependencies. Then,
|
271
|
+
run `make test` to run the tests. You can also run `make shell-irb` for an
|
270
272
|
interactive prompt that will allow you to experiment.
|
271
273
|
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
274
|
+
## Code of Conduct
|
275
|
+
|
276
|
+
Everyone interacting in the project codebase, issue tracker, chat
|
277
|
+
rooms and mailing lists is expected to follow the [code of
|
278
|
+
conduct](./CODE_OF_CONDUCT.md).
|
277
279
|
|
278
280
|
## Contributing
|
279
281
|
|
280
282
|
Bug reports and pull requests are welcome on GitHub at
|
281
|
-
https://github.com/hausgold/keyless.
|
283
|
+
https://github.com/hausgold/keyless. Make sure that every pull request adds
|
284
|
+
a bullet point to the [changelog](./CHANGELOG.md) file with a reference to the
|
285
|
+
actual pull request.
|
286
|
+
|
287
|
+
## Releasing
|
288
|
+
|
289
|
+
The release process of this Gem is fully automated. You just need to open the
|
290
|
+
Github Actions [Release
|
291
|
+
Workflow](https://github.com/hausgold/keyless/actions/workflows/release.yml)
|
292
|
+
and trigger a new run via the **Run workflow** button. Insert the new version
|
293
|
+
number (check the [changelog](./CHANGELOG.md) first for the latest release) and
|
294
|
+
you're done.
|
data/lib/keyless/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keyless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
- Christopher Mühl
|
9
9
|
- Marcus Geißler
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -303,6 +303,7 @@ extra_rdoc_files: []
|
|
303
303
|
files:
|
304
304
|
- ".editorconfig"
|
305
305
|
- ".github/workflows/documentation.yml"
|
306
|
+
- ".github/workflows/release.yml"
|
306
307
|
- ".github/workflows/test.yml"
|
307
308
|
- ".gitignore"
|
308
309
|
- ".rspec"
|
@@ -311,6 +312,7 @@ files:
|
|
311
312
|
- ".yardopts"
|
312
313
|
- Appraisals
|
313
314
|
- CHANGELOG.md
|
315
|
+
- CODE_OF_CONDUCT.md
|
314
316
|
- Dockerfile
|
315
317
|
- Envfile
|
316
318
|
- Gemfile
|
@@ -333,7 +335,7 @@ files:
|
|
333
335
|
- lib/keyless/jwt.rb
|
334
336
|
- lib/keyless/rsa_public_key.rb
|
335
337
|
- lib/keyless/version.rb
|
336
|
-
homepage:
|
338
|
+
homepage:
|
337
339
|
licenses:
|
338
340
|
- MIT
|
339
341
|
metadata:
|
@@ -342,7 +344,7 @@ metadata:
|
|
342
344
|
changelog_uri: https://github.com/hausgold/keyless/blob/master/CHANGELOG.md
|
343
345
|
bug_tracker_uri: https://github.com/hausgold/keyless/issues
|
344
346
|
documentation_uri: https://www.rubydoc.info/gems/keyless
|
345
|
-
post_install_message:
|
347
|
+
post_install_message:
|
346
348
|
rdoc_options: []
|
347
349
|
require_paths:
|
348
350
|
- lib
|
@@ -357,8 +359,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
357
359
|
- !ruby/object:Gem::Version
|
358
360
|
version: '0'
|
359
361
|
requirements: []
|
360
|
-
rubygems_version: 3.3.
|
361
|
-
signing_key:
|
362
|
+
rubygems_version: 3.3.26
|
363
|
+
signing_key:
|
362
364
|
specification_version: 4
|
363
365
|
summary: A reusable JWT authentication helper
|
364
366
|
test_files: []
|