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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f09fce943f839d0387a09b7ecff2427a91fdd53
4
- data.tar.gz: e27a093cbcdd52f1622cfb9fa6a2c7c1ac5682f5
3
+ metadata.gz: 46ec1761233b9e6991893ee9c6b54488fcbea4da
4
+ data.tar.gz: 9cf5dbeb23caf7d87d794e7d5febbe2d936aa031
5
5
  SHA512:
6
- metadata.gz: d59ec1dcb55d2812d4b878cbaad24e41943a73709e644de6c69d5bf941b91f0687ce38a46b2e3638db796e3d5943620b4c161924e22414a70a7f0e89805c83f2
7
- data.tar.gz: aae0d7151f78f725693b0c3c1f7f3bbdda90147a40e664f1a7b06e43f60620eaf43e435452ee450c55e2f7e1be46e700a1aa40ebd6009ebde3d2b9a8b76a108a
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
- Add this line to your application's Gemfile
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/HandleExceptions
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/HandleExceptions
35
+ # rubocop:enable Lint/SuppressedException
@@ -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
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
9
+ require "pry"
10
+ Pry.start
@@ -2,6 +2,6 @@
2
2
 
3
3
  module DefraRuby
4
4
  module Alert
5
- VERSION = "0.1.0"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
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: 0.1.0
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: 2019-11-22 00:00:00.000000000 Z
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.3.0
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.3.0
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: '0'
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: '0'
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
@@ -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 |