api_keys 0.2.0 → 0.2.1
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/CHANGELOG.md +5 -0
- data/app/controllers/api_keys/security_controller.rb +1 -1
- data/lib/api_keys/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a6a1c6dfefaad9dff55f1ccf08e4564fe510e1ca2355a8a42b1e0a39044d346
|
4
|
+
data.tar.gz: ec7ee25c565277dfd6f5ea00edf6908114d8950163d0c3f0cdeca5f754e41723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa7545cb53f513946904cf6a2ae623429627af0e1831c1d4c789f294f0db636d6d98aeebce54892b1b7d6bbbee399d11c782122ed875d57e5d38f83d1de10a43
|
7
|
+
data.tar.gz: 3721750d661a77af6086e72b7f6afd4a47deb4c6e8f7535836a5fbed6ed45f1e2506d1a97fd96b02729ea2746df63c2c9997839e3de4535dec41020dd65bf139
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## [0.2.1] - 2025-08-04
|
2
|
+
|
3
|
+
- Fix SecurityController callback reference from :authenticate_api_keys_user! to :authenticate_api_keys_owner!
|
4
|
+
- Resolves ArgumentError in production environments with eager loading (#2)
|
5
|
+
|
1
6
|
## [0.2.0] - 2025-06-03
|
2
7
|
|
3
8
|
- Make gem owner-agnostic: API keys can now belong to any model (User, Organization, Team, etc.)
|
@@ -5,7 +5,7 @@ module ApiKeys
|
|
5
5
|
class SecurityController < ApplicationController
|
6
6
|
# Skip the user authentication requirement for these static pages
|
7
7
|
# as they contain general information.
|
8
|
-
skip_before_action :
|
8
|
+
skip_before_action :authenticate_api_keys_owner!, only: [:best_practices]
|
9
9
|
|
10
10
|
# GET /security/best-practices
|
11
11
|
def best_practices
|
data/lib/api_keys/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rameerez
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-08-04 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|