airbrake 6.2.0 → 6.2.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
  SHA1:
3
- metadata.gz: 61d81c604cd88743685380d634da21b76398a0ad
4
- data.tar.gz: 27acbdf305e895dc353b7bfa597e69cf48186442
3
+ metadata.gz: a248a672ef1cf565f9ff356b7e7b6544fe573e0d
4
+ data.tar.gz: a2f3b341cca7dc7443fde6190cf7e83a38889b32
5
5
  SHA512:
6
- metadata.gz: 5efad8c66c13b8d689640088ccf93e8c6c4b03feb1043e69d0ad7aaf0bd011677be189239319128435b850dc11146b413f01ffb6a8362f646ee5c79f263b704e
7
- data.tar.gz: dce4e2c11dcd693fd3f7624530b87810c627530e187678bb6778b54241fd99a6edffc62e466a928f0f4951fbbd0a6072981cf135c92b2dfe819e2bc33e39f2c8
6
+ metadata.gz: ebb8e13d1bd9902eba7326077e26befdff87166122e134b52060d6cd28e61dbcab31454dc4b7039b6bea38228a4dd5575317c92bd3201bead5d8caa07cd4f2ed
7
+ data.tar.gz: 142bc31ff88afbd58d46b34eb371aa93a1b09484f87f8f2ae1c6e1e6cfaa53201f823a3f5127dfec569c89bb65b5c8be90aa5ab1fd4489d588e705e8b3c5cd76
@@ -30,10 +30,6 @@ namespace :airbrake do
30
30
 
31
31
  desc 'Notify Airbrake of a new deploy'
32
32
  task :deploy do
33
- unless Airbrake.configured?
34
- raise Airbrake::Error, 'airbrake-ruby is not configured'
35
- end
36
-
37
33
  if defined?(Rails)
38
34
  initializer = Rails.root.join('config', 'initializers', 'airbrake.rb')
39
35
 
@@ -46,6 +42,10 @@ namespace :airbrake do
46
42
  end
47
43
  end
48
44
 
45
+ unless Airbrake.configured?
46
+ raise Airbrake::Error, 'airbrake-ruby is not configured'
47
+ end
48
+
49
49
  deploy_params = {
50
50
  environment: ENV['ENVIRONMENT'],
51
51
  username: ENV['USERNAME'],
@@ -2,5 +2,5 @@
2
2
  # We use Semantic Versioning v2.0.0
3
3
  # More information: http://semver.org/
4
4
  module Airbrake
5
- AIRBRAKE_VERSION = '6.2.0'.freeze
5
+ AIRBRAKE_VERSION = '6.2.1'.freeze
6
6
  end
@@ -35,6 +35,22 @@ RSpec.describe "airbrake/rake/tasks" do
35
35
  %w[version v2.0]].each do |(key, val)|
36
36
  include_examples 'deploy payload', key, val
37
37
  end
38
+
39
+ context "when Airbrake is not configured" do
40
+ let(:deploy_endpoint) do
41
+ 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
42
+ end
43
+
44
+ before do
45
+ stub_request(:post, deploy_endpoint)
46
+ expect(Airbrake).to receive(:configured?).and_return(false)
47
+ end
48
+
49
+ it "raises error" do
50
+ expect { task.invoke }.
51
+ to raise_error(Airbrake::Error, 'airbrake-ruby is not configured')
52
+ end
53
+ end
38
54
  end
39
55
 
40
56
  describe "airbrake:install_heroku_deploy_hook" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-08 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.3.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '2.3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.3.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rspec
29
35
  requirement: !ruby/object:Gem::Requirement