From c0ac7811135ba406ce5307c80e8365fea0901e3f Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Tue, 4 Apr 2017 20:38:21 -0400 Subject: [PATCH] adding whisper --- Gemfile | 2 ++ Gemfile.lock | 6 ++++++ config/environments/production.rb | 2 ++ 3 files changed, 10 insertions(+) diff --git a/Gemfile b/Gemfile index 168898cf..c82880ff 100644 --- a/Gemfile +++ b/Gemfile @@ -52,6 +52,8 @@ gem 'omniauth' gem 'twilio-ruby', '~> 4.11.1' +gem 'rack-wwwhisper', '~> 1.0' + group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console diff --git a/Gemfile.lock b/Gemfile.lock index 40c83ba4..56d4bfdc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -113,6 +113,7 @@ GEM minitest (5.10.1) multi_json (1.12.1) nested_scaffold (1.0.0) + net-http-persistent (2.9.4) newrelic_rpm (3.17.1.326) nio4r (1.2.1) nokogiri (1.6.8) @@ -134,6 +135,10 @@ GEM rack (2.0.1) rack-test (0.6.3) rack (>= 1.0) + rack-wwwhisper (1.1.12) + addressable (~> 2.0) + net-http-persistent (< 3.0) + rack (>= 1.0) rails (5.0.1) actioncable (= 5.0.1) actionmailer (= 5.0.1) @@ -261,6 +266,7 @@ DEPENDENCIES phantomjs poltergeist puma (~> 3.0) + rack-wwwhisper (~> 1.0) rails (~> 5.0.1) rails-controller-testing rspec-rails (~> 3.5) diff --git a/config/environments/production.rb b/config/environments/production.rb index cf0f8a29..454bf36d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -85,4 +85,6 @@ Rails.application.configure do config.active_record.dump_schema_after_migration = false config.action_mailer.default_url_options = { host: 'edcontext.org' } + + config.middleware.insert 0, "Rack::WWWhisper" end