Permalink
Commits on Mar 28, 2012
  1. Fix reporting of middleware errors under Rails 3

    Dwayne Litzenberger
    Dwayne Litzenberger committed Mar 28, 2012
    This fixes the issue (airbrake#76) where
    errors occurring in the middleware stack (e.g. in the ActiveRecord session
    store) do not get reported.
    
    In Rails 3, the Airbrake::Rack middleware was being inserted near the end of
    the middleware stack, just before Application.routes.  This change places the
    middleware much earlier in the stack: just after
    ActionDispatch::ShowExceptions.
    
    This makes airbrake's behaviour similar to how it functioned in Rails 2, with
    Airbrake::Rack inserted just after ActionController::Failsafe.
    
    Example middleware stack before:
    
      use Airbrake::UserInformer
      use ActionDispatch::Static
      use Rack::Lock
      use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x1020eb728>
      use Rack::Runtime
      use Rack::MethodOverride
      use ActionDispatch::RequestId
      use Rails::Rack::Logger
      use ActionDispatch::ShowExceptions
      use ActionDispatch::DebugExceptions
      use ActionDispatch::RemoteIp
      use ActionDispatch::Reloader
      use ActionDispatch::Callbacks
      use ActiveRecord::ConnectionAdapters::ConnectionManagement
      use ActiveRecord::QueryCache
      use ActionDispatch::Cookies
      use ActionDispatch::Session::CookieStore
      use ActionDispatch::Flash
      use ActionDispatch::ParamsParser
      use ActionDispatch::Head
      use Rack::ConditionalGet
      use Rack::ETag
      use ActionDispatch::BestStandardsSupport
      use Airbrake::Rack
      run SampleApp::Application.routes
    
    Example middleware stack after:
    
      use Airbrake::UserInformer
      use ActionDispatch::Static
      use Rack::Lock
      use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x10224a3f8>
      use Rack::Runtime
      use Rack::MethodOverride
      use ActionDispatch::RequestId
      use Rails::Rack::Logger
      use ActionDispatch::ShowExceptions
      use Airbrake::Rack
      use ActionDispatch::DebugExceptions
      use ActionDispatch::RemoteIp
      use ActionDispatch::Reloader
      use ActionDispatch::Callbacks
      use ActiveRecord::ConnectionAdapters::ConnectionManagement
      use ActiveRecord::QueryCache
      use ActionDispatch::Cookies
      use ActiveRecord::SessionStore
      use ActionDispatch::Flash
      use ActionDispatch::ParamsParser
      use ActionDispatch::Head
      use Rack::ConditionalGet
      use Rack::ETag
      use ActionDispatch::BestStandardsSupport
      run SampleApp::Application.routes
Commits on Mar 20, 2012
  1. Merge pull request #75 from blackhacker/master

    dvdplm committed Mar 20, 2012
    more detailed error message
  2. more detailed error message

    blackhacker
    blackhacker committed Mar 20, 2012
Commits on Mar 19, 2012
  1. Merge pull request #71 from sgonyea/patch-1

    dvdplm committed Mar 19, 2012
    Document proxy parameters; namely, that the proxy_host does not require "http://" as a prefix. Ideally, config.proxy= could be given a URI.
  2. Merge pull request #60 from DaPulse/master

    dvdplm committed Mar 19, 2012
    Fix for issue #58
Commits on Mar 12, 2012
  1. Document proxy parameters; namely, that the proxy_host does not requi…

    sgonyea committed Mar 12, 2012
    …re "http://" as a prefix. Ideally, config.proxy= could be given a URI.
Commits on Mar 2, 2012
  1. improved readability

    shime committed Mar 2, 2012
  2. Merge pull request #63 from benjaminoakes/master

    shime committed Mar 2, 2012
    Use hash argument when filtering
Commits on Mar 1, 2012
  1. One-liner, per @shime

    benjaminoakes committed Mar 1, 2012
Commits on Feb 27, 2012
  1. Merge pull request #62 from sleparc/master

    shime committed Feb 27, 2012
    Removed unnecessary test
  2. Merge pull request #59 from benjaminoakes/master

    shime committed Feb 27, 2012
    Filter params on Rails 3.1 when calling notify_airbrake
Commits on Feb 25, 2012
Commits on Feb 24, 2012
Commits on Feb 23, 2012
Commits on Feb 16, 2012
  1. Merge pull request #56 from GateGuru/rake_handler_fix

    dvdplm committed Feb 16, 2012
    Modify Rake handler to use Airbrake.notify_or_ignore rather than Airbrak...
Commits on Feb 13, 2012
  1. Works outside Rails

    dvdplm committed Feb 13, 2012
  2. stop using deprecated RAILS_ROOT

    indirect authored and dvdplm committed Nov 6, 2011
  3. Merge pull request #51 from unnu/master

    dvdplm committed Feb 13, 2012
    tagged logging raising exception in Rails v3.2.1
Commits on Jan 26, 2012
  1. Merge pull request #33 from cgriego/patch-1

    dvdplm committed Jan 26, 2012
    Fix allowing airbrake_env/TO being different from rails_env/RAILS_ENV in deployment notifications
Commits on Jan 25, 2012
  1. Adds `pry` to the gems available in test env

    dvdplm committed Jan 25, 2012
    Removes unused inclusion of the TestMethods in AirbrakeController
    Refactor the setup_http_connection tests for sanity
Commits on Dec 29, 2011
  1. Merge pull request #38 from ndbroadbent/ignore_mongoid_notfound

    usiegj00 committed Dec 29, 2011
    Added Mongoid::Errors::DocumentNotFound to default IGNORED exceptions
  2. Merge pull request #47 from 21croissants/master

    usiegj00 committed Dec 29, 2011
    Simple README edit explaining how to manually test the airbrake_javascript_notifier in "development" env
  3. Merge pull request #46 from eostrom/master

    usiegj00 committed Dec 29, 2011
    Updated Heroku README to use Airbrake's new name.
Commits on Dec 21, 2011
  1. More idiomatic inject

    dvdplm committed Dec 21, 2011
  2. Set VERIFY_PEER in rake task

    dvdplm committed Dec 21, 2011