airbrake 7.1.0 → 7.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
  SHA1:
3
- metadata.gz: 5318ea2afd6d654cedd224d55f7e9c830903e7bc
4
- data.tar.gz: a415cf7f6652f49d393bc016c45bc3e629e1b9cf
3
+ metadata.gz: c8f6883b94789832d3638a64402c0852d2d1b004
4
+ data.tar.gz: 64679d5d2c1d504dc6cfc15564415bb02fc0d7ac
5
5
  SHA512:
6
- metadata.gz: eb6b46b4da199974a46f4fef6c7a332fcfe7ba5f664628388d25878a94d09fcde7ffbcd7522c492b248cd79e21aa5cfc9fb9bfdb9035e057167c397fcb79e64f
7
- data.tar.gz: d13f2e7bc79f385f76f9dfb416b8e5eee8edb5a324f84d868f4456bebe6fdd4c027bb9e14fb2464db015690f8224cab2a6e23079fcf69639d4aa68d749aff8f2
6
+ metadata.gz: f925c47eca23985cd3cbaf99fcb58ac2c03b1bced4b27a42dd874062492dfedc0cd78858b39beb27dd25386c16ac3a1cf51308b40d1765a108db4a92cca6e98a
7
+ data.tar.gz: 6eabc9b0e7174c5b8d385afd8f2c92fc50424295984b6bd0db6c0983ad1e98c88dd6fd228aab86ff5bc9d15ad609747783e1f0b59769da79f788c89ea9596d5a
@@ -1,5 +1,4 @@
1
1
  module Airbrake
2
- ##
3
2
  # The Capistrano v2 integration.
4
3
  module Capistrano
5
4
  # rubocop:disable Metrics/AbcSize
@@ -32,7 +31,7 @@ module Airbrake
32
31
  end
33
32
  end
34
33
  end
35
- # rubocop:enable Metrics:AbcSize
34
+ # rubocop:enable Metrics/AbcSize
36
35
  end
37
36
  end
38
37
 
@@ -19,7 +19,7 @@ module Airbrake
19
19
  ActionDispatch::DebugExceptions,
20
20
  Airbrake::Rack::Middleware
21
21
  )
22
- elsif defined?(::ActiveRecord)
22
+ elsif defined?(::ActiveRecord::ConnectionAdapters::ConnectionManagement)
23
23
  # Insert after ConnectionManagement to avoid DB connection leakage:
24
24
  # https://github.com/airbrake/airbrake/pull/568
25
25
  app.config.middleware.insert_after(
@@ -3,9 +3,7 @@ require 'airbrake-ruby'
3
3
  namespace :airbrake do
4
4
  desc 'Verify your gem installation by sending a test exception'
5
5
  task test: (:environment if defined?(Rails)) do
6
- unless Airbrake.configured?
7
- raise Airbrake::Error, 'airbrake-ruby is not configured'
8
- end
6
+ raise Airbrake::Error, 'airbrake-ruby is not configured' unless Airbrake.configured?
9
7
 
10
8
  require 'pp'
11
9
 
@@ -50,9 +48,7 @@ namespace :airbrake do
50
48
  end
51
49
  end
52
50
 
53
- unless Airbrake.configured?
54
- raise Airbrake::Error, 'airbrake-ruby is not configured'
55
- end
51
+ raise Airbrake::Error, 'airbrake-ruby is not configured' unless Airbrake.configured?
56
52
 
57
53
  deploy_params = {
58
54
  environment: ENV['ENVIRONMENT'],
@@ -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 = '7.1.0'.freeze
5
+ AIRBRAKE_VERSION = '7.1.1'.freeze
6
6
  end
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  RSpec.describe "Rake integration" do
4
- let(:endpoint) do
5
- 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
6
- end
4
+ let(:endpoint) { 'https://airbrake.io/api/v3/projects/113743/notices' }
7
5
 
8
6
  def wait_for_a_request_with_body(body)
9
7
  wait_for(a_request(:post, endpoint).with(body: body)).to have_been_made.once
@@ -3,9 +3,7 @@ RSpec.shared_examples 'rack examples' do
3
3
 
4
4
  after { Warden.test_reset! }
5
5
 
6
- let(:endpoint) do
7
- 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
8
- end
6
+ let(:endpoint) { 'https://airbrake.io/api/v3/projects/113743/notices' }
9
7
 
10
8
  def wait_for_a_request_with_body(body)
11
9
  wait_for(a_request(:post, endpoint).with(body: body)).to have_been_made.once
@@ -20,13 +20,8 @@ RSpec.describe "Sinatra integration specs" do
20
20
  end
21
21
 
22
22
  context "when multiple apps are mounted" do
23
- let(:endpoint1) do
24
- 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
25
- end
26
-
27
- let(:endpoint2) do
28
- 'https://airbrake.io/api/v3/projects/99123/notices?key=ad04e13d806a90f96614ad8e529b2821'
29
- end
23
+ let(:endpoint1) { 'https://airbrake.io/api/v3/projects/113743/notices' }
24
+ let(:endpoint2) { 'https://airbrake.io/api/v3/projects/99123/notices' }
30
25
 
31
26
  def env_for(url, opts = {})
32
27
  Rack::MockRequest.env_for(url, opts)
@@ -3,10 +3,7 @@ require 'spec_helper'
3
3
  RSpec.describe Airbrake::AirbrakeLogger do
4
4
  let(:project_id) { 113743 }
5
5
  let(:project_key) { 'fd04e13d806a90f96614ad8e529b2822' }
6
-
7
- let(:endpoint) do
8
- "https://airbrake.io/api/v3/projects/#{project_id}/notices?key=#{project_key}"
9
- end
6
+ let(:endpoint) { "https://airbrake.io/api/v3/projects/#{project_id}/notices" }
10
7
 
11
8
  let(:airbrake) do
12
9
  Airbrake::Notifier.new(project_id: project_id, project_key: project_key)
@@ -1,18 +1,9 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  RSpec.describe Airbrake::Rack::Middleware do
4
- let(:app) do
5
- proc { |env| [200, env, 'Bingo bango content'] }
6
- end
7
-
8
- let(:faulty_app) do
9
- proc { raise AirbrakeTestError }
10
- end
11
-
12
- let(:endpoint) do
13
- 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
14
- end
15
-
4
+ let(:app) { proc { |env| [200, env, 'Bingo bango content'] } }
5
+ let(:faulty_app) { proc { raise AirbrakeTestError } }
6
+ let(:endpoint) { 'https://airbrake.io/api/v3/projects/113743/notices' }
16
7
  let(:middleware) { described_class.new(app) }
17
8
 
18
9
  def env_for(url, opts = {})
@@ -39,14 +30,8 @@ RSpec.describe Airbrake::Rack::Middleware do
39
30
  context "when app raises an exception" do
40
31
  context "and when the notifier name is specified" do
41
32
  let(:notifier_name) { :rack_middleware_initialize }
42
-
43
- let(:bingo_endpoint) do
44
- 'https://airbrake.io/api/v3/projects/92123/notices?key=ad04e13d806a90f96614ad8e529b2821'
45
- end
46
-
47
- let(:expected_body) do
48
- /"errors":\[{"type":"AirbrakeTestError"/
49
- end
33
+ let(:bingo_endpoint) { 'https://airbrake.io/api/v3/projects/92123/notices' }
34
+ let(:expected_body) { /"errors":\[{"type":"AirbrakeTestError"/ }
50
35
 
51
36
  before do
52
37
  Airbrake.configure(notifier_name) do |c|
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  RSpec.describe Airbrake::Rack::User do
4
- let(:endpoint) do
5
- 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
6
- end
4
+ let(:endpoint) { 'https://airbrake.io/api/v3/projects/113743/notices' }
7
5
 
8
6
  let(:user) do
9
7
  OpenStruct.new(
@@ -37,9 +37,7 @@ RSpec.describe "airbrake/rake/tasks" do
37
37
  end
38
38
 
39
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
40
+ let(:deploy_endpoint) { 'https://airbrake.io/api/v3/projects/113743/notices' }
43
41
 
44
42
  before do
45
43
  stub_request(:post, deploy_endpoint)
@@ -14,9 +14,7 @@ RSpec.describe Airbrake::Shoryuken::ErrorHandler do
14
14
  end.new
15
15
  end
16
16
 
17
- let(:endpoint) do
18
- 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
19
- end
17
+ let(:endpoint) { 'https://airbrake.io/api/v3/projects/113743/notices' }
20
18
 
21
19
  def wait_for_a_request_with_body(body)
22
20
  wait_for(a_request(:post, endpoint).with(body: body)).to have_been_made.once
@@ -6,9 +6,7 @@ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.2.2')
6
6
  require 'airbrake/sidekiq'
7
7
 
8
8
  RSpec.describe "airbrake/sidekiq/error_handler" do
9
- let(:endpoint) do
10
- 'https://airbrake.io/api/v3/projects/113743/notices?key=fd04e13d806a90f96614ad8e529b2822'
11
- end
9
+ let(:endpoint) { 'https://airbrake.io/api/v3/projects/113743/notices' }
12
10
 
13
11
  def wait_for_a_request_with_body(body)
14
12
  wait_for(a_request(:post, endpoint).with(body: body)).to have_been_made.once
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: 7.1.0
4
+ version: 7.1.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-10-20 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby
@@ -140,16 +140,30 @@ dependencies:
140
140
  name: rack-test
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: 0.6.3
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: 0.6.3
153
+ - !ruby/object:Gem::Dependency
154
+ name: redis
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '='
158
+ - !ruby/object:Gem::Version
159
+ version: 3.3.3
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '='
165
+ - !ruby/object:Gem::Version
166
+ version: 3.3.3
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: public_suffix
155
169
  requirement: !ruby/object:Gem::Requirement