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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26dd376dd3646e94ceb28cd59f49e3f5edd67321
4
- data.tar.gz: 413ac77fb12f382bac026959ebc502ed0246eab1
3
+ metadata.gz: d0d04742504f2fcec6d259b278ccfde98a0e4700
4
+ data.tar.gz: 91e64261180aeebabeee260abf3f3648498f59fa
5
5
  SHA512:
6
- metadata.gz: e49ee6c9772cd21dfa62c6441218f122cfe382e27bb60200506e2a816c5c981b181815013276aa8a8933d2a204e1560e5f3a8d71300fa6fc9c9fb0d2c2ecf44b
7
- data.tar.gz: 753a7a36e840edc99a555950722bb7c7eae06efb61f2f297a563f077ca8150fd474db45c6acfe5ee0df37644283d3e566b29ef87f27bf8df3caf7124873ec8d9
6
+ metadata.gz: 0c0ccf7ede21cefa29a78849b061070a8d569a6c4e866c51e758b9c2dce17dbebf61c80620410c9387e6357d3618a345294aa6447911676a8649cef46b60d45c
7
+ data.tar.gz: 9d21bec112c70fd8e38b3c03008488a211a46488c93969fa6ab35534ffadf67c99c298f610eccef61478cbf8eef07e2642d1eba148d4f8e3da3dd3af631aeb8c
@@ -143,7 +143,7 @@ module Airbrake
143
143
  "'ignore_environments' has no effect")
144
144
  end
145
145
 
146
- ignore_environments.include?(environment)
146
+ ignore_environments.map(&:to_s).include?(environment.to_s)
147
147
  end
148
148
 
149
149
  private
@@ -3,5 +3,5 @@
3
3
  module Airbrake
4
4
  ##
5
5
  # @return [String] the library version
6
- AIRBRAKE_RUBY_VERSION = '1.4.2'.freeze
6
+ AIRBRAKE_RUBY_VERSION = '1.4.3'.freeze
7
7
  end
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.2
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-08 00:00:00.000000000 Z
11
+ date: 2016-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec