cognito_token_verifier 0.6.0 → 0.8.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: 8edc16e14b8a1bf1f5a49c693cbb6cb9d5fcc98d8903a65fca45beef5643a7dc
4
- data.tar.gz: 68e7af872f597559db0dc2e9839aecb201d0552e54594921c7fc0cbd9dc3fe4e
3
+ metadata.gz: 839214f6672469cbf48ef463dbd9753f4654bec0a6cf24ab73d0cc9b7594409b
4
+ data.tar.gz: a90487a324c47d270ea24f893495c8743c927d59e529e3794ae8c44eaf7dfca4
5
5
  SHA512:
6
- metadata.gz: 0d13e3aa8021496519106c84557211429266d6347503f196dbc13ecacb8475dd4e86ead1f152a4c769a84c626e90f18ec17f19ef99c8cd61f7b61d1be4e73615
7
- data.tar.gz: 2675df562c303cd2d111a06f4d025cd9132129316fa7ed07d344fecd9c21f000bec86ee8fd630fcace7343e30d4d7f92c06e87f2129d25a14a13c1dd9bc1c74a
6
+ metadata.gz: 207619b8fb06b1269bbe0dfc6d82adf080435a4a3269ec15f67af1dfd41765b79d16e4b833094dc9748b50199c542b5dd9a5bc8c6f8fa022d3a7d202fdb51da3
7
+ data.tar.gz: 86b526875310d412435b67f8f59e7e78c25bb0f753e0055f230b039253881c5fcaa80f1159ed852616c3d98199ed14ca9ada5b462eb4c74a889269bf226685aa
@@ -11,11 +11,11 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
 
13
13
  steps:
14
- - uses: actions/checkout@v2
15
- - name: Set up Ruby 2.7
14
+ - uses: actions/checkout@v4
15
+ - name: Set up Ruby 3.3
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.7
18
+ ruby-version: 3.3
19
19
 
20
20
  - name: Publish to GPR
21
21
  run: |
@@ -14,15 +14,15 @@ jobs:
14
14
  strategy:
15
15
  fail-fast: true
16
16
  matrix:
17
- ruby: ['3.1', '3.0', '2.7']
18
- gemfile: ['rails52', 'rails6', 'rails61', 'rails7']
17
+ ruby: ['3.4', '3.3', '3.2']
18
+ gemfile: ['rails71', 'rails8']
19
19
 
20
20
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
21
21
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
22
22
  steps:
23
23
  - uses: actions/checkout@v2
24
24
  - name: Set up Ruby ${{ matrix.ruby }}
25
- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
25
+ uses: ruby/setup-ruby@v1
26
26
  with:
27
27
  ruby-version: ${{ matrix.ruby }}
28
28
  bundler-cache: true
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.1.0
1
+ ruby 3.3.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.7.0 (2024-02-28)
4
+
5
+ - Add Rails 7.1 support
6
+ - Test against Ruby 3.2 and 3.3
7
+ - Remove official support for Rails 5.2
8
+ - Remove official support for Rails 6.0
9
+ - Remove testing for Ruby 2.7 & 3.0
10
+
3
11
  ## 0.6.0 (2022-02-24)
4
12
 
5
13
  - Add Rails 7 support
data/Gemfile.lock CHANGED
@@ -1,89 +1,143 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cognito_token_verifier (0.5.0)
5
- activesupport (>= 5.2)
4
+ cognito_token_verifier (0.7.0)
5
+ activesupport (>= 7.1)
6
6
  json-jwt (~> 1.11)
7
7
  rest-client (~> 2.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (6.1.4.6)
13
- actionview (= 6.1.4.6)
14
- activesupport (= 6.1.4.6)
15
- rack (~> 2.0, >= 2.0.9)
12
+ actionpack (8.0.2)
13
+ actionview (= 8.0.2)
14
+ activesupport (= 8.0.2)
15
+ nokogiri (>= 1.8.5)
16
+ rack (>= 2.2.4)
17
+ rack-session (>= 1.0.1)
16
18
  rack-test (>= 0.6.3)
17
- rails-dom-testing (~> 2.0)
18
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.1.4.6)
20
- activesupport (= 6.1.4.6)
19
+ rails-dom-testing (~> 2.2)
20
+ rails-html-sanitizer (~> 1.6)
21
+ useragent (~> 0.16)
22
+ actionview (8.0.2)
23
+ activesupport (= 8.0.2)
21
24
  builder (~> 3.1)
22
- erubi (~> 1.4)
23
- rails-dom-testing (~> 2.0)
24
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- activesupport (6.1.4.6)
26
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ erubi (~> 1.11)
26
+ rails-dom-testing (~> 2.2)
27
+ rails-html-sanitizer (~> 1.6)
28
+ activesupport (8.0.2)
29
+ base64
30
+ benchmark (>= 0.3)
31
+ bigdecimal
32
+ concurrent-ruby (~> 1.0, >= 1.3.1)
33
+ connection_pool (>= 2.2.5)
34
+ drb
27
35
  i18n (>= 1.6, < 2)
36
+ logger (>= 1.4.2)
28
37
  minitest (>= 5.1)
29
- tzinfo (~> 2.0)
30
- zeitwerk (~> 2.3)
38
+ securerandom (>= 0.3)
39
+ tzinfo (~> 2.0, >= 2.0.5)
40
+ uri (>= 0.13.1)
31
41
  aes_key_wrap (1.1.0)
32
- bindata (2.4.10)
33
- builder (3.2.4)
42
+ base64 (0.2.0)
43
+ benchmark (0.4.0)
44
+ bigdecimal (3.1.9)
45
+ bindata (2.5.0)
46
+ builder (3.3.0)
34
47
  byebug (11.1.3)
35
- concurrent-ruby (1.1.9)
48
+ concurrent-ruby (1.3.5)
49
+ connection_pool (2.5.0)
36
50
  crass (1.0.6)
37
- diff-lcs (1.4.4)
38
- domain_name (0.5.20190701)
39
- unf (>= 0.0.5, < 1.0.0)
40
- erubi (1.10.0)
51
+ date (3.4.1)
52
+ diff-lcs (1.6.0)
53
+ domain_name (0.6.20240107)
54
+ drb (2.2.1)
55
+ erubi (1.13.1)
56
+ faraday (2.12.2)
57
+ faraday-net_http (>= 2.0, < 3.5)
58
+ json
59
+ logger
60
+ faraday-follow_redirects (0.3.0)
61
+ faraday (>= 1, < 3)
62
+ faraday-net_http (3.4.0)
63
+ net-http (>= 0.5.0)
41
64
  http-accept (1.7.0)
42
- http-cookie (1.0.3)
65
+ http-cookie (1.0.8)
43
66
  domain_name (~> 0.5)
44
- i18n (1.9.1)
67
+ i18n (1.14.7)
45
68
  concurrent-ruby (~> 1.0)
46
- json-jwt (1.13.0)
69
+ io-console (0.8.0)
70
+ irb (1.15.1)
71
+ pp (>= 0.6.0)
72
+ rdoc (>= 4.0.0)
73
+ reline (>= 0.4.2)
74
+ json (2.10.2)
75
+ json-jwt (1.16.7)
47
76
  activesupport (>= 4.2)
48
77
  aes_key_wrap
78
+ base64
49
79
  bindata
50
- loofah (2.14.0)
80
+ faraday (~> 2.0)
81
+ faraday-follow_redirects
82
+ logger (1.6.6)
83
+ loofah (2.24.0)
51
84
  crass (~> 1.0.2)
52
- nokogiri (>= 1.5.9)
53
- method_source (1.0.0)
54
- mime-types (3.3.1)
85
+ nokogiri (>= 1.12.0)
86
+ mime-types (3.6.1)
87
+ logger
55
88
  mime-types-data (~> 3.2015)
56
- mime-types-data (3.2020.0512)
57
- mini_portile2 (2.7.1)
58
- minitest (5.15.0)
89
+ mime-types-data (3.2025.0318)
90
+ mini_portile2 (2.8.8)
91
+ minitest (5.25.5)
92
+ net-http (0.6.0)
93
+ uri
59
94
  netrc (0.11.0)
60
- nokogiri (1.13.1)
61
- mini_portile2 (~> 2.7.0)
95
+ nokogiri (1.18.5)
96
+ mini_portile2 (~> 2.8.2)
62
97
  racc (~> 1.4)
63
- racc (1.6.0)
64
- rack (2.2.3)
65
- rack-test (1.1.0)
66
- rack (>= 1.0, < 3)
67
- rails-dom-testing (2.0.3)
68
- activesupport (>= 4.2.0)
98
+ pp (0.6.2)
99
+ prettyprint
100
+ prettyprint (0.2.0)
101
+ psych (5.2.3)
102
+ date
103
+ stringio
104
+ racc (1.8.1)
105
+ rack (3.1.12)
106
+ rack-session (2.1.0)
107
+ base64 (>= 0.1.0)
108
+ rack (>= 3.0.0)
109
+ rack-test (2.2.0)
110
+ rack (>= 1.3)
111
+ rackup (2.2.1)
112
+ rack (>= 3)
113
+ rails-dom-testing (2.2.0)
114
+ activesupport (>= 5.0.0)
115
+ minitest
69
116
  nokogiri (>= 1.6)
70
- rails-html-sanitizer (1.4.2)
71
- loofah (~> 2.3)
72
- railties (6.1.4.6)
73
- actionpack (= 6.1.4.6)
74
- activesupport (= 6.1.4.6)
75
- method_source
76
- rake (>= 0.13)
77
- thor (~> 1.0)
78
- rake (13.0.3)
117
+ rails-html-sanitizer (1.6.2)
118
+ loofah (~> 2.21)
119
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
120
+ railties (8.0.2)
121
+ actionpack (= 8.0.2)
122
+ activesupport (= 8.0.2)
123
+ irb (~> 1.13)
124
+ rackup (>= 1.0.0)
125
+ rake (>= 12.2)
126
+ thor (~> 1.0, >= 1.2.2)
127
+ zeitwerk (~> 2.6)
128
+ rake (13.2.1)
129
+ rdoc (6.12.0)
130
+ psych (>= 4.0.0)
131
+ reline (0.6.0)
132
+ io-console (~> 0.5)
79
133
  rest-client (2.1.0)
80
134
  http-accept (>= 1.7.0, < 2.0)
81
135
  http-cookie (>= 1.0.2, < 2.0)
82
136
  mime-types (>= 1.16, < 4.0)
83
137
  netrc (~> 0.8)
84
- rspec-core (3.9.2)
138
+ rspec-core (3.9.3)
85
139
  rspec-support (~> 3.9.3)
86
- rspec-expectations (3.9.2)
140
+ rspec-expectations (3.9.4)
87
141
  diff-lcs (>= 1.2.0, < 2.0)
88
142
  rspec-support (~> 3.9.0)
89
143
  rspec-mocks (3.9.1)
@@ -97,24 +151,25 @@ GEM
97
151
  rspec-expectations (~> 3.9.0)
98
152
  rspec-mocks (~> 3.9.0)
99
153
  rspec-support (~> 3.9.0)
100
- rspec-support (3.9.3)
101
- thor (1.2.1)
102
- tzinfo (2.0.4)
154
+ rspec-support (3.9.4)
155
+ securerandom (0.4.1)
156
+ stringio (3.1.5)
157
+ thor (1.3.2)
158
+ tzinfo (2.0.6)
103
159
  concurrent-ruby (~> 1.0)
104
- unf (0.1.4)
105
- unf_ext
106
- unf_ext (0.0.7.7)
107
- zeitwerk (2.5.4)
160
+ uri (1.0.3)
161
+ useragent (0.16.11)
162
+ zeitwerk (2.7.2)
108
163
 
109
164
  PLATFORMS
110
165
  ruby
111
166
 
112
167
  DEPENDENCIES
113
- actionpack (>= 5.2)
168
+ actionpack (>= 7.1)
114
169
  bundler (~> 2.0)
115
170
  byebug (~> 11.0)
116
171
  cognito_token_verifier!
117
- rake (>= 10.0, < 14.0)
172
+ rake (>= 13.0, < 14.0)
118
173
  rspec-rails (~> 3.0)
119
174
 
120
175
  BUNDLED WITH
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{Verify and parse AWS Cognito JWTs to authenticate endpoints}
13
13
  spec.homepage = "https://github.com/CodingAnarchy/cognito_token_verifier"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.6.0"
15
+ spec.required_ruby_version = ">= 3.2.0"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
18
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -31,13 +31,13 @@ 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.add_runtime_dependency "activesupport", [">= 5.2"]
34
+ spec.add_runtime_dependency "activesupport", [">= 7.1"]
35
35
  spec.add_runtime_dependency "json-jwt", "~> 1.11"
36
36
  spec.add_runtime_dependency "rest-client", "~> 2.0"
37
37
 
38
38
  spec.add_development_dependency "byebug", "~> 11.0"
39
39
  spec.add_development_dependency "bundler", "~> 2.0"
40
- spec.add_development_dependency "rake", [">= 10.0", "< 14.0"]
40
+ spec.add_development_dependency "rake", [">= 13.0", "< 14.0"]
41
41
  spec.add_development_dependency "rspec-rails", "~> 3.0"
42
- spec.add_development_dependency "actionpack", [">= 5.2"]
42
+ spec.add_development_dependency "actionpack", [">= 7.1"]
43
43
  end
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activesupport", "~> 5.2.0"
3
+ gem "activesupport", "~> 7.1.0"
4
4
  gem "json-jwt", "~> 1.11"
5
5
  gem "rest-client", "~> 2.0"
6
6
 
@@ -8,4 +8,4 @@ gem "byebug"
8
8
  gem "bundler", "~> 2.0"
9
9
  gem "rake", "~> 12.0"
10
10
  gem "rspec-rails", "~> 3.0"
11
- gem "actionpack", "~> 5.2.0"
11
+ gem "actionpack", "~> 7.1.0"
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activesupport", "~> 6.0.0"
3
+ gem "activesupport", "~> 8.0.0"
4
4
  gem "json-jwt", "~> 1.11"
5
5
  gem "rest-client", "~> 2.0"
6
6
 
@@ -8,4 +8,4 @@ gem "byebug"
8
8
  gem "bundler", "~> 2.0"
9
9
  gem "rake", "~> 12.0"
10
10
  gem "rspec-rails", "~> 3.0"
11
- gem "actionpack", "~> 6.0.0"
11
+ gem "actionpack", "~> 8.0.0"
@@ -1,3 +1,3 @@
1
1
  module CognitoTokenVerifier
2
- VERSION = "0.6.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cognito_token_verifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Tanous
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2025-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '7.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '7.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json-jwt
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '13.0'
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '14.0'
@@ -96,7 +96,7 @@ dependencies:
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: '10.0'
99
+ version: '13.0'
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '14.0'
@@ -120,15 +120,15 @@ dependencies:
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '5.2'
123
+ version: '7.1'
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: '5.2'
131
- description:
130
+ version: '7.1'
131
+ description:
132
132
  email:
133
133
  - mtanous22@gmail.com
134
134
  executables: []
@@ -150,10 +150,8 @@ files:
150
150
  - bin/console
151
151
  - bin/setup
152
152
  - cognito_token_verifier.gemspec
153
- - gemfiles/rails52.gemfile
154
- - gemfiles/rails6.gemfile
155
- - gemfiles/rails61.gemfile
156
- - gemfiles/rails7.gemfile
153
+ - gemfiles/rails71.gemfile
154
+ - gemfiles/rails8.gemfile
157
155
  - lib/cognito_token_verifier.rb
158
156
  - lib/cognito_token_verifier/config.rb
159
157
  - lib/cognito_token_verifier/controller_macros.rb
@@ -167,7 +165,7 @@ metadata:
167
165
  homepage_uri: https://github.com/CodingAnarchy/cognito_token_verifier
168
166
  source_code_uri: https://github.com/CodingAnarchy/cognito_token_verifier
169
167
  changelog_uri: https://github.com/CodingAnarchy/cognito_token_verifier/blob/master/CHANGELOG.md
170
- post_install_message:
168
+ post_install_message:
171
169
  rdoc_options: []
172
170
  require_paths:
173
171
  - lib
@@ -175,15 +173,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
173
  requirements:
176
174
  - - ">="
177
175
  - !ruby/object:Gem::Version
178
- version: 2.6.0
176
+ version: 3.2.0
179
177
  required_rubygems_version: !ruby/object:Gem::Requirement
180
178
  requirements:
181
179
  - - ">="
182
180
  - !ruby/object:Gem::Version
183
181
  version: '0'
184
182
  requirements: []
185
- rubygems_version: 3.1.6
186
- signing_key:
183
+ rubygems_version: 3.5.22
184
+ signing_key:
187
185
  specification_version: 4
188
186
  summary: Verify and parse AWS Cognito JWTs to authenticate endpoints
189
187
  test_files: []
@@ -1,11 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activesupport", "~> 6.1.0"
4
- gem "json-jwt", "~> 1.11"
5
- gem "rest-client", "~> 2.0"
6
-
7
- gem "byebug"
8
- gem "bundler", "~> 2.0"
9
- gem "rake", "~> 12.0"
10
- gem "rspec-rails", "~> 3.0"
11
- gem "actionpack", "~> 6.1.0"
@@ -1,11 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activesupport", "~> 7.0.0"
4
- gem "json-jwt", "~> 1.11"
5
- gem "rest-client", "~> 2.0"
6
-
7
- gem "byebug"
8
- gem "bundler", "~> 2.0"
9
- gem "rake", "~> 12.0"
10
- gem "rspec-rails", "~> 3.0"
11
- gem "actionpack", "~> 7.0.0"