txcatcher 0.1.81 → 0.1.82

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: ba0724551c4f8d3836b485648d54acec7a3bf905
4
- data.tar.gz: 82463f8a241aa6d7951361505097e68ac76f61e1
3
+ metadata.gz: 7518a090998953f9b02635bee16b9ac739a1c4ac
4
+ data.tar.gz: c08a48ffa8b4e0e2cdf2c4453afb36de9fa7021b
5
5
  SHA512:
6
- metadata.gz: 9fa929c94695686489893d7eb253e898376edae269b5ce5f7704114601521ea6ede702e6ad0ed917d8642584964a0c1aec82861ffe93b6c51203782e31beec57
7
- data.tar.gz: b9b83ceff2b9853784a8096e927b05ec03edad363802f483173db2b6926e5fa7ccb7501e646924a0cab41b0a3e60d403618c80dc36c0f245f88381f5a08b0d3c
6
+ metadata.gz: 5c1e95aad5c87d63714184a95a52beb87718f4272c86eb513ce827651e76b428d044358a729405047f6ffab4a44f4f4193feea922cb760bc11889018ea62d2ea
7
+ data.tar.gz: eb99b5cdffafc0509c322997d1bd259a5aaf79e32f31cc81a07b77920ea868fe3c0993d788b448f4b6d82c11fe4ef0b10e9f9167517c8826f7dab66bfa7546cf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.81
1
+ 0.1.82
@@ -154,9 +154,8 @@ module TxCatcher
154
154
 
155
155
  def initialize_sentry
156
156
  Raven.configure do |config|
157
- config.dsn = Config["sentry"]["dsn"]
158
- config.environments = ["production"]
159
- end if Config["sentry"] && Config["sentry"]["dsn"]
157
+ config.dsn = Config["sentry_dsn"]
158
+ end if Config["sentry_dsn"]
160
159
  end
161
160
 
162
161
  end
@@ -40,6 +40,8 @@ module TxCatcher
40
40
  end
41
41
 
42
42
  def report_to_sentry(e, log_level, data: nil, timestamp: timestamp)
43
+ data ||= {}
44
+ data.merge(environment: Config["environment"], host: Config["host"])
43
45
  e.kind_of?(Exception) ? Raven.capture_exception(e, extra: data) : Raven.capture_message(e, extra: data)
44
46
  end
45
47
 
data/txcatcher.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: txcatcher 0.1.81 ruby lib
5
+ # stub: txcatcher 0.1.82 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "txcatcher"
9
- s.version = "0.1.81"
9
+ s.version = "0.1.82"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txcatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.81
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko