airbrake-ruby 2.2.6 → 2.2.7
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/notifier.rb +1 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/notifier_spec.rb +7 -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: 96c76e788dda3944e4a14360e4e48ba6864938f1
|
4
|
+
data.tar.gz: 6c5f94654244971e4c44fa5db2754f09f7b2101a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04a7f0ef3467e490d6d9ec2d53b0077cc40e5221196d69d7b5b8de6e621db0a192e88d60a59d28b8d336cf48110d03c3d5142c945e083a95e9a35daa526ed894
|
7
|
+
data.tar.gz: f4162f400ada8aaf99203c4b973983010ea26c41591f9a7b7e55a6aac784ee6753207a0d875db27cf2a5215d4122133a7863825c0abad15e62649e8a8ba4398e
|
data/spec/notifier_spec.rb
CHANGED
@@ -522,6 +522,13 @@ RSpec.describe Airbrake::Notifier do
|
|
522
522
|
end
|
523
523
|
|
524
524
|
context "given a non-exception with calculated internal frames only" do
|
525
|
+
it "prevents mutation of passed-in params hash" do
|
526
|
+
params = { only_this_item: true }
|
527
|
+
notice = @airbrake.build_notice(RuntimeError.new('bingo'), params)
|
528
|
+
notice[:params][:extra_item] = :not_in_original_params
|
529
|
+
expect(params).to eq(only_this_item: true)
|
530
|
+
end
|
531
|
+
|
525
532
|
it "returns the internal frames nevertheless" do
|
526
533
|
backtrace = [
|
527
534
|
"/airbrake-ruby/lib/airbrake-ruby/notifier.rb:84:in `build_notice'",
|
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: 2.2.
|
4
|
+
version: 2.2.7
|
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-06-
|
11
|
+
date: 2017-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|