rswag3-api 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/Rakefile +1 -1
- data/lib/generators/rswag3/api/install/USAGE +8 -0
- data/lib/generators/{rswag → rswag3}/api/install/install_generator.rb +2 -2
- data/lib/{rswag → rswag3}/api/configuration.rb +1 -1
- data/lib/rswag3/api/engine.rb +13 -0
- data/lib/{rswag → rswag3}/api/middleware.rb +1 -1
- data/lib/{rswag → rswag3}/api.rb +3 -3
- metadata +8 -8
- data/lib/generators/rswag/api/install/USAGE +0 -8
- data/lib/rswag/api/engine.rb +0 -13
- /data/lib/generators/{rswag → rswag3}/api/install/templates/rswag-api.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75bce1d4cdfab3588b7b378a77426657778713cf
|
|
4
|
+
data.tar.gz: 3c3453e1bdf4ccc5e62951152e4b91ecc34b524d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88be4fb7d8be691dd4e6d84462471de8559d7a30e9c8557a03ea7a071728c282cc265416e346595fc50a436efa5dfec014e862c5eee8fc8dd1f0c1c94b884d01
|
|
7
|
+
data.tar.gz: 9b9311de9958f7985a62dd5cf8476d2edd422ff5be387ff9cf7830604321b85ad40341b4dd3a1c6d84b13e904727591e070a0ab11ce8b0ddd13d8869caf997d8
|
data/MIT-LICENSE
CHANGED
data/Rakefile
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
require 'rails/generators'
|
|
2
2
|
|
|
3
|
-
module
|
|
3
|
+
module Rswag3
|
|
4
4
|
module Api
|
|
5
5
|
|
|
6
6
|
class InstallGenerator < Rails::Generators::Base
|
|
7
7
|
source_root File.expand_path('../templates', __FILE__)
|
|
8
8
|
|
|
9
9
|
def add_initializer
|
|
10
|
-
template('
|
|
10
|
+
template('rswag3-api.rb', 'config/initializers/rswag3-api.rb')
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def add_routes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require 'rswag3/api/middleware'
|
|
2
|
+
|
|
3
|
+
module Rswag3
|
|
4
|
+
module Api
|
|
5
|
+
class Engine < ::Rails::Engine
|
|
6
|
+
isolate_namespace Rswag3::Api
|
|
7
|
+
|
|
8
|
+
initializer 'rswag3-api.initialize' do |app|
|
|
9
|
+
middleware.use Rswag3::Api::Middleware, Rswag3::Api.config
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/lib/{rswag → rswag3}/api.rb
RENAMED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rswag3-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evgeniy Koltsov
|
|
@@ -40,13 +40,13 @@ extra_rdoc_files: []
|
|
|
40
40
|
files:
|
|
41
41
|
- MIT-LICENSE
|
|
42
42
|
- Rakefile
|
|
43
|
-
- lib/generators/
|
|
44
|
-
- lib/generators/
|
|
45
|
-
- lib/generators/
|
|
46
|
-
- lib/
|
|
47
|
-
- lib/
|
|
48
|
-
- lib/
|
|
49
|
-
- lib/
|
|
43
|
+
- lib/generators/rswag3/api/install/USAGE
|
|
44
|
+
- lib/generators/rswag3/api/install/install_generator.rb
|
|
45
|
+
- lib/generators/rswag3/api/install/templates/rswag-api.rb
|
|
46
|
+
- lib/rswag3/api.rb
|
|
47
|
+
- lib/rswag3/api/configuration.rb
|
|
48
|
+
- lib/rswag3/api/engine.rb
|
|
49
|
+
- lib/rswag3/api/middleware.rb
|
|
50
50
|
homepage: https://github.com/Je33/rswag
|
|
51
51
|
licenses:
|
|
52
52
|
- MIT
|
data/lib/rswag/api/engine.rb
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require 'rswag/api/middleware'
|
|
2
|
-
|
|
3
|
-
module Rswag
|
|
4
|
-
module Api
|
|
5
|
-
class Engine < ::Rails::Engine
|
|
6
|
-
isolate_namespace Rswag::Api
|
|
7
|
-
|
|
8
|
-
initializer 'rswag-api.initialize' do |app|
|
|
9
|
-
middleware.use Rswag::Api::Middleware, Rswag::Api.config
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
File without changes
|