rails-swagger 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails/swagger/engine.rb +13 -13
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 462fb2b6ed49fc0de9bbf5542f0d71932ab5b469f3b9734bea7bd2d542ceae70
|
4
|
+
data.tar.gz: f6422820a1a13d6973ddc71e8d903bee18058883bfd2bb9d2df147d511acacfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb82c2935ea4b28614689a94f1861d0477c77281f53fe39222bc51ce9b0ab102ecec418ef6f3ad4b6292dd77c15da3ed382c4809ebe0c6c4450d8e5b5782eaa4
|
7
|
+
data.tar.gz: f616ceb7ffafc3feb4ebc5e935fdb0a153c724e93e8da0497ea9592f0e8afc249d50eacdf3b4b06d70f0748a3ed89092f8a96ad95fdef207ee7301e74aeea710
|
data/lib/rails/swagger/engine.rb
CHANGED
@@ -84,25 +84,25 @@ module Rails
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Rack app for serving the original swagger file
|
87
|
-
swagger_app = Class.new do
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
end
|
87
|
+
# swagger_app = Class.new do
|
88
|
+
# def inspect
|
89
|
+
# "Rails::Swagger::Engine"
|
90
|
+
# end
|
91
|
+
# define_method :call do |env|
|
92
|
+
# [
|
93
|
+
# 200,
|
94
|
+
# {"Content-Type" => "application/json"},
|
95
|
+
# [engine.schema.to_json]
|
96
|
+
# ]
|
97
|
+
# end
|
98
|
+
# end
|
99
99
|
|
100
100
|
# Adds routes to the engine by passing the Mapper to the top
|
101
101
|
# of the routing tree. `self` inside the block refers to an
|
102
102
|
# instance of `ActionDispatch::Routing::Mapper`.
|
103
103
|
self.routes.draw do
|
104
104
|
scope module: base_module.name.underscore, format: false do
|
105
|
-
get "swagger.json", to: swagger_app.new
|
105
|
+
# get "swagger.json", to: swagger_app.new
|
106
106
|
router.draw self
|
107
107
|
end
|
108
108
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-swagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenaniah Cerny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.1.2
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Turns Swagger API schemas into mountable Rails engines
|