airbrake 7.0.2 → 7.0.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: 99707ff742bc0ecac88e0992740782eddc09a2bc
4
- data.tar.gz: c952a5e20fb0bd1b1abd5e2544610bee936aa71a
3
+ metadata.gz: 23d8c2f2c29cdf750625c83e8374a91196256598
4
+ data.tar.gz: 95169b51269222317b8b1f6ca2e3899fbd1bdda9
5
5
  SHA512:
6
- metadata.gz: a24474e108a07418b5b4643ab843bda77620cb9ecbc96778381f63d0723f06f1b092dfbb76e749e28924a970402bd7b5a7ab1674e33b45b87f62b403b95a4e00
7
- data.tar.gz: a5f37d85fedf35ff96d0482ea4ef5101b7244320c69e15dabcd89118dfd08f469ba25ead47b07736f858ec03444a9a8d3f33dac28766d00fe4d056b449b2de7a
6
+ metadata.gz: 1398aa9d54e208260b81cd066ba2d00b2c03029d804d07bec5219bd5ed6f46ee9e064792c879250ff47267f8227209ccf8007152a8eb133f91442425496014a9
7
+ data.tar.gz: be54e3e8649efddde4d6f87c8fbe17978aaac0fe82ed9860dcacefda064088ddd801e8ca48dc4122451743588a937b1704c8d358da6acced144e24db39362946
@@ -68,7 +68,15 @@ module Airbrake
68
68
  notice = @notifier.build_notice(exception)
69
69
  return unless notice
70
70
 
71
- notice.stash[:rack_request] = ::Rack::Request.new(env)
71
+ # ActionDispatch::Request correctly captures server port when using SSL:
72
+ # See: https://github.com/airbrake/airbrake/issues/802
73
+ notice.stash[:rack_request] =
74
+ if defined?(ActionDispatch::Request)
75
+ ActionDispatch::Request.new(env)
76
+ else
77
+ ::Rack::Request.new(env)
78
+ end
79
+
72
80
  @notifier.notify(notice)
73
81
  end
74
82
 
@@ -2,5 +2,5 @@
2
2
  # We use Semantic Versioning v2.0.0
3
3
  # More information: http://semver.org/
4
4
  module Airbrake
5
- AIRBRAKE_VERSION = '7.0.2'.freeze
5
+ AIRBRAKE_VERSION = '7.0.3'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.2
4
+ version: 7.0.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: 2017-09-29 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby