From 5b1f59243c38bb7fa8caaa273e7caa411872c4b0 Mon Sep 17 00:00:00 2001 From: Michael Haddad Date: Sat, 17 Aug 2019 10:01:23 -0400 Subject: [PATCH 01/10] Add support for Rails 6 --- swagger_ui_engine.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swagger_ui_engine.gemspec b/swagger_ui_engine.gemspec index a75e97e..58f831d 100644 --- a/swagger_ui_engine.gemspec +++ b/swagger_ui_engine.gemspec @@ -22,6 +22,6 @@ Gem::Specification.new do |s| 'CHANGELOG.md' ] - s.add_runtime_dependency 'rails', '>= 4.2', '< 6' + s.add_runtime_dependency 'rails', '>= 4.2', '< 6.1' s.add_runtime_dependency 'sassc-rails' end From 155276ad7b61e862d6fda22176054963513dfca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zuzanna=20Stoli=C5=84ska?= Date: Tue, 21 May 2019 17:20:38 +0200 Subject: [PATCH 02/10] Bump version to 1.1.3 --- lib/swagger_ui_engine/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swagger_ui_engine/version.rb b/lib/swagger_ui_engine/version.rb index adb642a..34f83df 100644 --- a/lib/swagger_ui_engine/version.rb +++ b/lib/swagger_ui_engine/version.rb @@ -1,4 +1,4 @@ module SwaggerUiEngine - VERSION = '1.1.2'.freeze + VERSION = '1.1.3'.freeze SWAGGER_UI_VERSION = '2.2.10'.freeze end From bf625336c383ed404286c6418732cdee76c6944c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zuzanna=20Stoli=C5=84ska?= Date: Tue, 21 May 2019 17:26:32 +0200 Subject: [PATCH 03/10] Add 1.1.3 to Changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18e854a..e7f78cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## master +## 1.1.3 +* Turns compatible with sprockets 4 +* Application Controller inheritance +* Switch to sassc-rails gem + ## 1.1.2 * Fix incorrect Rails lock version From a621309aef5118d767aa773bb454828baa553371 Mon Sep 17 00:00:00 2001 From: Ozmar Ugarte Date: Thu, 8 Aug 2019 09:21:33 -0500 Subject: [PATCH 04/10] Make the oauth2 action oneline - As this action is empty we put it in one line --- app/controllers/swagger_ui_engine/swagger_docs_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/swagger_ui_engine/swagger_docs_controller.rb b/app/controllers/swagger_ui_engine/swagger_docs_controller.rb index 1109c4a..8d5e058 100644 --- a/app/controllers/swagger_ui_engine/swagger_docs_controller.rb +++ b/app/controllers/swagger_ui_engine/swagger_docs_controller.rb @@ -8,8 +8,7 @@ class SwaggerDocsController < SwaggerUiEngine::ApplicationController before_action :set_configs, :set_oauth_configs - def oauth2 - end + def oauth2; end def index # backward compatibility for defining single doc url in strings From e7a39c07b5e92c36ef02768c9effb93fc17752a6 Mon Sep 17 00:00:00 2001 From: Ozmar Ugarte Date: Thu, 8 Aug 2019 09:19:21 -0500 Subject: [PATCH 05/10] Add the validationUrl function into the show.html.erb - In order to pass a real null and not an string 'null' we add the validationUrl function to check the value of the url and return the url string or JS null value --- app/views/swagger_ui_engine/swagger_docs/show.html.erb | 6 +++++- .../swagger_ui_engine/swagger_docs_controller_test.rb | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/swagger_ui_engine/swagger_docs/show.html.erb b/app/views/swagger_ui_engine/swagger_docs/show.html.erb index b6a6a4f..358d208 100644 --- a/app/views/swagger_ui_engine/swagger_docs/show.html.erb +++ b/app/views/swagger_ui_engine/swagger_docs/show.html.erb @@ -1,5 +1,9 @@ <% content_for(:head) do %>