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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 468e348697a972a35ec849945767df8b9f41f46a
4
- data.tar.gz: 3e419d4cf9bb00c0ecfb64aa5bac605d2d8ecb82
3
+ metadata.gz: 96c76e788dda3944e4a14360e4e48ba6864938f1
4
+ data.tar.gz: 6c5f94654244971e4c44fa5db2754f09f7b2101a
5
5
  SHA512:
6
- metadata.gz: 0debe52953f21f4af23a04895eaaffb9f48a1eb5aa04a32ec58a26a542799cb3411e15f2f8e54d0514f58b861eba889f3d4e013ff28405c1b2144c73a036d815
7
- data.tar.gz: c552c5522d8d53e66f17322da98650ffb3e155dca191161fbeae2efecce9052092e1ca9808f7798f30593f7750984d9f6d2ec179d89ed8b47318f2ce1a003e6a
6
+ metadata.gz: 04a7f0ef3467e490d6d9ec2d53b0077cc40e5221196d69d7b5b8de6e621db0a192e88d60a59d28b8d336cf48110d03c3d5142c945e083a95e9a35daa526ed894
7
+ data.tar.gz: f4162f400ada8aaf99203c4b973983010ea26c41591f9a7b7e55a6aac784ee6753207a0d875db27cf2a5215d4122133a7863825c0abad15e62649e8a8ba4398e
@@ -74,7 +74,7 @@ module Airbrake
74
74
  exception[:params].merge!(params)
75
75
  exception
76
76
  else
77
- Notice.new(@config, convert_to_exception(exception), params)
77
+ Notice.new(@config, convert_to_exception(exception), params.dup)
78
78
  end
79
79
  end
80
80
 
@@ -4,5 +4,5 @@
4
4
  module Airbrake
5
5
  ##
6
6
  # @return [String] the library version
7
- AIRBRAKE_RUBY_VERSION = '2.2.6'.freeze
7
+ AIRBRAKE_RUBY_VERSION = '2.2.7'.freeze
8
8
  end
@@ -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.6
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-15 00:00:00.000000000 Z
11
+ date: 2017-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec