jruby-rack-worker 0.14.1 → 0.20.DJ1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ad62a23f3b19634249e11cd334f6e5f07ee7dca
|
4
|
+
data.tar.gz: 83717787ee9671b8b8b51073d5ce26bdbfef1675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8aa6b27f7639c36e04668d18c43cb7a23004d16420135887c4e7250abfaa89767cf93261ef6f9d47eaf9440ad609a6f86f3e7faf373d863a7faf2a8ea73c2f2
|
7
|
+
data.tar.gz: f9eb72aa9452fae38664949b8e848895f9a192c36973a5669774d3eae6a2f9016cc9f516335bf72ca65bfd66b535ea11147157dfa424da53f94bdcae6030f045
|
data/README.md
CHANGED
@@ -6,7 +6,6 @@ With out of the box thread-safe [JRuby](http://jruby.org) "adapters" for:
|
|
6
6
|
|
7
7
|
* [Resque](http://github.com/defunkt/resque) (>= 1.21.0, ~> 2.0.0 [master])
|
8
8
|
* [Delayed::Job](http://github.com/collectiveidea/delayed_job) (~> 2.1, >= 3.0)
|
9
|
-
* [Navvy](http://github.com/jeffkreeftmeijer/navvy) (not-maintained)
|
10
9
|
|
11
10
|
... but one can easily write/adapt his own worker loop.
|
12
11
|
|
Binary file
|
@@ -2,13 +2,18 @@ module JRuby
|
|
2
2
|
module Rack
|
3
3
|
module Worker
|
4
4
|
|
5
|
-
def self.log_error(e,
|
6
|
-
return unless ( logger
|
5
|
+
def self.log_error(e, prefix = nil)
|
6
|
+
return unless ( logger = self.logger )
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
if e.is_a?(String)
|
9
|
+
message = "#{prefix}#{e}"
|
10
|
+
else
|
11
|
+
message = "#{prefix}#{e.message} (#{e.class})"
|
12
|
+
if backtrace = e.backtrace
|
13
|
+
message << ":\n #{backtrace.join("\n ")}"
|
14
|
+
end
|
11
15
|
end
|
16
|
+
|
12
17
|
logger.error(message)
|
13
18
|
end
|
14
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby-rack-worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.DJ1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karol Bucek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jruby-rack
|
@@ -33,7 +33,7 @@ extra_rdoc_files: []
|
|
33
33
|
files:
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
|
-
- lib/jruby-rack-worker_0.
|
36
|
+
- lib/jruby-rack-worker_0.20.DJ1.jar
|
37
37
|
- lib/jruby/rack/worker.rb
|
38
38
|
- lib/jruby/rack/worker/env.rb
|
39
39
|
- lib/jruby/rack/worker/logger.rb
|
@@ -54,9 +54,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
54
|
version: '0'
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "
|
57
|
+
- - ">"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: 1.3.1
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project: "[none]"
|
62
62
|
rubygems_version: 2.6.12
|