sentry-ruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/{sentry.rb → sentry-ruby.rb} +0 -0
- data/lib/sentry/client.rb +2 -2
- data/lib/sentry/configuration.rb +3 -3
- data/lib/sentry/transport/configuration.rb +1 -8
- data/lib/sentry/version.rb +1 -1
- metadata +3 -4
- data/lib/sentry/ruby.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b16bf44cdc5e7689122b6727e08f680c7cfb98be5bebba286fdfc8a9e9f2cb81
|
4
|
+
data.tar.gz: 55a4793366f3e1a1dba8db0bec236d5c7bed5b2f1cb838244faaf629f4a1edb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99da84ece5e4ee5c459fa93284edfa2154c4bb0409278bb763ff98c2ceeddb57821f173c8fe3d1cf3a1cfa48d9d168e676f8cc666117604d7b367c5f8f352f4c
|
7
|
+
data.tar.gz: aed7ff1ecf47362e8f8be166cc173b0b5ef62dacd17dc21d7d10e6c8240193024b934d1b510cbb72ccd39837c24b79421b568577ad3e3921adbb4b050395a976
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
File without changes
|
data/lib/sentry/client.rb
CHANGED
@@ -51,10 +51,10 @@ module Sentry
|
|
51
51
|
Event.new(configuration: configuration, message: message)
|
52
52
|
end
|
53
53
|
|
54
|
-
def send_event(event
|
54
|
+
def send_event(event)
|
55
55
|
return false unless configuration.sending_allowed?(event)
|
56
56
|
|
57
|
-
event = configuration.before_send.call(event
|
57
|
+
event = configuration.before_send.call(event) if configuration.before_send
|
58
58
|
if event.nil?
|
59
59
|
configuration.logger.info(LOGGER_PROGNAME) { "Discarded event because before_send returned nil" }
|
60
60
|
return
|
data/lib/sentry/configuration.rb
CHANGED
@@ -96,9 +96,9 @@ module Sentry
|
|
96
96
|
attr_reader :transport
|
97
97
|
|
98
98
|
# Optional Proc, called before sending an event to the server/
|
99
|
-
# E.g.: lambda { |event
|
100
|
-
# E.g.: lambda { |event
|
101
|
-
# E.g.: lambda { |event
|
99
|
+
# E.g.: lambda { |event| event }
|
100
|
+
# E.g.: lambda { |event| nil }
|
101
|
+
# E.g.: lambda { |event|
|
102
102
|
# event[:message] = 'a'
|
103
103
|
# event
|
104
104
|
# }
|
@@ -1,19 +1,12 @@
|
|
1
1
|
module Sentry
|
2
2
|
class Transport
|
3
3
|
class Configuration
|
4
|
-
attr_accessor :timeout, :open_timeout, :proxy, :ssl, :ssl_ca_file, :ssl_verification, :
|
4
|
+
attr_accessor :timeout, :open_timeout, :proxy, :ssl, :ssl_ca_file, :ssl_verification, :http_adapter, :faraday_builder, :transport_class
|
5
5
|
|
6
6
|
def initialize
|
7
7
|
@ssl_verification = true
|
8
8
|
@open_timeout = 1
|
9
9
|
@timeout = 2
|
10
|
-
@encoding = 'gzip'
|
11
|
-
end
|
12
|
-
|
13
|
-
def encoding=(encoding)
|
14
|
-
raise(Error, 'Unsupported encoding') unless %w(gzip json).include? encoding
|
15
|
-
|
16
|
-
@encoding = encoding
|
17
10
|
end
|
18
11
|
|
19
12
|
def transport_class=(klass)
|
data/lib/sentry/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -44,7 +44,7 @@ files:
|
|
44
44
|
- Rakefile
|
45
45
|
- bin/console
|
46
46
|
- bin/setup
|
47
|
-
- lib/sentry.rb
|
47
|
+
- lib/sentry-ruby.rb
|
48
48
|
- lib/sentry/backtrace.rb
|
49
49
|
- lib/sentry/breadcrumb.rb
|
50
50
|
- lib/sentry/breadcrumb/sentry_logger.rb
|
@@ -65,7 +65,6 @@ files:
|
|
65
65
|
- lib/sentry/logger.rb
|
66
66
|
- lib/sentry/rack.rb
|
67
67
|
- lib/sentry/rack/capture_exception.rb
|
68
|
-
- lib/sentry/ruby.rb
|
69
68
|
- lib/sentry/scope.rb
|
70
69
|
- lib/sentry/transport.rb
|
71
70
|
- lib/sentry/transport/configuration.rb
|
data/lib/sentry/ruby.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "sentry"
|