airbrake-ruby 1.4.2 → 1.4.3
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/config.rb +1 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/config_spec.rb +24 -0
- 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: d0d04742504f2fcec6d259b278ccfde98a0e4700
|
4
|
+
data.tar.gz: 91e64261180aeebabeee260abf3f3648498f59fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c0ccf7ede21cefa29a78849b061070a8d569a6c4e866c51e758b9c2dce17dbebf61c80620410c9387e6357d3618a345294aa6447911676a8649cef46b60d45c
|
7
|
+
data.tar.gz: 9d21bec112c70fd8e38b3c03008488a211a46488c93969fa6ab35534ffadf67c99c298f610eccef61478cbf8eef07e2642d1eba148d4f8e3da3dd3af631aeb8c
|
data/lib/airbrake-ruby/config.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -188,5 +188,29 @@ RSpec.describe Airbrake::Config do
|
|
188
188
|
end
|
189
189
|
end
|
190
190
|
end
|
191
|
+
|
192
|
+
describe "environment value types" do
|
193
|
+
context "when 'environment' is a String" do
|
194
|
+
context "and when 'ignore_environments' contains Symbols" do
|
195
|
+
it "returns true" do
|
196
|
+
config.environment = 'bango'
|
197
|
+
config.ignore_environments = [:bango]
|
198
|
+
|
199
|
+
expect(config.ignored_environment?).to be_truthy
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
context "when 'environment' is a Symbol" do
|
205
|
+
context "and when 'ignore_environments' contains Strings" do
|
206
|
+
it "returns true" do
|
207
|
+
config.environment = :bango
|
208
|
+
config.ignore_environments = %w(bango)
|
209
|
+
|
210
|
+
expect(config.ignored_environment?).to be_truthy
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
191
215
|
end
|
192
216
|
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: 1.4.
|
4
|
+
version: 1.4.3
|
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: 2016-06-
|
11
|
+
date: 2016-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|