grape-jwt-authentication 3.1.0 → 3.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/test.yml +36 -1
- data/Appraisals +12 -0
- data/CHANGELOG.md +8 -0
- data/gemfiles/grape_1.gemfile +25 -0
- data/gemfiles/grape_2.gemfile +25 -0
- data/gemfiles/grape_3.gemfile +25 -0
- data/grape-jwt-authentication.gemspec +2 -2
- data/lib/grape/jwt/authentication/version.rb +1 -1
- data/lib/grape/jwt/authentication.rb +0 -1
- metadata +8 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2dc344933b04d2166715f0580af0d4e6904bfc36430e85d8258776d0eae5ba4b
|
|
4
|
+
data.tar.gz: 6969bbc278b237497418be8b35362a5be11c0b0013647760bd44da33cfdf8d0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 815ed44f92461b67e059b35b746549fd0139acd3641b13b691561848ce8d80833b672bcced0699cde2bdcd429732e6974cf2619fe2f9ae1c6e6509bba3fc14df
|
|
7
|
+
data.tar.gz: bb06cd6e6640293be1930caaae50cbd762bd989dc2d8974acc7656241d7af256bd877557991e242d83590675fb04a66179d22ec59d5e255ac7ef4218087743c2
|
data/.github/workflows/test.yml
CHANGED
|
@@ -11,7 +11,7 @@ concurrency:
|
|
|
11
11
|
cancel-in-progress: true
|
|
12
12
|
|
|
13
13
|
jobs:
|
|
14
|
-
test:
|
|
14
|
+
test-rails:
|
|
15
15
|
name: 'Test the gem (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})'
|
|
16
16
|
runs-on: ubuntu-22.04
|
|
17
17
|
timeout-minutes: 5
|
|
@@ -45,3 +45,38 @@ jobs:
|
|
|
45
45
|
|
|
46
46
|
- name: Upload the code coverage report
|
|
47
47
|
run: coverage
|
|
48
|
+
|
|
49
|
+
test-grape:
|
|
50
|
+
name: 'Test the gem (Ruby ${{ matrix.ruby }}, Grape ${{ matrix.grape }})'
|
|
51
|
+
runs-on: ubuntu-22.04
|
|
52
|
+
timeout-minutes: 5
|
|
53
|
+
strategy:
|
|
54
|
+
fail-fast: false
|
|
55
|
+
matrix:
|
|
56
|
+
ruby: ['3.2', '3.3', '3.4']
|
|
57
|
+
grape: ['1', '2', '3']
|
|
58
|
+
env:
|
|
59
|
+
BUNDLE_GEMFILE: 'gemfiles/grape_${{ matrix.grape }}.gemfile'
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@v4
|
|
62
|
+
|
|
63
|
+
- name: Install the correct Ruby version
|
|
64
|
+
uses: ruby/setup-ruby@v1
|
|
65
|
+
with:
|
|
66
|
+
ruby-version: ${{ matrix.ruby }}
|
|
67
|
+
bundler-cache: true
|
|
68
|
+
rubygems: '3.6.9'
|
|
69
|
+
|
|
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
|
+
- name: Run the gem tests
|
|
79
|
+
run: make test
|
|
80
|
+
|
|
81
|
+
- name: Upload the code coverage report
|
|
82
|
+
run: coverage
|
data/Appraisals
CHANGED
|
@@ -23,3 +23,15 @@ appraise 'rails-8.1' do
|
|
|
23
23
|
gem 'activerecord', '~> 8.1.0'
|
|
24
24
|
gem 'activesupport', '~> 8.1.0'
|
|
25
25
|
end
|
|
26
|
+
|
|
27
|
+
appraise 'grape-1' do
|
|
28
|
+
gem 'grape', '~> 1.8.0'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
appraise 'grape-2' do
|
|
32
|
+
gem 'grape', '~> 2.4.0'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
appraise 'grape-3' do
|
|
36
|
+
gem 'grape', '~> 3.0.0'
|
|
37
|
+
end
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
+
### 3.2.0 (2 December 2025)
|
|
6
|
+
|
|
7
|
+
* Added appraisals for Grape 1, 2 and 3 and loosed up the version requirement
|
|
8
|
+
to `>= 1, < 4.0` ([#28](https://github.com/hausgold/grape-jwt-authentication/pull/28))
|
|
9
|
+
* Loosed up the version requirement for the `jwt` gem to `>= 2.6`, so people
|
|
10
|
+
can [migrate to
|
|
11
|
+
3.0+](https://github.com/jwt/ruby-jwt/blob/v3.1.2/UPGRADING.md) ([#28](https://github.com/hausgold/grape-jwt-authentication/pull/28))
|
|
12
|
+
|
|
5
13
|
### 3.1.0 (23 October 2025)
|
|
6
14
|
|
|
7
15
|
* Dropped Reek ([#24](https://github.com/hausgold/grape-jwt-authentication/pull/24))
|
|
@@ -0,0 +1,25 @@
|
|
|
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 "grape", "~> 1.8.0"
|
|
24
|
+
|
|
25
|
+
gemspec path: "../"
|
|
@@ -0,0 +1,25 @@
|
|
|
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 "grape", "~> 2.4.0"
|
|
24
|
+
|
|
25
|
+
gemspec path: "../"
|
|
@@ -0,0 +1,25 @@
|
|
|
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 "grape", "~> 3.0.0"
|
|
24
|
+
|
|
25
|
+
gemspec path: "../"
|
|
@@ -34,9 +34,9 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.required_ruby_version = '>= 3.2'
|
|
35
35
|
|
|
36
36
|
spec.add_dependency 'activesupport', '>= 7.1'
|
|
37
|
-
spec.add_dependency 'grape', '>= 1.0', '<
|
|
37
|
+
spec.add_dependency 'grape', '>= 1.0', '< 4.0'
|
|
38
38
|
spec.add_dependency 'httparty', '>= 0.21'
|
|
39
|
-
spec.add_dependency 'jwt', '
|
|
39
|
+
spec.add_dependency 'jwt', '>= 2.6'
|
|
40
40
|
spec.add_dependency 'keyless', '~> 2.1'
|
|
41
41
|
spec.add_dependency 'mutex_m', '>= 0.3'
|
|
42
42
|
spec.add_dependency 'recursive-open-struct', '~> 2.0'
|
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
|
+
version: 3.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hermann Mayer
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
version: '1.0'
|
|
33
33
|
- - "<"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: '
|
|
35
|
+
version: '4.0'
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -42,7 +42,7 @@ dependencies:
|
|
|
42
42
|
version: '1.0'
|
|
43
43
|
- - "<"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: '
|
|
45
|
+
version: '4.0'
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: httparty
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -61,14 +61,14 @@ dependencies:
|
|
|
61
61
|
name: jwt
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
|
64
|
-
- - "
|
|
64
|
+
- - ">="
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
66
|
version: '2.6'
|
|
67
67
|
type: :runtime
|
|
68
68
|
prerelease: false
|
|
69
69
|
version_requirements: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements:
|
|
71
|
-
- - "
|
|
71
|
+
- - ">="
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
73
|
version: '2.6'
|
|
74
74
|
- !ruby/object:Gem::Dependency
|
|
@@ -160,6 +160,9 @@ files:
|
|
|
160
160
|
- config/docker/.inputrc
|
|
161
161
|
- doc/assets/project.svg
|
|
162
162
|
- docker-compose.yml
|
|
163
|
+
- gemfiles/grape_1.gemfile
|
|
164
|
+
- gemfiles/grape_2.gemfile
|
|
165
|
+
- gemfiles/grape_3.gemfile
|
|
163
166
|
- gemfiles/rails_6.1.gemfile
|
|
164
167
|
- gemfiles/rails_7.1.gemfile
|
|
165
168
|
- gemfiles/rails_7.2.gemfile
|