defra_ruby_alert 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0f6f95fa19b61f81e35d0adbb8f68c98a07fe69f5050bd6bd76c85d905558b5
|
|
4
|
+
data.tar.gz: 8bccdb8a596f3681516cbe22883ccd8c1f3419ed0e9b63327977c66970fe3cc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = []
|
|
@@ -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
|
data/spec/examples.txt
CHANGED
|
@@ -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.
|
|
4
|
-
./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:2:1] | passed | 0.
|
|
5
|
-
./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:3:1] | passed | 0.
|
|
6
|
-
./spec/defra_ruby/alert/configuration_spec.rb[1:1] | passed | 0.
|
|
7
|
-
./spec/defra_ruby/alert_spec.rb[1:1:1] | passed | 0.
|
|
8
|
-
./spec/defra_ruby/alert_spec.rb[1:2:1:1] | passed | 0.
|
|
9
|
-
./spec/defra_ruby/alert_spec.rb[1:2:2:1] | passed | 0.
|
|
10
|
-
./spec/defra_ruby/alert_spec.rb[1:3:1] | passed | 0.
|
|
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.
|
|
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-
|
|
11
|
+
date: 2020-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: airbrake
|