openteam-commons 0.3.3 → 0.3.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91e02b18f00660ec4e4cd2362b428469797c5743
4
- data.tar.gz: c4b975850e41ec02612b355cf3a5fb135c8c2cec
3
+ metadata.gz: 91bad3359d8397d316c24a04f1e1b81e7336aa15
4
+ data.tar.gz: 3787c8b9f2310c19fad25ca30a8b94f013a9e350
5
5
  SHA512:
6
- metadata.gz: a292f7bde2873490f462996c0cfebd150a106d621b21025181397c311ef15a51145d8fd43efb520653765ad8a8c81071c890957478a856161966bcac8ab2c636
7
- data.tar.gz: df40dc3eae501a8dc542001e56d00863a0610cc533fde57ca7a9d6844c26dc6035ec5cd814e338fbc2390e73257ab5f423241c63c8794df5fb50c7f06dfffbf5
6
+ metadata.gz: f30ab22539d18517d29120d7a1e38cd4e2c815be0d6541bc5c02534d0c5ea340cf26f4ec41c49c6a62e46711321f4f99b44962aa062b11b49a9b21b2bba86eb6
7
+ data.tar.gz: 2c83763036de4cb943e5b17044e3e441f33bf16456939b1c4170f3614506e2850ddf3fe7bcbc90f18111f6dc352376224ee6348171ac64237aa609d02277ef8b
@@ -58,8 +58,12 @@ module OpenteamCommons
58
58
  config.environment = Rails.env
59
59
  config.ignore_environments = %w[development test]
60
60
  end
61
+ ignore_errors = [
62
+ 'ActiveRecord::RecordNotFound',
63
+ 'ActionView::Template::Error',
64
+ ]
61
65
  Airbrake.add_filter do |notice|
62
- if notice[:errors].any? { |error| error[:type] == 'ActiveRecord::RecordNotFound' }
66
+ if notice[:errors].any? { |error| ignore_errors.include? error[:type] }
63
67
  notice.ignore!
64
68
  end
65
69
  end
@@ -1,3 +1,3 @@
1
1
  module OpenteamCommons
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openteam-commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTeam