swagger-dsl 1.4.0 → 1.5.0

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: 4ec890325cd8a13a5777720b3351c4c041d91e393fba975379795bace2860d95
4
- data.tar.gz: 8082c1127a67be4060d2dbb32e1f89955b5b12642861198bdf1d0b627be750db
3
+ metadata.gz: ecb702f7ccc67a100818688d3485e5412f9d332af2bfa1b58b8f58c741504694
4
+ data.tar.gz: 6ace6ed015f84d78cacbc7718045153e3d26f7fd578fa477177ee6a6f54b3474
5
5
  SHA512:
6
- metadata.gz: ef51b9cdb97ec79798999e4b4d5414e8bdd9b79e696d5492e11a3ec2f16fbb63be0222fd81a03bbe9fd57532b1b4a7e87c074c2c6fc0e855814c8ba8075c0e87
7
- data.tar.gz: cce2fd4ff859619d69ab8fedf7668f7f70f83c60ab825ec31a60f40608f3fe30de2de82177815d68008c3d87530642860882f672b3488b9278da3483232f8f67
6
+ metadata.gz: 75a3957270bbe0bdc800f376438112f1dd3056ffee525c34672beb12b63a0441eee10badbaddb924e15358c0907ea96006ea23be278bff9a758c5c7d2f035dc8
7
+ data.tar.gz: face316a38563b9b8f6e8f06cbe5c2ef0f7ef6bb59a5bc3c5d4802aedade9817284369ee992ed60149cee16aea8cf7f384201e508e0a8c5e8bba64c22883f46b
File without changes
data/.gitignore CHANGED
File without changes
File without changes
data/.rspec CHANGED
File without changes
File without changes
File without changes
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -19,10 +19,23 @@ module Swagger
19
19
  self["requestBody"] = { "content" => {}, "required" => true }
20
20
  self["responses"] = {}
21
21
  self["parameters"] = []
22
+ self["tags"] = []
22
23
  @format = format
23
24
  instance_eval(&block)
24
25
  end
25
26
 
27
+ def summary(text)
28
+ self["summary"] = text
29
+ end
30
+
31
+ def description(text)
32
+ self["description"] = text
33
+ end
34
+
35
+ def tags(*tags)
36
+ self["tags"].concat(tags.flatten(1))
37
+ end
38
+
26
39
  def params(default_required: Swagger::DSL.current.config.default_required, &block)
27
40
  self["parameters"] = Parameters.new(default_required: default_required, &block)
28
41
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Swagger
2
2
  class DSL < Hash
3
- VERSION = "1.4.0".freeze
3
+ VERSION = "1.5.0".freeze
4
4
  end
5
5
  end
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency "json_refs", "~> 0.1"
34
34
  spec.add_dependency "activesupport", "~> 6.0"
35
35
  spec.add_development_dependency "bundler", "~> 2.0"
36
- spec.add_development_dependency "rake", "~> 10.5"
36
+ spec.add_development_dependency "rake", "~> 13.0"
37
37
  spec.add_development_dependency "rspec", "~> 3.9"
38
38
  spec.add_development_dependency "rspec-power_assert", "~> 1.1"
39
39
  spec.add_development_dependency "rubocop", "~> 0.76"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-07 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jimmy
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '10.5'
103
+ version: '13.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '10.5'
110
+ version: '13.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -264,7 +264,7 @@ metadata:
264
264
  homepage_uri: https://github.com/Narazaka/swagger-dsl
265
265
  source_code_uri: https://github.com/Narazaka/swagger-dsl.git
266
266
  changelog_uri: https://github.com/Narazaka/swagger-dsl/blob/master/CHANGELOG.md
267
- documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/1.4.0
267
+ documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/1.5.0
268
268
  post_install_message:
269
269
  rdoc_options: []
270
270
  require_paths:
@@ -280,8 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  - !ruby/object:Gem::Version
281
281
  version: '0'
282
282
  requirements: []
283
- rubyforge_project:
284
- rubygems_version: 2.7.6
283
+ rubygems_version: 3.0.3
285
284
  signing_key:
286
285
  specification_version: 4
287
286
  summary: Swagger (OpenAPI 3) DSL