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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rails/swagger/engine.rb +13 -13
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4df3f92cd049115004604f5f5bc26719476075989ac9d4b5adfe60a57d407eef
4
- data.tar.gz: fa445727110f3cb19b151d440053dd311874c84096f9dc3afa14f0ae71aec06d
3
+ metadata.gz: 462fb2b6ed49fc0de9bbf5542f0d71932ab5b469f3b9734bea7bd2d542ceae70
4
+ data.tar.gz: f6422820a1a13d6973ddc71e8d903bee18058883bfd2bb9d2df147d511acacfe
5
5
  SHA512:
6
- metadata.gz: 4c77d3d3250d4b01edac69c7db36873bf29ae64ad26297162e9484e073f209da9205d1e1d781f66b7b704b83e595838c0ecc016460b309fb3c4bce783f31926e
7
- data.tar.gz: 29548c5651bd969f9067305270ec1128fa483d248bc370b9e6de87cb24d0482b60837402c26191072e067d3b4637fdaca64a9ebbe0aad78a5d4496d945794570
6
+ metadata.gz: fb82c2935ea4b28614689a94f1861d0477c77281f53fe39222bc51ce9b0ab102ecec418ef6f3ad4b6292dd77c15da3ed382c4809ebe0c6c4450d8e5b5782eaa4
7
+ data.tar.gz: f616ceb7ffafc3feb4ebc5e935fdb0a153c724e93e8da0497ea9592f0e8afc249d50eacdf3b4b06d70f0748a3ed89092f8a96ad95fdef207ee7301e74aeea710
@@ -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
- 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
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.3.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: 2019-04-22 00:00:00.000000000 Z
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.0.1
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