airbrake-ruby 4.2.0-java → 4.2.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake-ruby.rb +0 -7
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/airbrake_spec.rb +0 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9e06910893059d6b1edc1e736226a565baf2e76
|
4
|
+
data.tar.gz: 1f0973aa904e653d9e84912c5be4a3b6f69e9670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ba2aca76ab70c744b6d026814a4e4ee69eb281e5048507a7e3dfdad77c4939e8817b43599ffcf11be3d594d1a7c2e310ee0bb5b5f3ede73e171c9bbc697f1f
|
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
|
|
data/spec/airbrake_spec.rb
CHANGED
@@ -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.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtree-jruby
|