swagger_ui_engine_rails7 1.2.1 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5acbc640bf4c8f58e2623f9f174eeb506114e387d5fde70e85feb17ac0bea962
4
- data.tar.gz: 2eb892dcebfeb20cb2d31ea178d0525aed00b5814f3baa005969e8e610067be3
3
+ metadata.gz: 9b9f331b0efd12fadf3baeaca7f563d33655d83a49679b69a0796a5b3e5d4129
4
+ data.tar.gz: 27b7a810911bc5fdc7267f9baa94eeb8fac02f604a7753b2960d79fae41e9b2f
5
5
  SHA512:
6
- metadata.gz: 2e1657f963ccc1aaa804788cda876c0400fc5fbecd7678ea583df0d2ad7475225f58fb57e6ab261e458015d7ab784648b18334251098e06aab5481e4d48a95c4
7
- data.tar.gz: 1348aea83ffbf005ab4042501d740069fba053e90257ca84e0a58a96511616feb998eb57b22301f01c899f3a775a8c04c5f8e9beeccd8df7f82a5831eb01e357
6
+ metadata.gz: 046570bcbc8ff642a2f6cd896f318146cc89df8d8ebf738dcac90097fceb234cb89638e6122500876b4e044c115861599e09a642a31761e0426bc601a3ee5431
7
+ data.tar.gz: 7bd7bf883de05453efc8e4f92b7d8a2fc199a14909f385c65ff36ab80d64be1f031c19c0d53d5e823cbb33cca0aed779930fb6ef39a84ec93adfe41977505dc0
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # SwaggerUiEngine Changelog
1
+ # SwaggerUiEngineRails7 Changelog
2
2
 
3
3
  ## master
4
4
 
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ end
19
19
 
20
20
  RDoc::Task.new(:rdoc) do |rdoc|
21
21
  rdoc.rdoc_dir = 'rdoc'
22
- rdoc.title = 'SwaggerUiEngine'
22
+ rdoc.title = 'SwaggerUiEngineRails7'
23
23
  rdoc.options << '--line-numbers'
24
24
  rdoc.rdoc_files.include('README.rdoc')
25
25
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -1,6 +1,6 @@
1
- module SwaggerUiEngine
1
+ module SwaggerUiEngineRails7
2
2
  class ApplicationController < ActionController::Base
3
- include SwaggerUiEngine::AuthConfigParser
3
+ include SwaggerUiEngineRails7::AuthConfigParser
4
4
 
5
5
  protect_from_forgery with: :exception
6
6
  layout false
@@ -1,9 +1,9 @@
1
- module SwaggerUiEngine
2
- class SwaggerDocsController < SwaggerUiEngine::ApplicationController
3
- include SwaggerUiEngine::ConfigParser
4
- include SwaggerUiEngine::OauthConfigParser
1
+ module SwaggerUiEngineRails7
2
+ class SwaggerDocsController < SwaggerUiEngineRails7::ApplicationController
3
+ include SwaggerUiEngineRails7::ConfigParser
4
+ include SwaggerUiEngineRails7::OauthConfigParser
5
5
 
6
- helper SwaggerUiEngine::TranslationHelper
6
+ helper SwaggerUiEngineRails7::TranslationHelper
7
7
  layout 'swagger_ui_engine/layouts/swagger', except: %w(oauth2)
8
8
 
9
9
  before_action :set_configs, :set_oauth_configs
@@ -29,13 +29,13 @@ module SwaggerUiEngine
29
29
  private
30
30
 
31
31
  def set_configs
32
- SwaggerUiEngine::DEFAULTS.keys.each do |key|
32
+ SwaggerUiEngineRails7::DEFAULTS.keys.each do |key|
33
33
  instance_variable_set("@#{key}", self.send("set_#{key}"))
34
34
  end
35
35
  end
36
36
 
37
37
  def set_oauth_configs
38
- SwaggerUiEngine::OAUTH2_DEFAULTS.keys.each do |key|
38
+ SwaggerUiEngineRails7::OAUTH2_DEFAULTS.keys.each do |key|
39
39
  instance_variable_set("@#{key}", self.send("set_#{key}"))
40
40
  end
41
41
  end
@@ -1,4 +1,4 @@
1
- module SwaggerUiEngine
1
+ module SwaggerUiEngineRails7
2
2
  module AuthConfigParser
3
3
  def admin_username
4
4
  configuration.admin_username
@@ -13,7 +13,7 @@ module SwaggerUiEngine
13
13
  end
14
14
 
15
15
  def configuration
16
- SwaggerUiEngine.configuration
16
+ SwaggerUiEngineRails7.configuration
17
17
  end
18
18
  end
19
19
  end
@@ -1,6 +1,6 @@
1
- module SwaggerUiEngine
1
+ module SwaggerUiEngineRails7
2
2
  module ConfigParser
3
- SwaggerUiEngine::DEFAULTS.each do |default|
3
+ SwaggerUiEngineRails7::DEFAULTS.each do |default|
4
4
  next if default.first.to_s.eql?('validator_url')
5
5
 
6
6
  define_method("set_#{default.first}") do
@@ -12,7 +12,7 @@ module SwaggerUiEngine
12
12
  end
13
13
 
14
14
  def set_validator_url
15
- validator_enabled? ? SwaggerUiEngine::DEFAULTS[:validator_url] : 'null'
15
+ validator_enabled? ? SwaggerUiEngineRails7::DEFAULTS[:validator_url] : 'null'
16
16
  end
17
17
 
18
18
  def validator_enabled?
@@ -20,7 +20,7 @@ module SwaggerUiEngine
20
20
  end
21
21
 
22
22
  def configuration
23
- SwaggerUiEngine.configuration
23
+ SwaggerUiEngineRails7.configuration
24
24
  end
25
25
  end
26
26
  end
@@ -1,6 +1,6 @@
1
- module SwaggerUiEngine
1
+ module SwaggerUiEngineRails7
2
2
  module OauthConfigParser
3
- SwaggerUiEngine::OAUTH2_DEFAULTS.each do |default|
3
+ SwaggerUiEngineRails7::OAUTH2_DEFAULTS.each do |default|
4
4
  define_method("set_#{default.first}") do
5
5
  # set_oauth_app_name set_oauth_client_id
6
6
  # set_oauth_client_secret set_oauth_realm
@@ -1,4 +1,4 @@
1
- module SwaggerUiEngine
1
+ module SwaggerUiEngineRails7
2
2
  module TranslationHelper
3
3
  def load_translation_file
4
4
  return unless translator_enabled?
@@ -10,7 +10,7 @@ module SwaggerUiEngine
10
10
  end
11
11
 
12
12
  def translator_enabled?
13
- SwaggerUiEngine.configuration.translator_enabled
13
+ SwaggerUiEngineRails7.configuration.translator_enabled
14
14
  end
15
15
  end
16
16
  end
@@ -1,4 +1,4 @@
1
1
  module SwaggerUiEngineRails7
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.2.3'.freeze
3
3
  SWAGGER_UI_VERSION = '2.2.10'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger_ui_engine_rails7
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - negabaro