sentry-raven 2.7.3 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 400e642f148227a40dcf81d00af5513e2787b35c
4
- data.tar.gz: a4c90987e4d11f40234ada594208b109dccf4681
3
+ metadata.gz: 39f754caa8c8dc1d3adf0a5ef6fc1691817c4902
4
+ data.tar.gz: 1367510ab3abaed41237210d7810626d7bf87fb5
5
5
  SHA512:
6
- metadata.gz: 71ed2517a4a5a34397125108bbbac441a2b9aa2610684f70a2578e64a56775755373eef4369194605747a1498da3936e27fbbb4e3e78961edd102fec970bdbcb
7
- data.tar.gz: 3c33543e522a1f06f00967175c104fe515c71b60ce62994647e1d65c4d6fefcca56cabeb940450d08ca41c3384d48d0260fab1db378c260b438eae52b43258dd
6
+ metadata.gz: 2deb6a18853cd32279e3a4c02a202cf661cb45062700d1efff75284ae7f31955426f774f91d461b9e4e74f13847fb092bf09957abab57cb79a2817e4949be3a3
7
+ data.tar.gz: 9cc99e456d2485bcd80e92f3d7b4c9f40429d96872d904dcec006804ee4e31b20325366ba263f14872b8b96b4a8e9aaa1f7c1fc53485b96e0a952c9955d28e3e
@@ -7,11 +7,11 @@ AllCops:
7
7
  - 'vendor/**/*'
8
8
 
9
9
  Metrics/ClassLength:
10
- Max: 268
10
+ Max: 269
11
11
  CountComments: false
12
12
 
13
13
  Metrics/AbcSize:
14
- Max: 30
14
+ Max: 40
15
15
 
16
16
  Metrics/CyclomaticComplexity:
17
17
  Max: 12
@@ -37,9 +37,9 @@ matrix:
37
37
  env: RAILS_VERSION=4
38
38
  - rvm: jruby-1.7.27
39
39
  env: JRUBY_OPTS="--dev" RAILS_VERSION=4
40
- - rvm: jruby-9.1.15.0
40
+ - rvm: jruby-9.1.17.0
41
41
  env: JRUBY_OPTS="--dev -J-Djruby.launch.inproc=true -J-Xmx1024M" RAILS_VERSION=4
42
- - rvm: jruby-9.1.15.0
42
+ - rvm: jruby-9.1.17.0
43
43
  env: JRUBY_OPTS="--dev -J-Djruby.launch.inproc=true -J-Xmx1024M" RAILS_VERSION=5
44
44
  - rvm: ruby-head
45
45
  env: RAILS_VERSION=0
data/Rakefile CHANGED
@@ -14,6 +14,7 @@ begin
14
14
  require 'rubocop/rake_task'
15
15
  RuboCop::RakeTask.new(:rubocop) do |task|
16
16
  task.patterns = ['lib/**/*.rb','spec/**/*.rb',]
17
+ task.options << '--display-cop-names'
17
18
  end
18
19
 
19
20
  RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -1,3 +1,10 @@
1
+ 2.7.4
2
+ -----
3
+
4
+ * BUGFIX: Correctly handle public only DSNs [@mitsuhiko, #847]
5
+ * BUGFIX: context attributes with nil raised error [@joker-777, 824]
6
+ * BUGFIX: Suppress warning about enabling dyno metadata in Heroku CI [@meganemura, #833]
7
+
1
8
  2.7.3
2
9
  -----
3
10
 
@@ -197,7 +197,7 @@ Optional settings
197
197
 
198
198
  .. describe:: should_capture
199
199
 
200
- By providing a proc or lambda, you can control what events are captured. Events are passed to the Proc or lambda you provide - returning false will stop the event from sending to Sentry:
200
+ By providing a proc or lambda, you can control what events are captured. A String (if you've captured a message) or the Exception (if you've captured an exception) will be passed to the Proc or lambda you provide - returning false will stop the event from sending to Sentry:
201
201
 
202
202
  .. code-block:: ruby
203
203
 
@@ -81,9 +81,9 @@ module Raven
81
81
  'sentry_version' => PROTOCOL_VERSION,
82
82
  'sentry_client' => USER_AGENT,
83
83
  'sentry_timestamp' => now,
84
- 'sentry_key' => configuration.public_key,
85
- 'sentry_secret' => configuration.secret_key
84
+ 'sentry_key' => configuration.public_key
86
85
  }
86
+ fields['sentry_secret'] = configuration.secret_key unless configuration.secret_key.nil?
87
87
  'Sentry ' + fields.map { |key, value| "#{key}=#{value}" }.join(', ')
88
88
  end
89
89
 
@@ -116,6 +116,8 @@ module Raven
116
116
 
117
117
  # Secret key for authentication with the Sentry server
118
118
  # If you provide a DSN, this will be set automatically.
119
+ #
120
+ # This is deprecated and not necessary for newer Sentry installations any more.
119
121
  attr_accessor :secret_key
120
122
 
121
123
  # Include module versions in reports - boolean.
@@ -223,7 +225,7 @@ module Raven
223
225
  # DSN-style string
224
226
  self.project_id = uri_path.pop
225
227
  self.public_key = uri.user
226
- self.secret_key = uri.password
228
+ self.secret_key = !(uri.password.nil? || uri.password.empty?) ? uri.password : nil
227
229
  end
228
230
 
229
231
  self.scheme = uri.scheme
@@ -349,6 +351,7 @@ module Raven
349
351
 
350
352
  def detect_release_from_heroku
351
353
  return unless running_on_heroku?
354
+ return if ENV['CI']
352
355
  logger.warn(heroku_dyno_metadata_message) && return unless ENV['HEROKU_SLUG_COMMIT']
353
356
 
354
357
  ENV['HEROKU_SLUG_COMMIT']
@@ -391,9 +394,9 @@ module Raven
391
394
  end
392
395
 
393
396
  def valid?
394
- return true if %w(server host path public_key secret_key project_id).all? { |k| public_send(k) }
397
+ return true if %w(server host path public_key project_id).all? { |k| public_send(k) }
395
398
  if server
396
- %w(server host path public_key secret_key project_id).map do |key|
399
+ %w(server host path public_key project_id).map do |key|
397
400
  @errors << "No #{key} specified" unless public_send(key)
398
401
  end
399
402
  else
@@ -39,7 +39,7 @@ module Raven
39
39
 
40
40
  # Allow attributes to be set on the event at initialization
41
41
  yield self if block_given?
42
- init.each_pair { |key, val| public_send("#{key}=", val) }
42
+ init.each_pair { |key, val| public_send("#{key}=", val) unless val.nil? }
43
43
 
44
44
  set_core_attributes_from_configuration
45
45
  set_core_attributes_from_context
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Raven
3
3
  # Freezing this constant breaks in 1.9.x
4
- VERSION = "2.7.3" # rubocop:disable Style/MutableConstant
4
+ VERSION = "2.7.4" # rubocop:disable Style/MutableConstant
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-raven
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.3
4
+ version: 2.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-26 00:00:00.000000000 Z
11
+ date: 2018-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.5.1
139
+ rubygems_version: 2.6.14
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: A gem that provides a client interface for the Sentry error logger