grape-jwt-authentication 2.3.0 → 2.4.1

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: 6b2b39a53b2482a6c6e9479cef2fe25de503034ef972db992d804858b04b5d66
4
- data.tar.gz: 2e96eb6bf6b40cb8a1c7068a4146dae54673de021148ee36f42483366ed3973d
3
+ metadata.gz: 3fb23c7d56aa99b1f75f3f9e8441d32ac7560304200917ec3b89c811b1162ab3
4
+ data.tar.gz: 3207485fcc97cf5eae8ba969da3b4d9fbfad9973137ceab17f021c56de3bff70
5
5
  SHA512:
6
- metadata.gz: f5c69c37ce78036b4fd706d3a665452e69d8695e7cba84261a7339c2c30ed02a5e7c0bbb13e48e375187f55533da948a91dbba7f74087e312fb684dabcbbc041
7
- data.tar.gz: 3903190b5dcb51a634ef564d91ae9569f996f1b943dc7d460442cf7a1e2e4ab024db881a72c4a7f810f016486220a3f1f2246e0a7a243e8ab9005d111ecb420b
6
+ metadata.gz: 2630ed55af44143b9f7598056965eb183efc4239ca9fa21d156e3397e8da0439a0d8ceaa3aa980303eeb25c957eaf3ee7c480f5f9c392764f8b4010c814d97aa
7
+ data.tar.gz: 8cb90cb38dddd2c76e37f8e037f4bdf60e5a3cf87954b40e7cc528d04b73007121ce4331363d2b74c498dccfd755d0b4ab2d6bb29bb5d2811adf1c0017fb16e3
@@ -18,14 +18,14 @@ jobs:
18
18
  runs-on: ubuntu-22.04
19
19
  timeout-minutes: 5
20
20
  steps:
21
- - uses: actions/checkout@v3
21
+ - uses: actions/checkout@v4
22
22
 
23
- - name: Install Ruby 2.5
23
+ - name: Install Ruby 2.7
24
24
  uses: ruby/setup-ruby@v1
25
25
  with:
26
- ruby-version: 2.5
26
+ ruby-version: 2.7
27
27
  bundler-cache: true
28
- rubygems: '3.3.26'
28
+ rubygems: '3.4.22'
29
29
 
30
30
  - name: Prepare the virtual environment
31
31
  uses: hausgold/actions/ci@master
@@ -46,3 +46,9 @@ jobs:
46
46
 
47
47
  - name: Push the release Git commit/tag and package to the registry
48
48
  run: make release
49
+
50
+ - name: Build and upload application documentation
51
+ run: api-docs && coverage --docs-only
52
+ env:
53
+ WORKFLOW_DISPATCH_TOKEN: '${{ secrets.WORKFLOW_DISPATCH_TOKEN }}'
54
+ GITHUB_TAG: 'v${{ github.event.inputs.VERSION }}'
@@ -18,19 +18,19 @@ jobs:
18
18
  strategy:
19
19
  fail-fast: false
20
20
  matrix:
21
- ruby: ['2.5', '2.7']
22
- rails: ['5.2']
21
+ ruby: ['2.7']
22
+ rails: ['5.2', '6.1', '7.1']
23
23
  env:
24
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
25
  steps:
26
- - uses: actions/checkout@v3
26
+ - uses: actions/checkout@v4
27
27
 
28
28
  - name: Install the correct Ruby version
29
29
  uses: ruby/setup-ruby@v1
30
30
  with:
31
31
  ruby-version: ${{ matrix.ruby }}
32
32
  bundler-cache: true
33
- rubygems: '3.3.26'
33
+ rubygems: '3.4.22'
34
34
 
35
35
  - name: Prepare the virtual environment
36
36
  uses: hausgold/actions/ci@master
@@ -45,21 +45,3 @@ jobs:
45
45
 
46
46
  - name: Upload the code coverage report
47
47
  run: coverage
48
-
49
- trigger-docs:
50
- name: Trigger the documentation upload
51
- runs-on: ubuntu-22.04
52
- timeout-minutes: 2
53
- needs: test
54
- if: github.ref == 'refs/heads/master'
55
- steps:
56
- - name: Prepare the virtual environment
57
- uses: hausgold/actions/ci@master
58
- with:
59
- clone_token: '${{ secrets.CLONE_TOKEN }}'
60
- settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
61
- settings: '${{ github.repository }}'
62
- target: ci/noop
63
-
64
- - name: Trigger the documentation upload
65
- run: workflow documentation
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /log/
9
10
  /vendor/
10
11
  /gemfiles/vendor/
11
12
  /Gemfile.lock
data/.rubocop.yml CHANGED
@@ -12,7 +12,7 @@ AllCops:
12
12
  NewCops: enable
13
13
  SuggestExtensions: false
14
14
  DisplayCopNames: true
15
- TargetRubyVersion: 2.5
15
+ TargetRubyVersion: 2.7
16
16
  TargetRailsVersion: 5.2
17
17
  Exclude:
18
18
  - bin/**/*
data/Appraisals CHANGED
@@ -5,3 +5,15 @@ appraise 'rails-5.2' do
5
5
  gem 'activerecord', '~> 5.2.0'
6
6
  gem 'activesupport', '~> 5.2.0'
7
7
  end
8
+
9
+ appraise 'rails-6.1' do
10
+ gem 'activejob', '~> 6.1.0'
11
+ gem 'activerecord', '~> 6.1.0'
12
+ gem 'activesupport', '~> 6.1.0'
13
+ end
14
+
15
+ appraise 'rails-7.1' do
16
+ gem 'activejob', '~> 7.1.0'
17
+ gem 'activerecord', '~> 7.1.0'
18
+ gem 'activesupport', '~> 7.1.0'
19
+ end
data/CHANGELOG.md CHANGED
@@ -2,9 +2,18 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 2.4.1
6
+
7
+ * Added API docs building to continuous integration (#14)
8
+
9
+ ### 2.4.0
10
+
11
+ * Dropped support for Ruby <2.7 (#13)
12
+
5
13
  ### 2.3.0
6
14
 
7
- * Implemented case-insensitive header value checks for Grape 2.0.0+ compatibility, aligning with HTTP/2+ semantics (#11, #12)
15
+ * Implemented case-insensitive header value checks for Grape 2.0.0+
16
+ compatibility, aligning with HTTP/2+ semantics (#11, #12)
8
17
  * Moved the development dependencies from the gemspec to the Gemfile (#10)
9
18
 
10
19
  ### 2.2.0
data/Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
- FROM hausgold/ruby:2.5
1
+ FROM hausgold/ruby:2.7
2
2
  MAINTAINER Hermann Mayer <hermann.mayer@hausgold.de>
3
3
 
4
4
  # Update system gem
5
- RUN gem update --system '3.3.26'
5
+ RUN gem update --system '3.4.22'
6
6
 
7
7
  # Install system packages and the latest bundler
8
8
  RUN apt-get update -yqqq && \
@@ -11,7 +11,7 @@ RUN apt-get update -yqqq && \
11
11
  ca-certificates \
12
12
  bash-completion inotify-tools && \
13
13
  echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && /usr/sbin/locale-gen && \
14
- gem install bundler -v '~> 2.3.0' --no-document --no-prerelease
14
+ gem install bundler -v '~> 2.4.22' --no-document --no-prerelease
15
15
 
16
16
  # Add new web user
17
17
  RUN mkdir /app && \
@@ -16,7 +16,9 @@ sudo sed -i 's/autostart=.*/autostart=false/g' /etc/supervisor/conf.d/*
16
16
  sudo supervisord >/dev/null 2>&1 &
17
17
 
18
18
  # Wait for supervisord
19
- while ! supervisorctl status >/dev/null 2>&1; do sleep 1; done
19
+ while ! (sudo supervisorctl status | grep avahi) >/dev/null 2>&1; do
20
+ sleep 1
21
+ done
20
22
 
21
23
  # Boot the mDNS stack
22
24
  echo '# Start the mDNS stack'
@@ -0,0 +1,27 @@
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", ">= 5.2"
12
+ gem "rake", "~> 13.0"
13
+ gem "rspec", "~> 3.12"
14
+ gem "rubocop", "~> 1.28"
15
+ gem "rubocop-rails", "~> 2.14"
16
+ gem "rubocop-rspec", "~> 2.10"
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: "../"
@@ -0,0 +1,27 @@
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", ">= 5.2"
12
+ gem "rake", "~> 13.0"
13
+ gem "rspec", "~> 3.12"
14
+ gem "rubocop", "~> 1.28"
15
+ gem "rubocop-rails", "~> 2.14"
16
+ gem "rubocop-rspec", "~> 2.10"
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: "../"
@@ -31,7 +31,7 @@ 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 = '>= 2.5'
34
+ spec.required_ruby_version = '>= 2.7'
35
35
 
36
36
  spec.add_runtime_dependency 'activesupport', '>= 5.2'
37
37
  spec.add_runtime_dependency 'grape', '>= 1.0', '< 3.0'
@@ -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.3.0'
8
+ VERSION = '2.4.1'
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.3.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -108,7 +108,6 @@ extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
110
  - ".editorconfig"
111
- - ".github/workflows/documentation.yml"
112
111
  - ".github/workflows/release.yml"
113
112
  - ".github/workflows/test.yml"
114
113
  - ".gitignore"
@@ -135,6 +134,8 @@ files:
135
134
  - doc/assets/project.svg
136
135
  - docker-compose.yml
137
136
  - gemfiles/rails_5.2.gemfile
137
+ - gemfiles/rails_6.1.gemfile
138
+ - gemfiles/rails_7.1.gemfile
138
139
  - grape-jwt-authentication.gemspec
139
140
  - lib/grape/jwt/authentication.rb
140
141
  - lib/grape/jwt/authentication/configuration.rb
@@ -158,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
159
  requirements:
159
160
  - - ">="
160
161
  - !ruby/object:Gem::Version
161
- version: '2.5'
162
+ version: '2.7'
162
163
  required_rubygems_version: !ruby/object:Gem::Requirement
163
164
  requirements:
164
165
  - - ">="
@@ -1,40 +0,0 @@
1
- name: Build Documentation
2
- on:
3
- repository_dispatch:
4
- types: [documentation]
5
-
6
- concurrency:
7
- group: 'docs'
8
-
9
- jobs:
10
- docs:
11
- name: Build gem documentation
12
- runs-on: ubuntu-22.04
13
- timeout-minutes: 5
14
- steps:
15
- - uses: actions/checkout@v3
16
-
17
- - name: Install the correct Ruby version
18
- uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: 2.5
21
- bundler-cache: true
22
- rubygems: '3.3.26'
23
-
24
- - name: Prepare the virtual environment
25
- uses: hausgold/actions/ci@master
26
- with:
27
- clone_token: '${{ secrets.CLONE_TOKEN }}'
28
- settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
29
- settings: '${{ github.repository }}'
30
- target: ci/gem-test
31
-
32
- - name: Build gem documentation
33
- run: make docs
34
-
35
- - name: Upload the code coverage report
36
- run: coverage
37
-
38
- - name: Add this job to the commit status
39
- run: commit-status '${{ job.status }}'
40
- if: always()