apiphobic-authorization 1.2.1 → 1.3.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/apiphobic/authorization/authorizers/parameters.rb +3 -0
- data/lib/apiphobic/authorization/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22e03e3f93abb9cab9ae283ede37575c35c6b3b48c7b47e6dab2075ce5262b14
|
|
4
|
+
data.tar.gz: e96790696a7829b175ef4bf0c307a7b7d2f87375958e76057f2752ede74a5cfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 869c01c380f6f1b1c8c55ea93c908ad3e726c0b45785cfd27a411c6c36a2cabaf6811585ba3a2086db03d442168fd89f2bca5744c50f11d67f2c188d389ffd1f
|
|
7
|
+
data.tar.gz: 463c2b28982c1aaceed7ba1a86967ad6decf251c7cf4e4fd564d8bd6b8c413732d1f860aa9269a1e34d1f356d367b04828b20ebb7d92a422b89fb91697adb850
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -197,6 +197,7 @@ class Parameters
|
|
|
197
197
|
authorization_parameters:,
|
|
198
198
|
authorization_value: nil,
|
|
199
199
|
raw_parameters:,
|
|
200
|
+
allowed_values: nil,
|
|
200
201
|
override: {})
|
|
201
202
|
|
|
202
203
|
value = override_parameter(name: name,
|
|
@@ -204,6 +205,8 @@ class Parameters
|
|
|
204
205
|
hash: raw_parameters,
|
|
205
206
|
override: override)
|
|
206
207
|
|
|
208
|
+
return unless allowed_values.nil? || allowed_values.include?(value)
|
|
209
|
+
|
|
207
210
|
if authorization_value
|
|
208
211
|
authorization_parameters[0][name] = authorization_value
|
|
209
212
|
elsif value.class == ::Array
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiphobic-authorization
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thegranddesign
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
|
|
32
32
|
iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2018-
|
|
34
|
+
date: 2018-06-08 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: apiphobic-resource
|
metadata.gz.sig
CHANGED
|
Binary file
|