card-mod-api_key 0.13.0 → 0.13.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/init/late/api_key.rb +5 -0
  3. data/locales/en.yml +11 -0
  4. metadata +8 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9822f719c1166831d0eec0ead0b1403845839a4eaade9758686ae47906347fd
4
- data.tar.gz: 52517786e557d599c767dccb91986056e4df9395ea9fc29483e4830dcdba5a47
3
+ metadata.gz: 04e3509f58fd461d9c9c9bc96159b8c05b2fcfaff14633f71e4ddcc81e6c966f
4
+ data.tar.gz: 0bebb797d7a074b9c6e08868ccc53c6ce670614f80a21171353fbc4dc24fcc46
5
5
  SHA512:
6
- metadata.gz: 813c5cd3ca3f865eae51c66e8f5d5548cfb7ee0d4c6e2c66212475e03fe8ffdc687e1cad722ca982e1702327845ba7bb077093f4db700f1e17421d4c4d32a40b
7
- data.tar.gz: c7aa1dd2d13e3e793d91883df8a5a27f7d5bda29117d37b2eb8640596c7b52fff484e2298867fc77b81198957a42964da0c95b3c72fe8328202c64b5d2b65d80
6
+ metadata.gz: 7249436d8a5c23f94d8b945bdf65865626b127485ff2b4aa14548bd31e855c5676c5952cfc18e121ac247fe1d0e75b4738fbdcc5cbe2af4ed00490e095961226
7
+ data.tar.gz: 898bd9cc4f455a8ae9b1aecd7b110ed06e944d4884e4573c4ba9f19d641ad2f29790f2fe1ae9ebd964ea75d6ad034a1491a7c29779a1282029f89e391dda6e3d
@@ -0,0 +1,5 @@
1
+ # Adds {Card::Auth::ApiKey} methods to Card::Auth class
2
+
3
+ Card::Auth.extend Card::Auth::ApiKey
4
+
5
+ CardController.include CardController::ApiKey
data/locales/en.yml ADDED
@@ -0,0 +1,11 @@
1
+ en:
2
+ api_key_not_found: no API key found
3
+ api_key_incorrect: API key mismatch
4
+ api_key_invalid: "Invalid API Key; must contain 20+ alphanumeric characters only"
5
+ api_key_label: "API Key"
6
+ api_key_generate: "Generate API Key"
7
+ api_key_regenerate: "Regenerate API Key"
8
+ api_key_generating: "Generating API Key"
9
+ api_key_taken: "API Key taken"
10
+ api_key_get_jwt_token: "get a JWT token"
11
+ api_key_no_key: "No key."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-api_key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2021-09-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.103.0
21
+ version: 1.103.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.103.0
28
+ version: 1.103.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-account
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.13.0
35
+ version: 0.13.4
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.13.0
42
+ version: 0.13.4
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org
@@ -48,8 +48,10 @@ extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
50
  - README.md
51
+ - init/late/api_key.rb
51
52
  - lib/card/auth/api_key.rb
52
53
  - lib/card_controller/api_key.rb
54
+ - locales/en.yml
53
55
  - set/right/account.rb
54
56
  - set/right/api_key.rb
55
57
  - set/right/api_key/core.haml