From 79469a776793d0ad1135482c12c663000fcd0720 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Tue, 15 May 2018 16:56:54 +0200 Subject: [PATCH 1/2] Upgrade Skylight from 1.5.0 to 2.0.1 There's nothing we have to worry about it being a major version as we weren't using it yet. --- Gemfile.lock | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 6614896ce..6a7480ce9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -338,8 +338,10 @@ GEM simple_form (3.1.0) actionpack (~> 4.0) activemodel (~> 4.0) - skylight (1.5.0) - activesupport (>= 3.0.0) + skylight (2.0.1) + skylight-core (= 2.0.1) + skylight-core (2.0.1) + activesupport (>= 4.2.0) sprockets (3.7.1) concurrent-ruby (~> 1.0) rack (> 1, < 3) From 8e3a826c0b16b4a60623f97ede1dd2f139314095 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Tue, 15 May 2018 17:03:53 +0200 Subject: [PATCH 2/2] Enable Skylight in staging --- config/application.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/application.rb b/config/application.rb index 97613f125..ba1728b8e 100644 --- a/config/application.rb +++ b/config/application.rb @@ -28,5 +28,9 @@ class Application < Rails::Application # This tells Rails to serve error pages from the app itself, rather than using static error pages in public/ config.exceptions_app = self.routes + + # Activate the Skylight agent in staging. You need to provision the + # SKYLIGHT_AUTHENTICATION env var for this to work. + config.skylight.environments += ["staging"] end end