glitchy_gem 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ module GlitchyGem
2
2
  class Glitch
3
3
  attr_reader :exception
4
4
  def initialize(e, options = {})
5
+ return if GlitchyGem.ignore_exceptions.include?(e.class.to_s)
5
6
  @rack_env = options[:rack_env] || {}
6
7
  @exception = e
7
8
 
@@ -1,3 +1,3 @@
1
1
  module GlitchyGem
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/glitchy_gem.rb CHANGED
@@ -5,11 +5,17 @@ require 'glitchy_gem/railtie' if defined?(Rails::Railtie)
5
5
 
6
6
  module GlitchyGem
7
7
  class << self
8
- attr_accessor :api_key, :environment, :logger, :url, :environments
8
+ attr_accessor :api_key, :environment, :logger, :url, :environments, :ignore_exceptions
9
9
  def configure
10
10
  yield(self)
11
11
 
12
12
  self.environments ||= ["production"]
13
+ self.ignore_exceptions ||= [
14
+ 'ActiveRecord::RecordNotFound',
15
+ 'ActionController::RoutingError',
16
+ 'ActionController::InvalidAuthenticityToken',
17
+ 'ActionController::UnknownAction'
18
+ ]
13
19
  end
14
20
  end
15
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glitchy_gem
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - GlitchyApp
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-22 00:00:00 -07:00
18
+ date: 2011-06-26 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency