swagger-dsl 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/swagger/dsl/rails_controller.rb +3 -3
- data/lib/swagger/dsl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b359e903388b97c522dad98763ec32d05f5f53762549030aabb8daf5fb89c15
|
4
|
+
data.tar.gz: ea7711c9064db09ee37e300e3169792112c39c0a1685a2f422efb0db830d36a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8fdf3a9d66de1f9fe8fbf2ed69937a881f805560be14ffb4cb59199e2142c07f0c67b2f3efe74156b07b1b4d1d74cef0ddba4a88c91c5f4b9d22c7df53de961
|
7
|
+
data.tar.gz: ce5f6430a2d30d6732ce105ec2bcbb22207d3b3cbabb0d98a662e9ec6fd0b4078f2021454932f7e4e3ca9b353fd54440e9bf745b108abb17ed000978298eda0d
|
data/CHANGELOG.md
CHANGED
@@ -27,14 +27,14 @@ module Swagger
|
|
27
27
|
if method.include?("|")
|
28
28
|
raise NotExactMatch, "route matched but verb can be #{verb}! specify :method key like 'get'."
|
29
29
|
end
|
30
|
-
operation_id = "#{name}##{action}.#{method}"
|
31
30
|
|
32
31
|
method = %w[put patch] if %w[put patch].include?(method)
|
33
32
|
path ||= route.path.spec.to_s.sub("(.:format)", "").gsub(/:(\w+)/, "{\\1}")
|
34
33
|
|
35
|
-
operation = Swagger::DSL::Operation.new(operation_id, format: format, &block)
|
36
34
|
Swagger::DSL.current["paths"][path] ||= {}
|
37
|
-
Array(method).each
|
35
|
+
Array(method).each do |single_method|
|
36
|
+
Swagger::DSL.current["paths"][path][single_method] = Swagger::DSL::Operation.new("#{name}##{action}.#{method}", format: format, &block)
|
37
|
+
end
|
38
38
|
end
|
39
39
|
|
40
40
|
alias_method :oas3, :swagger
|
data/lib/swagger/dsl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Narazaka
|
@@ -292,7 +292,7 @@ metadata:
|
|
292
292
|
homepage_uri: https://github.com/Narazaka/swagger-dsl
|
293
293
|
source_code_uri: https://github.com/Narazaka/swagger-dsl.git
|
294
294
|
changelog_uri: https://github.com/Narazaka/swagger-dsl/blob/master/CHANGELOG.md
|
295
|
-
documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/2.0.
|
295
|
+
documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/2.0.4
|
296
296
|
post_install_message:
|
297
297
|
rdoc_options: []
|
298
298
|
require_paths:
|