grape-jwt-authentication 3.4.0 → 3.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d8de4079fc4825d5b7d3e42491d6a5434427c5a5245fb881111b26cabbe0f02
4
- data.tar.gz: ac90a48ecef9ae3b46b007d393469fceccf37d803f893d82b618668e3f05a95d
3
+ metadata.gz: 9719ae440e6b8ac2a56ef57ff575fc3b2d63ec3a2114cebc5bc6eca6fee8a821
4
+ data.tar.gz: 2dd234dc6764fec84b825fc32c855579721eace56223e5e02b401b41fc21d4f5
5
5
  SHA512:
6
- metadata.gz: c5b669dd46c76a1e8a98fc1c7cf86cd46953b51879ed82a10868691a1a93b97d51c96547626fa12199735972a7f24c54cd272eeed73af9c4d7d0507a484b4504
7
- data.tar.gz: e85c43874d86d66b8b0fe2ad3a01c2b3b0a052ad2e9bcf05f756832eab537684bf8617d667cba8fad8c6d14b6e205bb168d204bdd1e49ca2b3c4fd4905fc22a7
6
+ metadata.gz: 90fb91dad88f5ba18d0d6bcf201c49ee02505697a571a4aef20ffc3541b4caf22d57d4a69f86f20bd7e005940b5013ea368b9a2e61fab1d27599bf7a02723efd
7
+ data.tar.gz: cded78eb42cf44254b9bf618ad30383311eefb4bc68820612e37387472703f65d42c0c06415f794bb7b389b7a5befd3497ec414c4b4ffa0a6b033d7d31f220a7
@@ -15,26 +15,24 @@ concurrency:
15
15
  jobs:
16
16
  docs:
17
17
  name: Release the gem
18
- runs-on: ubuntu-22.04
18
+ runs-on: ubuntu-24.04
19
19
  timeout-minutes: 10
20
20
  steps:
21
- - uses: actions/checkout@v4
22
-
23
- - name: Install Ruby 3.2
24
- uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: 3.2
27
- bundler-cache: true
28
- rubygems: '3.6.9'
29
-
30
- - name: Prepare the virtual environment
31
- uses: hausgold/actions/ci@master
21
+ - name: Prepare the environment
22
+ uses: hausgold/actions/ci@v2
32
23
  with:
33
24
  clone_token: '${{ secrets.CLONE_TOKEN }}'
34
25
  settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
35
26
  settings: '${{ github.repository }}'
36
27
  target: ci/gem-test
37
28
 
29
+ - name: Install Ruby 3.3
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: 3.3
33
+ bundler-cache: true
34
+ rubygems: '3.6.9'
35
+
38
36
  - name: Switch to SSH remotes for the Git repository
39
37
  run: git-ssh-remotes
40
38
 
@@ -13,17 +13,23 @@ concurrency:
13
13
  jobs:
14
14
  test-rails:
15
15
  name: 'Test the gem (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})'
16
- runs-on: ubuntu-22.04
16
+ runs-on: ubuntu-24.04
17
17
  timeout-minutes: 5
18
18
  strategy:
19
19
  fail-fast: false
20
20
  matrix:
21
- ruby: ['3.2', '3.3', '3.4']
22
- rails: ['7.1', '7.2', '8.0', '8.1']
21
+ ruby: ['3.3', '3.4', '4.0']
22
+ rails: ['7.2', '8.0', '8.1']
23
23
  env:
24
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
25
  steps:
26
- - uses: actions/checkout@v4
26
+ - name: Prepare the environment
27
+ uses: hausgold/actions/ci@v2
28
+ with:
29
+ clone_token: '${{ secrets.CLONE_TOKEN }}'
30
+ settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
31
+ settings: '${{ github.repository }}'
32
+ target: ci/gem-test
27
33
 
28
34
  - name: Install the correct Ruby version
29
35
  uses: ruby/setup-ruby@v1
@@ -32,14 +38,6 @@ jobs:
32
38
  bundler-cache: true
33
39
  rubygems: '3.6.9'
34
40
 
35
- - name: Prepare the virtual environment
36
- uses: hausgold/actions/ci@master
37
- with:
38
- clone_token: '${{ secrets.CLONE_TOKEN }}'
39
- settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
40
- settings: '${{ github.repository }}'
41
- target: ci/gem-test
42
-
43
41
  - name: Run the gem tests
44
42
  run: make test
45
43
 
@@ -48,17 +46,23 @@ jobs:
48
46
 
49
47
  test-grape:
50
48
  name: 'Test the gem (Ruby ${{ matrix.ruby }}, Grape ${{ matrix.grape }})'
51
- runs-on: ubuntu-22.04
49
+ runs-on: ubuntu-24.04
52
50
  timeout-minutes: 5
53
51
  strategy:
54
52
  fail-fast: false
55
53
  matrix:
56
- ruby: ['3.2', '3.3', '3.4']
54
+ ruby: ['3.3', '3.4', '4.0']
57
55
  grape: ['1', '2', '3']
58
56
  env:
59
57
  BUNDLE_GEMFILE: 'gemfiles/grape_${{ matrix.grape }}.gemfile'
60
58
  steps:
61
- - uses: actions/checkout@v4
59
+ - name: Prepare the environment
60
+ uses: hausgold/actions/ci@v2
61
+ with:
62
+ clone_token: '${{ secrets.CLONE_TOKEN }}'
63
+ settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
64
+ settings: '${{ github.repository }}'
65
+ target: ci/gem-test
62
66
 
63
67
  - name: Install the correct Ruby version
64
68
  uses: ruby/setup-ruby@v1
@@ -67,14 +71,6 @@ jobs:
67
71
  bundler-cache: true
68
72
  rubygems: '3.6.9'
69
73
 
70
- - name: Prepare the virtual environment
71
- uses: hausgold/actions/ci@master
72
- with:
73
- clone_token: '${{ secrets.CLONE_TOKEN }}'
74
- settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
75
- settings: '${{ github.repository }}'
76
- target: ci/gem-test
77
-
78
74
  - name: Run the gem tests
79
75
  run: make test
80
76
 
data/.rubocop.yml CHANGED
@@ -2,6 +2,10 @@ inherit_from:
2
2
  - https://potpourri.hausgold.de/config/rubocop.yml
3
3
  - https://potpourri.hausgold.de/config/rubocop-gem.yml
4
4
 
5
+ inherit_mode:
6
+ merge:
7
+ - Exclude
8
+
5
9
  plugins:
6
10
  - rubocop-rspec
7
11
  - rubocop-rails
@@ -13,8 +17,8 @@ AllCops:
13
17
  NewCops: enable
14
18
  SuggestExtensions: false
15
19
  DisplayCopNames: true
16
- TargetRubyVersion: 3.2
17
- TargetRailsVersion: 7.1
20
+ TargetRubyVersion: 3.3
21
+ TargetRailsVersion: 7.2
18
22
  Exclude:
19
23
  - bin/**/*
20
24
  - vendor/**/*
data/Appraisals CHANGED
@@ -1,11 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-7.1' do
4
- gem 'activejob', '~> 7.1.0'
5
- gem 'activerecord', '~> 7.1.0'
6
- gem 'activesupport', '~> 7.1.0'
7
- end
8
-
9
3
  appraise 'rails-7.2' do
10
4
  gem 'activejob', '~> 7.2.0'
11
5
  gem 'activerecord', '~> 7.2.0'
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 3.6.0 (7 January 2026)
6
+
7
+ * Upgraded to Ubuntu 24.04 on Github Actions ([#34](https://github.com/hausgold/grape-jwt-authentication/pull/34))
8
+ * Migrated to hausgold/actions@v2 ([#33](https://github.com/hausgold/grape-jwt-authentication/pull/33))
9
+
10
+ ### 3.5.0 (26 December 2025)
11
+
12
+ * Added Ruby 4.0 support ([#32](https://github.com/hausgold/grape-jwt-authentication/pull/32))
13
+ * Dropped Ruby 3.2 and Rails 7.1 support ([#31](https://github.com/hausgold/grape-jwt-authentication/pull/31))
14
+
5
15
  ### 3.4.0 (19 December 2025)
6
16
 
7
17
  * Migrated to a shared Rubocop configuration for HAUSGOLD gems ([#30](https://github.com/hausgold/grape-jwt-authentication/pull/30))
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM hausgold/ruby:3.2
1
+ FROM hausgold/ruby:3.3
2
2
  LABEL org.opencontainers.image.authors="containers@hausgold.de"
3
3
 
4
4
  # Update system gem
data/Gemfile CHANGED
@@ -9,12 +9,12 @@ gemspec
9
9
 
10
10
  # Development dependencies
11
11
  gem 'appraisal', '~> 2.4'
12
- gem 'bundler', '~> 2.6'
12
+ gem 'bundler', '>= 2.6', '< 5'
13
13
  gem 'countless', '~> 2.2'
14
14
  gem 'guard-rspec', '~> 4.7'
15
15
  gem 'rack', '~> 2.2'
16
16
  gem 'rack-test', '~> 2.0'
17
- gem 'railties', '>= 7.1'
17
+ gem 'railties', '>= 7.2'
18
18
  gem 'rake', '~> 13.0'
19
19
  gem 'rspec', '~> 3.12'
20
20
  gem 'rubocop'
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 HAUSGOLD | talocasa GmbH
3
+ Copyright (c) 2026 HAUSGOLD | talocasa GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/Makefile CHANGED
@@ -85,7 +85,8 @@ all:
85
85
  install:
86
86
  # Install the dependencies
87
87
  @$(MKDIR) -p $(VENDOR_DIR)
88
- @$(call run-shell,$(BUNDLE) check || $(BUNDLE) install --path $(VENDOR_DIR))
88
+ @$(call run-shell,$(BUNDLE) config set --local path '$(VENDOR_DIR)')
89
+ @$(call run-shell,$(BUNDLE) check || $(BUNDLE) install)
89
90
  @$(call run-shell,$(BUNDLE) exec $(APPRAISAL) install)
90
91
 
91
92
  update:
@@ -117,7 +118,7 @@ test-style: \
117
118
  test-style-ruby:
118
119
  # Run the static code analyzer (rubocop)
119
120
  @$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a \
120
- || ($(TEST) $$($(RUBY_VERSION)) != '3.2' && true))
121
+ || ($(TEST) $$($(RUBY_VERSION)) != '3.3' && true))
121
122
 
122
123
  clean:
123
124
  # Clean the dependencies
@@ -3,12 +3,12 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "guard-rspec", "~> 4.7"
9
9
  gem "rack", "~> 2.2"
10
10
  gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 7.1"
11
+ gem "railties", ">= 7.2"
12
12
  gem "rake", "~> 13.0"
13
13
  gem "rspec", "~> 3.12"
14
14
  gem "rubocop"
@@ -3,12 +3,12 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "guard-rspec", "~> 4.7"
9
9
  gem "rack", "~> 2.2"
10
10
  gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 7.1"
11
+ gem "railties", ">= 7.2"
12
12
  gem "rake", "~> 13.0"
13
13
  gem "rspec", "~> 3.12"
14
14
  gem "rubocop"
@@ -3,12 +3,12 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "guard-rspec", "~> 4.7"
9
9
  gem "rack", "~> 2.2"
10
10
  gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 7.1"
11
+ gem "railties", ">= 7.2"
12
12
  gem "rake", "~> 13.0"
13
13
  gem "rspec", "~> 3.12"
14
14
  gem "rubocop"
@@ -3,12 +3,12 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "guard-rspec", "~> 4.7"
9
9
  gem "rack", "~> 2.2"
10
10
  gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 7.1"
11
+ gem "railties", ">= 7.2"
12
12
  gem "rake", "~> 13.0"
13
13
  gem "rspec", "~> 3.12"
14
14
  gem "rubocop"
@@ -3,12 +3,12 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "guard-rspec", "~> 4.7"
9
9
  gem "rack", "~> 2.2"
10
10
  gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 7.1"
11
+ gem "railties", ">= 7.2"
12
12
  gem "rake", "~> 13.0"
13
13
  gem "rspec", "~> 3.12"
14
14
  gem "rubocop"
@@ -3,12 +3,12 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "guard-rspec", "~> 4.7"
9
9
  gem "rack", "~> 2.2"
10
10
  gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 7.1"
11
+ gem "railties", ">= 7.2"
12
12
  gem "rake", "~> 13.0"
13
13
  gem "rspec", "~> 3.12"
14
14
  gem "rubocop"
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.required_ruby_version = '>= 3.2'
34
+ spec.required_ruby_version = '>= 3.3'
35
35
 
36
- spec.add_dependency 'activesupport', '>= 7.1'
36
+ spec.add_dependency 'activesupport', '>= 7.2'
37
37
  spec.add_dependency 'grape', '>= 1.0', '< 4.0'
38
38
  spec.add_dependency 'jwt', '>= 2.6'
39
39
  spec.add_dependency 'keyless', '~> 2.3'
@@ -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 = '3.4.0'
8
+ VERSION = '3.6.0'
9
9
 
10
10
  class << self
11
11
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-jwt-authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '7.1'
18
+ version: '7.2'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '7.1'
25
+ version: '7.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: grape
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -149,8 +149,6 @@ files:
149
149
  - gemfiles/grape_1.gemfile
150
150
  - gemfiles/grape_2.gemfile
151
151
  - gemfiles/grape_3.gemfile
152
- - gemfiles/rails_6.1.gemfile
153
- - gemfiles/rails_7.1.gemfile
154
152
  - gemfiles/rails_7.2.gemfile
155
153
  - gemfiles/rails_8.0.gemfile
156
154
  - gemfiles/rails_8.1.gemfile
@@ -175,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
173
  requirements:
176
174
  - - ">="
177
175
  - !ruby/object:Gem::Version
178
- version: '3.2'
176
+ version: '3.3'
179
177
  required_rubygems_version: !ruby/object:Gem::Requirement
180
178
  requirements:
181
179
  - - ">="
@@ -1,27 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.3"
7
- gem "countless", "~> 1.1"
8
- gem "guard-rspec", "~> 4.7"
9
- gem "rack", "~> 2.2"
10
- gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 6.1"
12
- gem "rake", "~> 13.0"
13
- gem "rspec", "~> 3.12"
14
- gem "rubocop"
15
- gem "rubocop-rails"
16
- gem "rubocop-rspec"
17
- gem "simplecov", ">= 0.22"
18
- gem "timecop", ">= 0.9.6"
19
- gem "vcr", "~> 6.0"
20
- gem "webmock", "~> 3.18"
21
- gem "yard", ">= 0.9.28"
22
- gem "yard-activesupport-concern", ">= 0.0.1"
23
- gem "activejob", "~> 6.1.0"
24
- gem "activerecord", "~> 6.1.0"
25
- gem "activesupport", "~> 6.1.0"
26
-
27
- gemspec path: "../"
@@ -1,27 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
7
- gem "countless", "~> 2.2"
8
- gem "guard-rspec", "~> 4.7"
9
- gem "rack", "~> 2.2"
10
- gem "rack-test", "~> 2.0"
11
- gem "railties", ">= 7.1"
12
- gem "rake", "~> 13.0"
13
- gem "rspec", "~> 3.12"
14
- gem "rubocop"
15
- gem "rubocop-rails"
16
- gem "rubocop-rspec"
17
- gem "simplecov", ">= 0.22"
18
- gem "timecop", ">= 0.9.6"
19
- gem "vcr", "~> 6.0"
20
- gem "webmock", "~> 3.18"
21
- gem "yard", ">= 0.9.28"
22
- gem "yard-activesupport-concern", ">= 0.0.1"
23
- gem "activejob", "~> 7.1.0"
24
- gem "activerecord", "~> 7.1.0"
25
- gem "activesupport", "~> 7.1.0"
26
-
27
- gemspec path: "../"