wat_catcher 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wat_catcher/sidekiq_middleware.rb +8 -1
- data/lib/wat_catcher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca3288fba4d7e3a5f53af3b8fdfe19d7f2cf6816
|
4
|
+
data.tar.gz: d626b7f399746367f991c32abf49f311352641a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82c045b71a0350a3b556747adf338ca697a9c0fe48be94b30a835a746cb547b0cac8d115b5f051c1a86685a4b32b4a99a057dd84701271ec608ca2a962c9fe5d
|
7
|
+
data.tar.gz: 8a0feafeb82845a4752f67dd5990941beb8d9cf72692564bc17ccef85e4e19392621e20415892c3958a7b76aaf2308965cc5d545375bfac92a82e8549d887159
|
@@ -5,7 +5,14 @@ module WatCatcher
|
|
5
5
|
yield
|
6
6
|
rescue => excpt
|
7
7
|
raise if thrown_by_watcatcher?(msg)
|
8
|
-
|
8
|
+
u = nil
|
9
|
+
begin
|
10
|
+
if worker.class == Sidekiq::Extensions::DelayedClass
|
11
|
+
(worker,method_name,args) = YAML.load(msg["args"][0])
|
12
|
+
end
|
13
|
+
u = worker.wat_user(*msg["args"]) if worker.respond_to? :wat_user
|
14
|
+
rescue; end
|
15
|
+
WatCatcher::Report.new(excpt, user: u, sidekiq: msg)
|
9
16
|
raise
|
10
17
|
end
|
11
18
|
end
|
data/lib/wat_catcher/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wat_catcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Constantine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|