swaggard 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swaggard/api_definition.rb +1 -1
- data/lib/swaggard/configuration.rb +2 -2
- data/lib/swaggard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c06259c5d8dbe6e19b9b430db34b7195f9343d3be21d9e1d589137938db110a
|
4
|
+
data.tar.gz: 6a8e26c725b2b4e34acead3be8656396ebe116e3be87a8ed8ab431486c059212
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348fa3f26b48cd2a50c84b88fd13177d9e77566cf07df3f1dfca3f15866166dfb54f0585fd4d6f2389391999902dbee91db2ecf6a696d6e96286c127aea9d9ad
|
7
|
+
data.tar.gz: '049bca86afdacadf166b46245c550e9c95ac9d4d41c923bf862e6544a47f7e0f9be79c9e14bc9bd849a6fd56adb81f55974a594aff83b45cb1d4e0d39d6c2e62'
|
@@ -68,7 +68,7 @@ module Swaggard
|
|
68
68
|
|
69
69
|
return {} if security_definitions.empty? && Swaggard.configuration.security.empty?
|
70
70
|
|
71
|
-
Swaggard.configuration.security.keys.each do |authentication_type|
|
71
|
+
Swaggard.configuration.security.flat_map(&:keys).each do |authentication_type|
|
72
72
|
next if security_definitions.key?(authentication_type)
|
73
73
|
|
74
74
|
warn "#{authentication_type} not supported by securityDefinitions"
|
@@ -176,7 +176,7 @@ module Swaggard
|
|
176
176
|
end
|
177
177
|
|
178
178
|
def security
|
179
|
-
@security ||=
|
179
|
+
@security ||= []
|
180
180
|
end
|
181
181
|
|
182
182
|
def add_security_definition(authentication_key, definition)
|
@@ -184,7 +184,7 @@ module Swaggard
|
|
184
184
|
end
|
185
185
|
|
186
186
|
def add_security(authentication_key, scopes = [])
|
187
|
-
security
|
187
|
+
security << { authentication_key => scopes }
|
188
188
|
end
|
189
189
|
end
|
190
190
|
end
|
data/lib/swaggard/version.rb
CHANGED