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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4f32c99ced9c324cd468c072c4455d4244e17cd
4
- data.tar.gz: 756fdb35903b9d727299d03ee024b68aa41c06fd
3
+ metadata.gz: ca3288fba4d7e3a5f53af3b8fdfe19d7f2cf6816
4
+ data.tar.gz: d626b7f399746367f991c32abf49f311352641a1
5
5
  SHA512:
6
- metadata.gz: 488038275a7ac087de951fd1c9f3a64a342110e616558c610caecd05f33ff53b6f921096fc2e77f325060ab2691c926d9fd0dce2619c1950c6715efc168dabe0
7
- data.tar.gz: b4c43425b1304fc9c020034990239682eb4942668c9ac52700cf8c1623b205598e8a711d8a70827750e2b7262c381f46d278924f7606f17e171f19ae945cb5f5
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
- WatCatcher::Report.new(excpt, sidekiq: msg)
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
@@ -1,3 +1,3 @@
1
1
  module WatCatcher
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler