govuk_app_config 0.2.0 → 0.3.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +15 -3
- data/Rakefile +4 -0
- data/lib/govuk_app_config/configure.rb +1 -1
- data/lib/govuk_app_config/govuk_error.rb +6 -0
- data/lib/govuk_app_config/govuk_statsd.rb +3 -3
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4791548002b6883ab4483008296f2df6a8151865
|
4
|
+
data.tar.gz: 1dcbcb6a7e6790cb555ca4f776266667a94183aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ebacb7a67fa6da41352fce27f2331b5ecf26244bf0a14525d4de17d478282a4b3a73f72b54bc1a308064ef0abbf57967640a6c5748cda254f7de9b899606d63
|
7
|
+
data.tar.gz: dfe3d0ff930dbe2e2073e3fed0d925635f00d1002410d7385d05b4c02552b5a1e52baae6c5719fab2d3a485fe38efed16d805772c05726a5819aee368d47ad5d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,12 +16,12 @@ And then execute:
|
|
16
16
|
|
17
17
|
### Automatic error reporting
|
18
18
|
|
19
|
-
If you include `govuk_app_config` in your `Gemfile`, Rails' autoloading mechanism will make sure that your application is configured to send errors Sentry.
|
19
|
+
If you include `govuk_app_config` in your `Gemfile`, Rails' autoloading mechanism will make sure that your application is configured to send errors to Sentry.
|
20
20
|
|
21
21
|
If you use the gem outside of Rails you'll have to explicitly require it:
|
22
22
|
|
23
23
|
```rb
|
24
|
-
require 'govuk_app_config
|
24
|
+
require 'govuk_app_config'
|
25
25
|
```
|
26
26
|
|
27
27
|
Your app will have to have the following environment variables set:
|
@@ -55,6 +55,18 @@ GovukError.notify(
|
|
55
55
|
)
|
56
56
|
```
|
57
57
|
|
58
|
+
### Error configuration
|
59
|
+
|
60
|
+
You can exclude certain errors from being reported using this:
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
GovukError.configure do |config|
|
64
|
+
config.excluded_exceptions << "RetryableError"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
`GovukError.configure` has the same options as the Sentry client, Raven. See [the Raven docs for all configuration options](https://docs.sentry.io/clients/ruby/config).
|
69
|
+
|
58
70
|
## License
|
59
71
|
|
60
|
-
[MIT License]
|
72
|
+
[MIT License](LICENSE.md)
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ if defined?(Airbrake)
|
|
2
2
|
raise "This gem isn't compatible with Airbrake. Please remove it from the Gemfile."
|
3
3
|
end
|
4
4
|
|
5
|
-
|
5
|
+
GovukError.configure do |config|
|
6
6
|
# We need this until https://github.com/getsentry/raven-ruby/pull/736 is released
|
7
7
|
config.current_environment = ENV["SENTRY_CURRENT_ENV"]
|
8
8
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: statsd-ruby
|