sentry-raven 2.9.0 → 2.10.0
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/README.md +1 -1
- data/changelog.md +8 -1
- data/lib/raven/configuration.rb +8 -3
- data/lib/raven/version.rb +1 -1
- data/sentry-raven.gemspec +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: 927d7ac628cc179de5612c00f675581ad51dbb2f
|
|
4
|
+
data.tar.gz: 756bca786c1281cb206ad0858e4f35b9b781de7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31b1ef203a383a54d906c1ef51f916cef59481237d521868ca14b27870caa2f84ad2ceccb542f56ecb3f8cf4db9ed284851a8b12e16e417f49d2fea48e7f6116
|
|
7
|
+
data.tar.gz: d4e4e2522209f80c35f8a7f7a68515d324ffb41d9341afcaf34cb3f45512cce4c52064336d39c45f0dba85cc961ac38ae1ce03fc413a1320cbd3897815874f70
|
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[](https://dependabot.com/compatibility-score.html?dependency-name=sentry-raven&package-manager=bundler&version-scheme=semver)
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
[Documentation](https://docs.
|
|
16
|
+
[Documentation](https://docs.sentry.io/clients/ruby/) | [Bug Tracker](https://github.com/getsentry/raven-ruby/issues) | [Forum](https://forum.sentry.io/) | IRC: irc.freenode.net, #sentry
|
|
17
17
|
|
|
18
18
|
The official Ruby-language client and integration layer for the [Sentry](https://github.com/getsentry/sentry) error reporting API.
|
|
19
19
|
|
data/changelog.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
2.10.0
|
|
2
|
+
-----
|
|
3
|
+
|
|
4
|
+
* FEATURE: Added support for `SENTRY_ENVIRONMENT` [@mtsmfm, #910]
|
|
5
|
+
* FEATURE: Added support for `SENTRY_RELEASE` [@coorasse, #911]
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
2.9.0
|
|
2
9
|
-----
|
|
3
10
|
|
|
@@ -7,7 +14,7 @@
|
|
|
7
14
|
2.8.0
|
|
8
15
|
-----
|
|
9
16
|
|
|
10
|
-
* FEATURE: Added `config.before_send`. Provide a lambda or proc to this config setting, which will be `call`ed
|
|
17
|
+
* FEATURE: Added `config.before_send`. Provide a lambda or proc to this config setting, which will be `call`ed before sending an event to Sentry. Receives `event` and `hint` as parameters. `hint` is a hash `{:exception => ex | nil, :message => message | nil}`. [@hazat, #882]
|
|
11
18
|
|
|
12
19
|
2.7.4
|
|
13
20
|
-----
|
data/lib/raven/configuration.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require 'uri'
|
|
2
2
|
|
|
3
3
|
module Raven
|
|
4
|
-
class Configuration
|
|
4
|
+
class Configuration
|
|
5
5
|
# Directories to be recognized as part of your app. e.g. if you
|
|
6
6
|
# have an `engines` dir at the root of your project, you may want
|
|
7
7
|
# to set this to something like /(app|config|engines|lib)/
|
|
@@ -347,7 +347,8 @@ module Raven
|
|
|
347
347
|
end
|
|
348
348
|
|
|
349
349
|
def detect_release
|
|
350
|
-
|
|
350
|
+
detect_release_from_env ||
|
|
351
|
+
detect_release_from_git ||
|
|
351
352
|
detect_release_from_capistrano ||
|
|
352
353
|
detect_release_from_heroku
|
|
353
354
|
rescue => ex
|
|
@@ -411,6 +412,10 @@ module Raven
|
|
|
411
412
|
Raven.sys_command("git rev-parse --short HEAD") if File.directory?(".git")
|
|
412
413
|
end
|
|
413
414
|
|
|
415
|
+
def detect_release_from_env
|
|
416
|
+
ENV['SENTRY_RELEASE']
|
|
417
|
+
end
|
|
418
|
+
|
|
414
419
|
def capture_in_current_environment?
|
|
415
420
|
return true unless environments.any? && !environments.include?(current_environment)
|
|
416
421
|
@errors << "Not configured to send/capture in environment '#{current_environment}'"
|
|
@@ -453,7 +458,7 @@ module Raven
|
|
|
453
458
|
end
|
|
454
459
|
|
|
455
460
|
def current_environment_from_env
|
|
456
|
-
ENV['SENTRY_CURRENT_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'default'
|
|
461
|
+
ENV['SENTRY_CURRENT_ENV'] || ENV['SENTRY_ENVIRONMENT'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'default'
|
|
457
462
|
end
|
|
458
463
|
|
|
459
464
|
def server_name_from_env
|
data/lib/raven/version.rb
CHANGED
data/sentry-raven.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ Gem::Specification.new do |gem|
|
|
|
5
5
|
gem.name = "sentry-raven"
|
|
6
6
|
gem.authors = ["Sentry Team"]
|
|
7
7
|
gem.description = gem.summary = "A gem that provides a client interface for the Sentry error logger"
|
|
8
|
-
gem.email = "
|
|
8
|
+
gem.email = "accounts@sentry.io"
|
|
9
9
|
gem.license = 'Apache-2.0'
|
|
10
10
|
gem.homepage = "https://github.com/getsentry/raven-ruby"
|
|
11
11
|
|
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.
|
|
4
|
+
version: 2.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -31,7 +31,7 @@ dependencies:
|
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: '1.0'
|
|
33
33
|
description: A gem that provides a client interface for the Sentry error logger
|
|
34
|
-
email:
|
|
34
|
+
email: accounts@sentry.io
|
|
35
35
|
executables:
|
|
36
36
|
- raven
|
|
37
37
|
extensions: []
|