sentry-ruby-capture 1.0.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 +7 -0
- data/lib/sentry-ruby-capture.rb +17 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1fff33b6b6ee13b81de08ed96fb118ec764ff242621d6b78a9ad66a17ef89a44
|
4
|
+
data.tar.gz: c3652db77ed0a192764972ebd9e0230344bb846ec80e5259a104a0baa379b423
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bc66ff053b85dd5a0f94896892c3008c3acf7b11a12c8d4fd482ea4485c8c0da850607f4ba40cd290ff323b9df2055347dbcafb2f036dd267bbc0a20b76fce05
|
7
|
+
data.tar.gz: ebe905ee2a81f086569d6a1c27461beda6146e087b1160a8797a6d1a9b62e34a5a10e19e93ff1d095ff851d7edfd1751f299c7a85bfb92c33d690ca1bd009c2c
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "sentry-ruby"
|
2
|
+
|
3
|
+
unless Sentry.respond_to? :capture
|
4
|
+
def Sentry.capture(*args, **kwargs)
|
5
|
+
if block_given?
|
6
|
+
begin
|
7
|
+
yield
|
8
|
+
rescue Exception => e
|
9
|
+
Sentry.capture_exception(e, *args, **kwargs)
|
10
|
+
end
|
11
|
+
else
|
12
|
+
at_exit do
|
13
|
+
Sentry.capture_exception($!, *args, **kwargs) if $!
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sentry-ruby-capture
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Albert Song
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-03-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sentry-ruby
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.0
|
27
|
+
description: |
|
28
|
+
sentry-ruby does not provides an API that directly replace Raven.capture,
|
29
|
+
see https://github.com/getsentry/sentry-ruby/issues/1267
|
30
|
+
|
31
|
+
This gem adds it back, that's it.
|
32
|
+
email:
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- lib/sentry-ruby-capture.rb
|
38
|
+
homepage: https://github.com/albb0920/sentry-ruby-capture
|
39
|
+
licenses:
|
40
|
+
- CC0-1.0
|
41
|
+
metadata: {}
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubygems_version: 3.1.2
|
58
|
+
signing_key:
|
59
|
+
specification_version: 4
|
60
|
+
summary: Looking for `Sentry.capture` ? Here's the method sentry-ruby gem refused
|
61
|
+
to give you
|
62
|
+
test_files: []
|