defra_ruby_alert 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -2
- data/Rakefile +2 -2
- data/bin/console +2 -6
- data/lib/defra_ruby/alert/version.rb +1 -1
- metadata +8 -10
- data/spec/examples.txt +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46ec1761233b9e6991893ee9c6b54488fcbea4da
|
4
|
+
data.tar.gz: 9cf5dbeb23caf7d87d794e7d5febbe2d936aa031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b9f43a8c242a6f1b5faf906fe40db59a03b663133f8bb16d494f149d22f3f8d607904f0617d83da2921e918ddc740cb2bdfead7f377a34f79383238e5390ef
|
7
|
+
data.tar.gz: 142afe8fda4bee616d07fd3118b4ee06422599503c7e172eeb18a1a0c28b41ee4a391c47207bd0de73364292867612bc040c809afd9ff41b2fd8a7be6ee693f2
|
data/README.md
CHANGED
@@ -18,10 +18,16 @@ It's aim is to help us
|
|
18
18
|
|
19
19
|
## Installation
|
20
20
|
|
21
|
-
|
21
|
+
This gem is intended to replace directly referencing and managing the [Airbrake gem](https://github.com/airbrake/airbrake-ruby) in our services. However our services require different versions of Airbrake due to the versions of Ruby they depend on. So if like the [Flood Risk Activity Exemptions service](https://github.com/DEFRA/ruby-services-team/tree/master/services/frae) you are using Ruby 2.3 and need Airbrake version 5.3 add this line to your application's Gemfile
|
22
22
|
|
23
23
|
```ruby
|
24
|
-
gem "defra_ruby_alert"
|
24
|
+
gem "defra_ruby_alert", "~> 0.1.0"
|
25
|
+
```
|
26
|
+
|
27
|
+
If like the [Waste Exemptions](https://github.com/DEFRA/ruby-services-team/tree/master/services/wex) and [Waste Carriers](https://github.com/DEFRA/ruby-services-team/tree/master/services/wcr) services you are using Ruby 2.4 and need Airbrake version 5.8 add this line to your application's Gemfile
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
gem "defra_ruby_alert", "~> 1.0.0"
|
25
31
|
```
|
26
32
|
|
27
33
|
And then update your dependencies by calling
|
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ Bundler::GemHelper.install_tasks
|
|
11
11
|
# This is wrapped to prevent an error when rake is called in environments where
|
12
12
|
# rspec may not be available, e.g. production. As such we don't need to handle
|
13
13
|
# the error.
|
14
|
-
# rubocop:disable Lint/
|
14
|
+
# rubocop:disable Lint/SuppressedException
|
15
15
|
begin
|
16
16
|
require "rspec/core/rake_task"
|
17
17
|
|
@@ -32,4 +32,4 @@ begin
|
|
32
32
|
rescue LoadError
|
33
33
|
# no changelog available
|
34
34
|
end
|
35
|
-
# rubocop:enable Lint/
|
35
|
+
# rubocop:enable Lint/SuppressedException
|
data/bin/console
CHANGED
@@ -6,9 +6,5 @@ require "defra_ruby/alert"
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
9
|
+
require "pry"
|
10
|
+
Pry.start
|
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:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: 5.8.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.
|
26
|
+
version: 5.8.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: defra_ruby_style
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,16 +126,16 @@ dependencies:
|
|
126
126
|
name: simplecov
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.17.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.17.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: webmock
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +171,6 @@ files:
|
|
171
171
|
- spec/defra_ruby/alert/airbrake_runner_spec.rb
|
172
172
|
- spec/defra_ruby/alert/configuration_spec.rb
|
173
173
|
- spec/defra_ruby/alert_spec.rb
|
174
|
-
- spec/examples.txt
|
175
174
|
- spec/spec_helper.rb
|
176
175
|
- spec/support/defra_ruby_alert.rb
|
177
176
|
- spec/support/dotenv.rb
|
@@ -208,7 +207,6 @@ test_files:
|
|
208
207
|
- spec/defra_ruby/alert_spec.rb
|
209
208
|
- spec/defra_ruby/alert/configuration_spec.rb
|
210
209
|
- spec/defra_ruby/alert/airbrake_runner_spec.rb
|
211
|
-
- spec/examples.txt
|
212
210
|
- spec/support/defra_ruby_alert.rb
|
213
211
|
- spec/support/simplecov.rb
|
214
212
|
- spec/support/webmock.rb
|
data/spec/examples.txt
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
example_id | status | run_time |
|
2
|
-
-------------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:1] | passed | 0.01923 seconds |
|
4
|
-
./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:2:1] | passed | 0.00407 seconds |
|
5
|
-
./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:2:2] | passed | 0.00105 seconds |
|
6
|
-
./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:3:1] | passed | 0.00114 seconds |
|
7
|
-
./spec/defra_ruby/alert/airbrake_runner_spec.rb[1:1:3:2] | passed | 0.00183 seconds |
|
8
|
-
./spec/defra_ruby/alert/configuration_spec.rb[1:1] | passed | 0.00394 seconds |
|
9
|
-
./spec/defra_ruby/alert_spec.rb[1:1:1] | passed | 0.00465 seconds |
|
10
|
-
./spec/defra_ruby/alert_spec.rb[1:2:1:1] | passed | 0.00216 seconds |
|
11
|
-
./spec/defra_ruby/alert_spec.rb[1:2:2:1] | passed | 0.00013 seconds |
|
12
|
-
./spec/defra_ruby/alert_spec.rb[1:3:1] | passed | 0.00051 seconds |
|