airbrake-ruby 1.2.1 → 1.2.2

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: b7716e52d93ca7e57f821c1fc974b4a012f328b8
4
- data.tar.gz: 3bbfdac1597a0f1be8988fed7cde5c49eb21cfec
3
+ metadata.gz: ca403eaf9b4aeb5fb5ca045087642ad1401e738c
4
+ data.tar.gz: 34696a178cd229b8af3c2c9a5f99bef94e2b72d5
5
5
  SHA512:
6
- metadata.gz: 7f2c0eef721cd93d930efd0c4519fdea6fbc0937b7098c993a6be89bfa47823b83cd45fae874efed41e62096bead2535976648162dbfc8d3d1ff97a433fbfa7e
7
- data.tar.gz: f9c05453a930f43c0a1b6f924e4ed8c6d184813851f1e19f9205ee842265b00323f35f3e669abbbcbc9ee4bbd4f8107ce021ebe438e0a1fdf82366cb03920eda
6
+ metadata.gz: 2e52ed3bda29d983c09d8998a084f5c3a1c937f37872e624bc4769936552bad215394ced32cbf6d04ff5083c882db3fd5b5b6dc5c7601ecae29f4371830dc4fd
7
+ data.tar.gz: 90dc365fc8000e40192a959aeea5bec8693451c75e79925640b62186d78bebd92467887983f5b6ca70ba05b4e465222552ba36e788c4e6fc0623ee9e12ab3bf0
@@ -102,6 +102,7 @@ module Airbrake
102
102
  end
103
103
 
104
104
  if exception.is_a?(Airbrake::Notice)
105
+ exception[:params].merge!(params)
105
106
  exception
106
107
  else
107
108
  Notice.new(@config, convert_to_exception(exception), params)
@@ -3,5 +3,5 @@
3
3
  module Airbrake
4
4
  ##
5
5
  # @return [String] the library version
6
- AIRBRAKE_RUBY_VERSION = '1.2.1'.freeze
6
+ AIRBRAKE_RUBY_VERSION = '1.2.2'.freeze
7
7
  end
@@ -81,6 +81,13 @@ RSpec.describe Airbrake::Notifier do
81
81
  with(body: expected_body)
82
82
  ).to have_been_made.once
83
83
  end
84
+
85
+ it "appends provided params to the notice" do
86
+ notice = @airbrake.build_notice(ex)
87
+ @airbrake.notify_sync(notice, bingo: 'bango')
88
+
89
+ expect_a_request_with_body(/"params":{.*"bingo":"bango".*}/)
90
+ end
84
91
  end
85
92
  end
86
93
 
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.2.1
4
+ version: 1.2.2
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-03-21 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec