From fc0b705030f400fe77887aef3468a0589fc34ab8 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Fri, 19 Feb 2016 10:28:02 -0300 Subject: [PATCH] Added support for error tracker at http://diagnostico.participa.br/ --- Gemfile | 3 +++ Gemfile.lock | 51 +++++++++++++++++++++++++++++++++++++++++++++------ config/initializers/errbit.rb | 6 ++++++ 3 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 config/initializers/errbit.rb diff --git a/Gemfile b/Gemfile index fe9902a..d6e7217 100644 --- a/Gemfile +++ b/Gemfile @@ -58,6 +58,9 @@ gem 'actionpack-action_caching' gem 'activerecord-session_store' gem 'activerecord-deprecated_finders', require: 'active_record/deprecated_finders' +# gem for error reporting +gem 'airbrake' + group :production do gem 'dalli', '~> 2.7.0' end diff --git a/Gemfile.lock b/Gemfile.lock index 7617e62..005d924 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -155,26 +155,34 @@ GEM acts-as-taggable-on (3.5.0) activerecord (>= 3.2, < 5) addressable (2.4.0) + airbrake (5.0.5) + airbrake-ruby (~> 1.0) + airbrake-ruby (1.0.4) ansi (1.5.0) api-pagination (4.1.1) arel (6.0.3) + awesome_print (1.6.1) axiom-types (0.1.1) descendants_tracker (~> 0.0.4) ice_nine (~> 0.11.0) thread_safe (~> 0.3, >= 0.3.1) builder (3.2.2) + byebug (8.2.2) capybara (2.5.0) mime-types (>= 1.16) nokogiri (>= 1.3.3) rack (>= 1.0.0) rack-test (>= 0.5.4) xpath (~> 2.0) - childprocess (0.5.8) + childprocess (0.5.9) ffi (~> 1.0, >= 1.0.11) chronic (0.10.2) + coderay (1.1.0) coercible (1.0.0) descendants_tracker (~> 0.0.1) concurrent-ruby (1.0.0) + coolline (0.5.0) + unicode_utils (~> 1.4) cucumber (1.3.20) builder (>= 2.1.2) diff-lcs (>= 1.1.3) @@ -239,10 +247,19 @@ GEM grape_logging (1.1.2) grape hashie (3.4.3) + hirb (0.7.3) http-cookie (1.0.2) domain_name (~> 0.5) i18n (0.7.0) ice_nine (0.11.1) + jazz_fingers (3.0.0) + awesome_print (~> 1.6) + hirb (~> 0.7) + pry (~> 0.10) + pry-byebug (~> 3.1) + pry-coolline (~> 0.2) + pry-doc (~> 0.6) + pry-remote (>= 0.1.7) json (1.8.3) kgio (2.10.0) kramdown (1.9.0) @@ -257,6 +274,7 @@ GEM mail (2.6.3) mime-types (>= 1.16, < 3) metaclass (0.0.4) + method_source (0.8.2) mime-types (2.99) mini_portile2 (2.0.0) minitest (5.8.3) @@ -278,6 +296,21 @@ GEM power_assert (0.2.6) protected_attributes (1.1.3) activemodel (>= 4.0.1, < 5.0) + pry (0.10.3) + coderay (~> 1.1.0) + method_source (~> 0.8.1) + slop (~> 3.4) + pry-byebug (3.3.0) + byebug (~> 8.0) + pry (~> 0.10) + pry-coolline (0.2.5) + coolline (~> 0.5) + pry-doc (0.8.0) + pry (~> 0.9) + yard (~> 0.8) + pry-remote (0.1.8) + pry (~> 0.9) + slop (~> 3.0) rack (1.6.4) rack-accept (0.4.5) rack (>= 0.4) @@ -348,7 +381,7 @@ GEM ruby-feedparser (0.9.3) magic ruby-progressbar (1.7.5) - rubyzip (1.1.7) + rubyzip (1.2.0) sass (3.4.20) sass-rails (5.0.4) railties (>= 4.0.0, < 5.0) @@ -356,7 +389,7 @@ GEM sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (>= 1.1, < 3) - selenium-webdriver (2.48.1) + selenium-webdriver (2.52.0) childprocess (~> 0.5) multi_json (~> 1.0) rubyzip (~> 1.0) @@ -364,6 +397,7 @@ GEM slim (3.0.6) temple (~> 0.7.3) tilt (>= 1.3.3, < 2.1) + slop (3.6.0) spring (1.6.1) sprockets (3.5.2) concurrent-ruby (~> 1.0) @@ -388,6 +422,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.7.1) + unicode_utils (1.4.0) unicorn (4.9.0) kgio (~> 2.6) rack @@ -403,6 +438,7 @@ GEM will_paginate (3.0.7) xpath (2.0.0) nokogiri (~> 1.3) + yard (0.8.7.6) PLATFORMS ruby @@ -421,7 +457,9 @@ DEPENDENCIES acts_as_list (= 0.0.0)! acts_as_tree (= 0.0.0)! acts_as_versioned (> 0.0.0)! + airbrake api-pagination (~> 4.1.1) + awesome_print capybara (~> 2.2) contacts (> 0.0.0)! cucumber @@ -439,11 +477,12 @@ DEPENDENCIES gdata (> 0.0.0)! gettext (~> 3.1) grape (~> 0.12) - grape-entity (~> 0.4.8) + grape-entity (= 0.4.8) grape-swagger grape_logging honeypot (= 0.0.0)! i18n_deprecation (= 0.0.0)! + jazz_fingers kandadaboggu-vote_fu (> 0.0.0)! kramdown launchy @@ -474,7 +513,7 @@ DEPENDENCIES ruby-feedparser (~> 0.7) ruby_bosh (> 0.0.0)! sass-rails - selenium-webdriver + selenium-webdriver (>= 2.50) slim spring sprockets-rails (~> 2.1) @@ -485,5 +524,5 @@ DEPENDENCIES validates_as_cnpj (= 0.0.0)! validates_multiparameter_assignments (= 0.0.0)! whenever - will_paginate + will_paginate (~> 3.0.7) xss_terminate (= 0.0.0)! diff --git a/config/initializers/errbit.rb b/config/initializers/errbit.rb new file mode 100644 index 0000000..c17acb7 --- /dev/null +++ b/config/initializers/errbit.rb @@ -0,0 +1,6 @@ +Airbrake.configure do |config| + config.api_key = '50c752b287f566a31e2adc9e84e379bc' + config.host = 'diagnostico.participa.br' + config.port = 80 + config.secure = config.port == 443 +end -- libgit2 0.21.2