features/fixtures/rails3/app/config/initializers/bugsnag.rb in bugsnag-6.9.0 vs features/fixtures/rails3/app/config/initializers/bugsnag.rb in bugsnag-6.10.0

- old
+ new

@@ -1,14 +1,14 @@ Bugsnag.configure do |config| - config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["MAZE_API_KEY"] - config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"] - config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"] - config.app_type = ENV["MAZE_APP_TYPE"] if ENV.include? "MAZE_APP_TYPE" - config.app_version = ENV["MAZE_APP_VERSION"] if ENV.include? "MAZE_APP_VERSION" - config.auto_notify = ENV["MAZE_AUTO_NOTIFY"] != "false" - config.project_root = ENV["MAZE_PROJECT_ROOT"] if ENV.include? "MAZE_PROJECT_ROOT" - config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["MAZE_IGNORE_CLASS"] } if ENV.include? "MAZE_IGNORE_CLASS" - config.auto_capture_sessions = ENV["MAZE_AUTO_CAPTURE_SESSIONS"] == "true" - config.release_stage = ENV["MAZE_RELEASE_STAGE"] if ENV.include? "MAZE_RELEASE_STAGE" - config.send_code = ENV["MAZE_SEND_CODE"] != "false" - config.send_environment = ENV["MAZE_SEND_ENVIRONMENT"] == "true" + config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["BUGSNAG_API_KEY"] + config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"] + config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"] + config.app_type = ENV["BUGSNAG_APP_TYPE"] if ENV.include? "BUGSNAG_APP_TYPE" + config.app_version = ENV["BUGSNAG_APP_VERSION"] if ENV.include? "BUGSNAG_APP_VERSION" + config.auto_notify = ENV["BUGSNAG_AUTO_NOTIFY"] != "false" + config.project_root = ENV["BUGSNAG_PROJECT_ROOT"] if ENV.include? "BUGSNAG_PROJECT_ROOT" + config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["BUGSNAG_IGNORE_CLASS"] } if ENV.include? "BUGSNAG_IGNORE_CLASS" + config.auto_capture_sessions = ENV["BUGSNAG_AUTO_CAPTURE_SESSIONS"] == "true" + config.release_stage = ENV["BUGSNAG_RELEASE_STAGE"] if ENV.include? "BUGSNAG_RELEASE_STAGE" + config.send_code = ENV["BUGSNAG_SEND_CODE"] != "false" + config.send_environment = ENV["BUGSNAG_SEND_ENVIRONMENT"] == "true" end