grape-jwt-authentication 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a76b78814c21de200efd81a5b97a2032909f0dc67cb702562a814abb250986ab
4
- data.tar.gz: dc5c5536b5d5d445ae8391d7787e41858c178e200fc6cdf41fe8cb1349b7fa77
3
+ metadata.gz: b1a5a4a360cafde26473338f304b9ec569beb1c8ea0467e735ce08e489c33a86
4
+ data.tar.gz: 6a19583fd428e220057b9fcf761ca839a51d1c5bf46d7fcdb639679ed84fb3fc
5
5
  SHA512:
6
- metadata.gz: 4cb2b1ff597b9bfee4947d57a5c1ad0f0b1123b298a5675d78d761786ea2eb33cdb4b199d23e72e1fa41b72dc708b2d6149d3150bc5e10d9544313943e34203e
7
- data.tar.gz: 4fc142b1b6519a2a4fa0f1ba5895fd929bfca37ff26a1ad3de2096b23241f1d846710a0f3abfdb3f0a6e020300c6728f9db3686f0d0887f20e5c2ae3f480e973
6
+ metadata.gz: 3ff00b93b0bb0ce09c1d85bd17dcf4aa3c71549ea12a1c77e0d1f99e90d219137d0a8727675e5969fdba3812d3a4439c4ec7d0d24e796b264d137e073fa7cb62
7
+ data.tar.gz: f53b951cad8dc76b7838f70a60bd31838c2ab79101210fdb82d41de1f707559ad9b642656f4d54f8f8912673afe5a486ac1f7f73ac756cdb03c058ba1bb0f7b2
@@ -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
@@ -1,3 +1,11 @@
1
+ ### next
2
+
3
+ * TODO: Replace this bullet point with an actual description of a change.
4
+
5
+ ### 2.2.0
6
+
7
+ * Added support for Gem release automation
8
+
1
9
  ### 2.1.0
2
10
 
3
11
  * Bundler >= 2.3 is from now on required as minimal version (#9)
@@ -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
@@ -31,7 +31,9 @@ flexible on the JWT verification level.
31
31
  - [Per-API configuration](#per-api-configuration)
32
32
  - [Full RSA256 example](#full-rsa256-example)
33
33
  - [Development](#development)
34
+ - [Code of Conduct](#code-of-conduct)
34
35
  - [Contributing](#contributing)
36
+ - [Releasing](#releasing)
35
37
 
36
38
  ## Installation
37
39
 
@@ -413,17 +415,28 @@ end
413
415
 
414
416
  ## Development
415
417
 
416
- After checking out the repo, run `bin/setup` to install dependencies. Then, run
417
- `bundle exec rake spec` to run the tests. You can also run `bin/console` for an
418
+ After checking out the repo, run `make install` to install dependencies. Then,
419
+ run `make test` to run the tests. You can also run `make shell-irb` for an
418
420
  interactive prompt that will allow you to experiment.
419
421
 
420
- To install this gem onto your local machine, run `bundle exec rake install`. To
421
- release a new version, update the version number in `version.rb`, and then run
422
- `bundle exec rake release`, which will create a git tag for the version, push
423
- git commits and tags, and push the `.gem` file to
424
- [rubygems.org](https://rubygems.org).
422
+ ## Code of Conduct
423
+
424
+ Everyone interacting in the project codebase, issue tracker, chat
425
+ rooms and mailing lists is expected to follow the [code of
426
+ conduct](./CODE_OF_CONDUCT.md).
425
427
 
426
428
  ## Contributing
427
429
 
428
430
  Bug reports and pull requests are welcome on GitHub at
429
- https://github.com/hausgold/grape-jwt-authentication.
431
+ https://github.com/hausgold/grape-jwt-authentication. Make sure that every pull request adds
432
+ a bullet point to the [changelog](./CHANGELOG.md) file with a reference to the
433
+ actual pull request.
434
+
435
+ ## Releasing
436
+
437
+ The release process of this Gem is fully automated. You just need to open the
438
+ Github Actions [Release
439
+ Workflow](https://github.com/hausgold/grape-jwt-authentication/actions/workflows/release.yml)
440
+ and trigger a new run via the **Run workflow** button. Insert the new version
441
+ number (check the [changelog](./CHANGELOG.md) first for the latest release) and
442
+ you're done.
@@ -5,7 +5,7 @@ module Grape
5
5
  # The gem version details.
6
6
  module Authentication
7
7
  # The version of the +grape-jwt-authentication+ gem
8
- VERSION = '2.1.0'
8
+ VERSION = '2.2.0'
9
9
 
10
10
  class << self
11
11
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-jwt-authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -355,6 +355,7 @@ extra_rdoc_files: []
355
355
  files:
356
356
  - ".editorconfig"
357
357
  - ".github/workflows/documentation.yml"
358
+ - ".github/workflows/release.yml"
358
359
  - ".github/workflows/test.yml"
359
360
  - ".gitignore"
360
361
  - ".rspec"
@@ -363,6 +364,7 @@ files:
363
364
  - ".yardopts"
364
365
  - Appraisals
365
366
  - CHANGELOG.md
367
+ - CODE_OF_CONDUCT.md
366
368
  - Dockerfile
367
369
  - Envfile
368
370
  - Gemfile
@@ -385,7 +387,7 @@ files:
385
387
  - lib/grape/jwt/authentication/dependencies.rb
386
388
  - lib/grape/jwt/authentication/jwt_handler.rb
387
389
  - lib/grape/jwt/authentication/version.rb
388
- homepage:
390
+ homepage:
389
391
  licenses:
390
392
  - MIT
391
393
  metadata:
@@ -394,7 +396,7 @@ metadata:
394
396
  changelog_uri: https://github.com/hausgold/grape-jwt-authentication/blob/master/CHANGELOG.md
395
397
  bug_tracker_uri: https://github.com/hausgold/grape-jwt-authentication/issues
396
398
  documentation_uri: https://www.rubydoc.info/gems/grape-jwt-authentication
397
- post_install_message:
399
+ post_install_message:
398
400
  rdoc_options: []
399
401
  require_paths:
400
402
  - lib
@@ -409,8 +411,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
409
411
  - !ruby/object:Gem::Version
410
412
  version: '0'
411
413
  requirements: []
412
- rubygems_version: 3.3.8
413
- signing_key:
414
+ rubygems_version: 3.3.26
415
+ signing_key:
414
416
  specification_version: 4
415
417
  summary: A reusable Grape JWT authentication concern
416
418
  test_files: []