lib/rollbar/rake_tasks.rb in rollbar-0.11.4 vs lib/rollbar/rake_tasks.rb in rollbar-0.11.5

- old
+ new

@@ -49,12 +49,17 @@ Rails.application.routes_reloader.execute_if_updated Rails.application.routes.draw do get 'verify' => 'application#verify', :as => 'verify' end - + + # from http://stackoverflow.com/questions/5270835/authlogic-activation-problems + if defined? Authlogic + Authlogic::Session::Base.controller = Authlogic::ControllerAdapters::RailsAdapter.new(self) + end + puts "Processing..." - protocol = Rails.application.config.force_ssl ? 'https' : 'http' + protocol = (defined? Rails.application.config.force_ssl && Rails.application.config.force_ssl) ? 'https' : 'http' env = Rack::MockRequest.env_for("#{protocol}://www.example.com/verify") status, headers, response = Rails.application.call(env) unless status == 500 puts "Test failed! You may have a configuration issue, or you could be using a gem that's blocking the test. Contact support@rollbar.com if you need help troubleshooting."