sentry-raven 2.9.0 → 2.10.0

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: 32a99e5dd16326a16bdb037f3773713c67b94435
4
- data.tar.gz: b54fdea58fbc249a01220ee8d16b29122fb9c36b
3
+ metadata.gz: 927d7ac628cc179de5612c00f675581ad51dbb2f
4
+ data.tar.gz: 756bca786c1281cb206ad0858e4f35b9b781de7f
5
5
  SHA512:
6
- metadata.gz: 55835591bde885dead10c56f4f8bd311becd2da910b761be9056a4d9f4519356ad6602e6a36f55891176f3e733ac359ab74c893908c97e81d0706fbb04d51bdc
7
- data.tar.gz: a1e7af3943cf1fa7e8bf779ad348378439d82b548a729ac765110f8e90c558623c038082cd5e211540fa05cbaf153723d2351c355f0dbd4d92817650783f4aec
6
+ metadata.gz: 31b1ef203a383a54d906c1ef51f916cef59481237d521868ca14b27870caa2f84ad2ceccb542f56ecb3f8cf4db9ed284851a8b12e16e417f49d2fea48e7f6116
7
+ data.tar.gz: d4e4e2522209f80c35f8a7f7a68515d324ffb41d9341afcaf34cb3f45512cce4c52064336d39c45f0dba85cc961ac38ae1ce03fc413a1320cbd3897815874f70
data/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
  [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=sentry-raven&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=sentry-raven&package-manager=bundler&version-scheme=semver)
14
14
 
15
15
 
16
- [Documentation](https://docs.getsentry.com/hosted/clients/ruby/) | [Bug Tracker](https://github.com/getsentry/raven-ruby/issues) | [Forum](https://forum.sentry.io/) | IRC: irc.freenode.net, #sentry
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
 
@@ -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 when before sending an event to Sentry. Receives `event` and `hint` as parameter. `hint` is a has {:exception => ex | nil, :message => message | nil}. [@hazat, #847]
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
  -----
@@ -1,7 +1,7 @@
1
1
  require 'uri'
2
2
 
3
3
  module Raven
4
- class Configuration # rubocop:disable Metrics/ClassLength
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
- detect_release_from_git ||
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
@@ -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.9.0" # rubocop:disable Style/MutableConstant
4
+ VERSION = "2.10.0" # rubocop:disable Style/MutableConstant
5
5
  end
@@ -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 = "getsentry@googlegroups.com"
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.9.0
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-01-22 00:00:00.000000000 Z
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: getsentry@googlegroups.com
34
+ email: accounts@sentry.io
35
35
  executables:
36
36
  - raven
37
37
  extensions: []