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 +4 -4
- data/.rubocop.yml +2 -2
- data/.travis.yml +2 -2
- data/Rakefile +1 -0
- data/changelog.md +7 -0
- data/docs/config.rst +1 -1
- data/lib/raven/client.rb +2 -2
- data/lib/raven/configuration.rb +6 -3
- data/lib/raven/event.rb +1 -1
- data/lib/raven/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f754caa8c8dc1d3adf0a5ef6fc1691817c4902
|
4
|
+
data.tar.gz: 1367510ab3abaed41237210d7810626d7bf87fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2deb6a18853cd32279e3a4c02a202cf661cb45062700d1efff75284ae7f31955426f774f91d461b9e4e74f13847fb092bf09957abab57cb79a2817e4949be3a3
|
7
|
+
data.tar.gz: 9cc99e456d2485bcd80e92f3d7b4c9f40429d96872d904dcec006804ee4e31b20325366ba263f14872b8b96b4a8e9aaa1f7c1fc53485b96e0a952c9955d28e3e
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -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.
|
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.
|
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
data/changelog.md
CHANGED
@@ -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
|
|
data/docs/config.rst
CHANGED
@@ -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.
|
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
|
|
data/lib/raven/client.rb
CHANGED
@@ -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
|
|
data/lib/raven/configuration.rb
CHANGED
@@ -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
|
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
|
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
|
data/lib/raven/event.rb
CHANGED
@@ -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
|
data/lib/raven/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|