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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e77db8b4646ec4b2a11e501a07754723090f0ee2
4
- data.tar.gz: ac9107aa48ccf9fd46409d0ca1e7a192819c7156
3
+ metadata.gz: 75bce1d4cdfab3588b7b378a77426657778713cf
4
+ data.tar.gz: 3c3453e1bdf4ccc5e62951152e4b91ecc34b524d
5
5
  SHA512:
6
- metadata.gz: f9e48775a995b28f8cd84160d05cdde51fe164af29f1445685d1adbc80cb2233a2527385fc19903f901fff586d15adf5a8df3f04345dc2fe1b3f7573685cbe8e
7
- data.tar.gz: 8074081d01ccc40655d0f9301f99db3d2569b3a713e28c455a75b0ae56faacbfaa617eef104ff8b6407f1a63f8b1462ab3963cbb8faa9555b26f0caf3a61f1df
6
+ metadata.gz: 88be4fb7d8be691dd4e6d84462471de8559d7a30e9c8557a03ea7a071728c282cc265416e346595fc50a436efa5dfec014e862c5eee8fc8dd1f0c1c94b884d01
7
+ data.tar.gz: 9b9311de9958f7985a62dd5cf8476d2edd422ff5be387ff9cf7830604321b85ad40341b4dd3a1c6d84b13e904727591e070a0ab11ce8b0ddd13d8869caf997d8
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2015 domaindrivendev
1
+ Copyright 2019 Je33
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ end
14
14
 
15
15
  RDoc::Task.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'rswag-specs'
17
+ rdoc.title = 'rswag3-specs'
18
18
  rdoc.options << '--line-numbers'
19
19
  rdoc.rdoc_files.include('README.rdoc')
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Adds rswag3-api initializer for configuration
3
+
4
+ Example:
5
+ rails generate rswag3:api:install
6
+
7
+ This will create:
8
+ config/initializers/rswag3-api.rb
@@ -1,13 +1,13 @@
1
1
  require 'rails/generators'
2
2
 
3
- module Rswag
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('rswag-api.rb', 'config/initializers/rswag-api.rb')
10
+ template('rswag3-api.rb', 'config/initializers/rswag3-api.rb')
11
11
  end
12
12
 
13
13
  def add_routes
@@ -1,4 +1,4 @@
1
- module Rswag
1
+ module Rswag3
2
2
  module Api
3
3
  class Configuration
4
4
  attr_accessor :swagger_root, :swagger_filter
@@ -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
@@ -1,6 +1,6 @@
1
1
  require 'json'
2
2
 
3
- module Rswag
3
+ module Rswag3
4
4
  module Api
5
5
  class Middleware
6
6
 
@@ -1,7 +1,7 @@
1
- require 'rswag/api/configuration'
2
- require 'rswag/api/engine'
1
+ require 'rswag3/api/configuration'
2
+ require 'rswag3/api/engine'
3
3
 
4
- module Rswag
4
+ module Rswag3
5
5
  module Api
6
6
  def self.configure
7
7
  yield(config)
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.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/rswag/api/install/USAGE
44
- - lib/generators/rswag/api/install/install_generator.rb
45
- - lib/generators/rswag/api/install/templates/rswag-api.rb
46
- - lib/rswag/api.rb
47
- - lib/rswag/api/configuration.rb
48
- - lib/rswag/api/engine.rb
49
- - lib/rswag/api/middleware.rb
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
@@ -1,8 +0,0 @@
1
- Description:
2
- Adds rswag-api initializer for configuration
3
-
4
- Example:
5
- rails generate rswag:api:install
6
-
7
- This will create:
8
- config/initializers/rswag-api.rb
@@ -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