swagger-blocks 2.0.1 → 2.0.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 404b9602f5da9794e8be26ad7bfb2e843f670e39
|
4
|
+
data.tar.gz: dbee5a43cd192a43fe752704067b525592cd5708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf6cd4d6fd437f153c0ea1ac24d961392f205e10f03a5a517791f4305fb4010b36a8b8046d3f06ab010c1e653b09e663f0ef92b15a3335148684aef94876d9f
|
7
|
+
data.tar.gz: a4851231553d499aea5ff4870b37f0f4ae807d962b00cfb9cb62da910e69b21ce15ae58f6a38592be3d7c91d64d879842060b16add4e6cb17a08a69cb92ee269
|
@@ -37,6 +37,10 @@ module Swagger
|
|
37
37
|
self.data[:security] << Swagger::Blocks::Nodes::SecurityRequirementNode.call(version: version, inline_keys: inline_keys, &block)
|
38
38
|
end
|
39
39
|
|
40
|
+
def externalDocs(inline_keys = nil, &block)
|
41
|
+
self.data[:externalDocs] = Swagger::Blocks::Nodes::ExternalDocsNode.call(version: version, inline_keys: inline_keys, &block)
|
42
|
+
end
|
43
|
+
|
40
44
|
def tag(inline_keys = nil, &block)
|
41
45
|
raise NotSupportedError unless is_swagger_2_0?
|
42
46
|
|
@@ -38,6 +38,9 @@ class PetControllerV2
|
|
38
38
|
key 'read:pets', 'read your pets'
|
39
39
|
end
|
40
40
|
end
|
41
|
+
externalDocs description: 'Find more info here' do
|
42
|
+
key :url, 'https://swagger.io'
|
43
|
+
end
|
41
44
|
tag name: 'pet' do
|
42
45
|
key :description, 'Pets operations'
|
43
46
|
externalDocs description: 'Find more info here' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Fotinakis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|