grape-jwt-authentication 2.3.0 → 2.4.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: 6b2b39a53b2482a6c6e9479cef2fe25de503034ef972db992d804858b04b5d66
4
- data.tar.gz: 2e96eb6bf6b40cb8a1c7068a4146dae54673de021148ee36f42483366ed3973d
3
+ metadata.gz: c6d7cd4e7b29be0ee62e126f876a7d2dbf41a14450ccd0f3c7fb245776ecab56
4
+ data.tar.gz: daa0779bd52d42f20a6d178a7fc250d963612447838667b7654d39c83c92d239
5
5
  SHA512:
6
- metadata.gz: f5c69c37ce78036b4fd706d3a665452e69d8695e7cba84261a7339c2c30ed02a5e7c0bbb13e48e375187f55533da948a91dbba7f74087e312fb684dabcbbc041
7
- data.tar.gz: 3903190b5dcb51a634ef564d91ae9569f996f1b943dc7d460442cf7a1e2e4ab024db881a72c4a7f810f016486220a3f1f2246e0a7a243e8ab9005d111ecb420b
6
+ metadata.gz: e09c4ea85cccfccaf096bb2eb56305fb818769588bbed3aedb7573cd4eaa801ef22bfe4bad423eed7e8bb5b45776f8ddf2955581ca84a06a0a9b7cbadff31fa5
7
+ data.tar.gz: 6451aaef79673f7a1b91b6c4a2c8a39c55966e13edc269413af26054a78d37499f59f9d604e9d34e103283798ab018bd9c03e837fb6abb89572e495fa0726b80
@@ -12,14 +12,14 @@ jobs:
12
12
  runs-on: ubuntu-22.04
13
13
  timeout-minutes: 5
14
14
  steps:
15
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v4
16
16
 
17
17
  - name: Install the correct Ruby version
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: 2.5
20
+ ruby-version: 2.7
21
21
  bundler-cache: true
22
- rubygems: '3.3.26'
22
+ rubygems: '3.4.22'
23
23
 
24
24
  - name: Prepare the virtual environment
25
25
  uses: hausgold/actions/ci@master
@@ -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
@@ -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
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,14 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 2.4.0
6
+
7
+ * Dropped support for Ruby <2.7 (#13)
8
+
5
9
  ### 2.3.0
6
10
 
7
- * Implemented case-insensitive header value checks for Grape 2.0.0+ compatibility, aligning with HTTP/2+ semantics (#11, #12)
11
+ * Implemented case-insensitive header value checks for Grape 2.0.0+
12
+ compatibility, aligning with HTTP/2+ semantics (#11, #12)
8
13
  * Moved the development dependencies from the gemspec to the Gemfile (#10)
9
14
 
10
15
  ### 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.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.3.0
4
+ version: 2.4.0
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-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -135,6 +135,8 @@ files:
135
135
  - doc/assets/project.svg
136
136
  - docker-compose.yml
137
137
  - gemfiles/rails_5.2.gemfile
138
+ - gemfiles/rails_6.1.gemfile
139
+ - gemfiles/rails_7.1.gemfile
138
140
  - grape-jwt-authentication.gemspec
139
141
  - lib/grape/jwt/authentication.rb
140
142
  - lib/grape/jwt/authentication/configuration.rb
@@ -158,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
160
  requirements:
159
161
  - - ">="
160
162
  - !ruby/object:Gem::Version
161
- version: '2.5'
163
+ version: '2.7'
162
164
  required_rubygems_version: !ruby/object:Gem::Requirement
163
165
  requirements:
164
166
  - - ">="