Skip to content

Commit

Permalink
integrating airbrake
Browse files Browse the repository at this point in the history
  • Loading branch information
ethn committed Aug 7, 2012
1 parent 28438bf commit d2cbbd1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
19 changes: 11 additions & 8 deletions Gemfile
Expand Up @@ -3,14 +3,15 @@ source 'http://rubygems.org'

# DEFAULT

gem 'rails', '~> 3.2'
gem 'rails', '~> 3.2'
gem 'htmlentities', '~>4.3'
gem 'uuid', '~>2.3'
gem 'paperclip', '~>2.4'
gem 'rmagick', '~>2.13'
gem "recaptcha", "~> 0.3"
gem 'uuid', '~>2.3'
gem 'paperclip', '~>2.4'
gem 'rmagick', '~>2.13'
gem "recaptcha", "~> 0.3"

gem "rubyzip", "~> 0.9" # only required in module. should be separated out.
gem "rubyzip", "~> 0.9" # only required in module. should be separated out.
gem "airbrake", "~> 3.1"

# DATABASE

Expand Down Expand Up @@ -38,7 +39,7 @@ group :assets do
gem 'coffee-rails', "~> 3.1" # pretty code; compiles to JS
gem 'uglifier' # makes pretty code ugly again. compresses js/css for fast loading

gem 'jquery-rails', '~> 1.0' # main js framework, along with rails-specific unobtrusive lib
gem 'jquery-rails', '~> 1.0' # main js framework, along with rails-specific unobtrusive lib
gem 'tinymce-rails', '~> 3.4' # wysiwyg editor

gem 'therubyracer' # execjs is necessary for developing coffeescript. mac users have execjs built-in; don't need this one
Expand All @@ -57,7 +58,9 @@ end
group :test do
gem 'cucumber-rails', '~> 1.2' # feature-driven-development suite
gem 'launchy' # lets cucumber launch browser windows
gem 'timecop', '=0.3.5' # not clear on use/need. referred to in shared_data.rb
gem 'timecop', '=0.3.5' # not clear on use/need. referred to in shared_data.rb
# NOTE: had weird errors with timecop 0.4.4. would like to update when possible

gem 'spork' #

gem 'email_spec' #
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -29,6 +29,9 @@ GEM
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.3.2)
airbrake (3.1.2)
activesupport
builder
ansi (1.4.3)
archive-tar-minitar (0.5.2)
arel (3.0.2)
Expand Down Expand Up @@ -200,6 +203,7 @@ PLATFORMS
ruby

DEPENDENCIES
airbrake (~> 3.1)
coffee-rails (~> 3.1)
cucumber-rails (~> 1.2)
dalli
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -154,7 +154,7 @@ def render_show_file
[ :not_found, 404 ]
when Wagn::PermissionDenied, Card::PermissionDenied
[ :denial, 403]
when Wagn::BadAddress, ActionController::UnknownController, ActionController::UnknownAction
when Wagn::BadAddress, ActionController::UnknownController, AbstractController::ActionNotFound
[ :bad_address, 404 ]
else
if [Wagn::Oops, ActiveRecord::RecordInvalid].member?( exception.class ) && @card && @card.errors.any?
Expand Down
1 change: 0 additions & 1 deletion app/controllers/card_controller.rb
Expand Up @@ -17,7 +17,6 @@ class CardController < ApplicationController
before_filter :remove_ok, :only=>[ :remove ]



#----------( CREATE )

def create
Expand Down

0 comments on commit d2cbbd1

Please sign in to comment.