airbrake-ruby 4.2.0 → 4.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: da152828a1f9be5664faef3a2bce8cb09755ea4f
4
- data.tar.gz: 3db1f8a4dc6f496c1067d7d0e295054ee6c8fce2
3
+ metadata.gz: b4afc2ce123b0443711d5000b9a4915756155688
4
+ data.tar.gz: 1f0973aa904e653d9e84912c5be4a3b6f69e9670
5
5
  SHA512:
6
- metadata.gz: cbf759c4bfb802574e23176ae0629b46bc4c7ddf73221477aa3e5b4af6dae02b4ca7d4b7e76984486e3b5b8f4d0a1d997bbf32c46d8076054555c83851160cfa
7
- data.tar.gz: 3055d714f7d8263efd11e9de8748c04bb84031382fb1e377eef2333c2712636b48d774186a5f0b6d092de9d1fa73d43446dbf06f5b41e4587acf94a7cb05a92a
6
+ metadata.gz: 0431f29c2a8f926d47c551439d9e000b429b8e0a6c815bc7fbdf01e4833ed4bf79d0d6e2aee2c516220be4cdd40e047b7bb5494e3cdb1b894980dbfae7a6a1bf
7
+ data.tar.gz: 5cd4dae34942ae97efa61210f35ab50cdd1e3c6f3d7a428598a627d9e77b457b466d68aa7a474f0f4198d31a45feee1d2e488b728c05e069f065f1044f0c3a7e
data/lib/airbrake-ruby.rb CHANGED
@@ -96,16 +96,9 @@ module Airbrake
96
96
  # @return [void]
97
97
  # @raise [Airbrake::Error] when trying to reconfigure already
98
98
  # existing notifier
99
- # @raise [Airbrake::Error] when either +project_id+ or +project_key+
100
- # is missing (or both)
101
99
  # @note There's no way to read config values outside of this library
102
100
  def configure
103
101
  yield config = Airbrake::Config.instance
104
-
105
- if (result = config.validate).rejected?
106
- raise Airbrake::Error, result.value['error']
107
- end
108
-
109
102
  Airbrake::Loggable.instance = config.logger
110
103
  end
111
104
 
@@ -2,5 +2,5 @@
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
4
  # @return [String] the library version
5
- AIRBRAKE_RUBY_VERSION = '4.2.0'.freeze
5
+ AIRBRAKE_RUBY_VERSION = '4.2.1'.freeze
6
6
  end
@@ -22,19 +22,5 @@ RSpec.describe Airbrake do
22
22
 
23
23
  expect(Airbrake::Loggable.instance).to eql(logger)
24
24
  end
25
-
26
- context "when user config doesn't contain a project id" do
27
- it "raises error" do
28
- expect { described_class.configure { |c| c.project_key = '1' } }
29
- .to raise_error(Airbrake::Error, ':project_id is required')
30
- end
31
- end
32
-
33
- context "when user config doesn't contain a project key" do
34
- it "raises error" do
35
- expect { described_class.configure { |c| c.project_id = 1 } }
36
- .to raise_error(Airbrake::Error, ':project_key is required')
37
- end
38
- end
39
25
  end
40
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.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: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbtree3