swagger-blocks 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: 24f472035a66f88b4a1921e3111332bbeff71c18
4
- data.tar.gz: 0710bc5237aedac01946d26c94141e87b684882c
3
+ metadata.gz: 404b9602f5da9794e8be26ad7bfb2e843f670e39
4
+ data.tar.gz: dbee5a43cd192a43fe752704067b525592cd5708
5
5
  SHA512:
6
- metadata.gz: 47dab1f23c968995ab005b8319f728187510672e778f816d4229e7ef1d3d56d3bf20bcf51034232f80a6412c9ef1b66de0de502fc206bad5d10d9064c1aa29af
7
- data.tar.gz: 19a7cc6a7d3dea1c46156f83c312f6e5aef8e4a0d1a0a89c74e796c0fa2d5ef863d5f9781b867b479b75c57431f7be9858bcd2128874eff355692540785113c1
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
 
@@ -1,5 +1,5 @@
1
1
  module Swagger
2
2
  module Blocks
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
@@ -39,6 +39,10 @@
39
39
  }
40
40
  }
41
41
  },
42
+ "externalDocs": {
43
+ "description": "Find more info here",
44
+ "url": "https://swagger.io"
45
+ },
42
46
  "tags": [
43
47
  {
44
48
  "name": "pet",
@@ -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.1
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-21 00:00:00.000000000 Z
11
+ date: 2017-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler