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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d74cf8955c1980e4153b8a1af250e09471b2bdce60e7e59aba84520aaeb66c40
4
- data.tar.gz: c82d51b65fe90228bb4428c16426332a69a2af202e442a4e3b728cf6d48581c7
3
+ metadata.gz: 9c06259c5d8dbe6e19b9b430db34b7195f9343d3be21d9e1d589137938db110a
4
+ data.tar.gz: 6a8e26c725b2b4e34acead3be8656396ebe116e3be87a8ed8ab431486c059212
5
5
  SHA512:
6
- metadata.gz: ca72d1996855482ef03474325479dae941fbd68b5d2ab7d928c0c132992156bcfe91391ab5bb3aa9b6c48174171a66d9cbf67006e77fab977aec2daab5b1bb9d
7
- data.tar.gz: 5d824f78de1e1a2096899be9378e336631fdb4abd5a6b3185d9d6e368353e73a142cf8e942b5315c2557b2f8ef45e48fa5e092cd3f54f0eacf9ff0a5e2847d25
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[authentication_key] = scopes
187
+ security << { authentication_key => scopes }
188
188
  end
189
189
  end
190
190
  end
@@ -1,3 +1,3 @@
1
1
  module Swaggard
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swaggard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Gomez