oas_parser 0.11.0 → 0.11.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/lib/oas_parser/endpoint.rb +10 -0
- data/lib/oas_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6717377767a92596c0f9661f86ad63bd38a1ac62
|
4
|
+
data.tar.gz: 48d0e9a8d5243f652667627c325628a9d56ceb87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed505f18755bae99fa85baf123189275b1a57cefb7b967e552a05641f5cea8f51bde21d86e1657b12c99b302993d287cb42c3bdefb738faa1b4b3a4dea29c406
|
7
|
+
data.tar.gz: 45250fa1b77c2aa2f4300d6ae6e407da705d8a7d58b88029ff38e6431d3c8b4715dbdc0fdec054adf04c8f5662d7a973e229826a7f4f2cad381c71f083adf333
|
data/lib/oas_parser/endpoint.rb
CHANGED
@@ -96,6 +96,16 @@ module OasParser
|
|
96
96
|
false
|
97
97
|
end
|
98
98
|
|
99
|
+
def basic_auth?
|
100
|
+
return false unless security
|
101
|
+
|
102
|
+
security_schemes.each do |security_schema|
|
103
|
+
return true if security_schema['type'] == 'http' && security_schema['scheme'] == 'basic'
|
104
|
+
end
|
105
|
+
|
106
|
+
false
|
107
|
+
end
|
108
|
+
|
99
109
|
def security_schemes
|
100
110
|
security_schemes = security.flat_map(&:keys)
|
101
111
|
|
data/lib/oas_parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oas_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Butler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|