defra_ruby_alert 2.1.0 → 2.1.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
  SHA256:
3
- metadata.gz: bd752fb4d156ca20aa6c449a7a537ccc174b2749c738f086e8f1ba3834fefbf9
4
- data.tar.gz: 8b7038c5c82b72d17c8e600de490becc8cd93686e61571c62a666493e2e1e842
3
+ metadata.gz: e0f6f95fa19b61f81e35d0adbb8f68c98a07fe69f5050bd6bd76c85d905558b5
4
+ data.tar.gz: 8bccdb8a596f3681516cbe22883ccd8c1f3419ed0e9b63327977c66970fe3cc4
5
5
  SHA512:
6
- metadata.gz: 58fb7b1763a226d9b9e17625512242f0f641256dca858959ecc1cbba6de55e32170396bcc2f2ed79aff9a1ee47a43eb03aa11de7adc8113c54c6af3bcdc39f7d
7
- data.tar.gz: 7668f51ade4c8a7debe50c56508521d984def72d73e561308d4bc1092151d2b58477445227ff7a9bd7baf18f6aeb4f057cd5f56e7a17085b3f74fc32afc3381f
6
+ metadata.gz: 0eea4ff03f1dc104ad52efdeb2e4edc4e088eb3b6e00a2f7c7d18c724b2b12c711439e4acd1fe5b1b84367633aebd8e4110f18cce420d97ccc946d70cf1d5405
7
+ data.tar.gz: ae425f819566b999795edfb084cdcb44d90f5bd654316a99f06a296ad1d09c881d24095935485ce702ad2ef1c7da18529c2231b4735d8bc37c05ef64a3750cb8
@@ -64,6 +64,13 @@ module DefraRuby
64
64
  # replaced.
65
65
  # https://github.com/airbrake/airbrake-ruby#blocklist_keys
66
66
  c.blocklist_keys = DefraRuby::Alert.configuration.blocklist
67
+
68
+ # Latest versions of Airbrake support performance stats being
69
+ # automatically sent to Airbrake. We actually use Errbit at Defra
70
+ # which doesn't support this feature. So all we see is lots of 404
71
+ # errors in our logs. To prevent this we disable this feature.
72
+ # https://github.com/airbrake/airbrake-ruby#performance_stats
73
+ c.performance_stats = false
67
74
  end
68
75
  end
69
76
  end
@@ -3,8 +3,7 @@
3
3
  module DefraRuby
4
4
  module Alert
5
5
  class Configuration
6
- attr_accessor :root_directory, :logger, :environment
7
- attr_accessor :host, :project_key, :blocklist, :enabled
6
+ attr_accessor :root_directory, :logger, :environment, :host, :project_key, :blocklist, :enabled
8
7
 
9
8
  def initialize
10
9
  @blocklist = []
@@ -2,6 +2,6 @@
2
2
 
3
3
  module DefraRuby
4
4
  module Alert
5
- VERSION = "2.1.0"
5
+ VERSION = "2.1.1"
6
6
  end
7
7
  end
@@ -20,8 +20,10 @@ module DefraRuby
20
20
  :logger= => nil,
21
21
  :environment= => nil,
22
22
  :ignore_environments= => nil,
23
- :blocklist_keys= => nil
23
+ :blocklist_keys= => nil,
24
+ :performance_stats= => nil
24
25
  )
26
+ allow(configuration).to receive(:performance_stats)
25
27
 
26
28
  allow(Airbrake).to receive(:configure).and_yield(configuration)
27
29
  end
@@ -1,10 +1,10 @@
1
1
  example_id | status | run_time |
2
2
  -------------------------------------------------------- | ------ | --------------- |
3
- ./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:1] | passed | 0.00255 seconds |
4
- ./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:2:1] | passed | 0.00052 seconds |
5
- ./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:3:1] | passed | 0.00062 seconds |
6
- ./spec/defra_ruby/alert/configuration_spec.rb[1:1] | passed | 0.00259 seconds |
7
- ./spec/defra_ruby/alert_spec.rb[1:1:1] | passed | 0.00304 seconds |
8
- ./spec/defra_ruby/alert_spec.rb[1:2:1:1] | passed | 0.0017 seconds |
9
- ./spec/defra_ruby/alert_spec.rb[1:2:2:1] | passed | 0.00178 seconds |
10
- ./spec/defra_ruby/alert_spec.rb[1:3:1] | passed | 0.01859 seconds |
3
+ ./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:1] | passed | 0.02247 seconds |
4
+ ./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:2:1] | passed | 0.00068 seconds |
5
+ ./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:3:1] | passed | 0.00556 seconds |
6
+ ./spec/defra_ruby/alert/configuration_spec.rb[1:1] | passed | 0.00149 seconds |
7
+ ./spec/defra_ruby/alert_spec.rb[1:1:1] | passed | 0.00241 seconds |
8
+ ./spec/defra_ruby/alert_spec.rb[1:2:1:1] | passed | 0.0016 seconds |
9
+ ./spec/defra_ruby/alert_spec.rb[1:2:2:1] | passed | 0.00012 seconds |
10
+ ./spec/defra_ruby/alert_spec.rb[1:3:1] | passed | 0.00038 seconds |
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defra_ruby_alert
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Defra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake