From d3ed39597ebb299172d94f04c41148eb232ffe9b Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 19 Sep 2016 16:59:07 +0200 Subject: [PATCH 1/3] Fix bug @latest_release for Github --- app/controllers/root_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index 8ea836b49..e180f1286 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -14,7 +14,11 @@ class RootController < ApplicationController redirect_to administrations_path else - @latest_release = Github::Releases.latest + begin + @latest_release = Github::Releases.latest + rescue OpenSSL::SSL::SSLErrorWaitReadable + @latest_release = nil + end render 'landing' end end From b86d4ced0d588fc6e71ba762297acff80c34e7a1 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 19 Sep 2016 17:02:29 +0200 Subject: [PATCH 2/3] Disabled @latest_release for Github --- app/controllers/root_controller.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index e180f1286..24870bc0b 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -14,11 +14,8 @@ class RootController < ApplicationController redirect_to administrations_path else - begin - @latest_release = Github::Releases.latest - rescue OpenSSL::SSL::SSLErrorWaitReadable - @latest_release = nil - end + @latest_release = Github::Releases.latest + @latest_release = nil render 'landing' end end From 6bd2cfb935169622c9e7f7210c631149a6156682 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 19 Sep 2016 17:06:09 +0200 Subject: [PATCH 3/3] Disabled @latest_release for Github --- app/controllers/root_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index 24870bc0b..f92a913d7 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -14,7 +14,7 @@ class RootController < ApplicationController redirect_to administrations_path else - @latest_release = Github::Releases.latest + # @latest_release = Github::Releases.latest @latest_release = nil render 'landing' end