jruby-rack-worker 0.10.1 → 0.11.0
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: 6e9e2fd7c1c0408b39388b29fc54192b5c539239
|
4
|
+
data.tar.gz: 09cb5fe9adc2305cb3689f87bc3479f5d05ad7e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5082840f98d8953c5348858b4cdbae1b37a51881454fcb91351d98c87cec1918c34e2cda33ea380e7e8543e5d3ff58546ffae0dec0e956adb2834b904ab09861
|
7
|
+
data.tar.gz: c339d777f8a16c6a9dd281e0388bc164ebbf0ddd46b9ed29a13948947bb57a9953601e7f2fa9cad46460c1b7f0ab96585af5da961059a0d4e8325fd1a56185a8
|
Binary file
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module JRuby
|
2
2
|
module Rack
|
3
3
|
module Worker
|
4
|
-
|
4
|
+
|
5
5
|
def self.log_error(e, logger = nil)
|
6
6
|
return unless ( logger ||= self.logger )
|
7
|
-
|
8
|
-
message =
|
7
|
+
|
8
|
+
message = "\n#{e.class} (#{e.message}):\n"
|
9
9
|
message << ' ' << e.backtrace.join("\n ")
|
10
10
|
logger.error("#{message}\n\n")
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
@@logger = nil
|
14
14
|
def self.logger
|
15
15
|
@@logger ||= begin
|
@@ -20,7 +20,7 @@ module JRuby
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def self.logger=(logger)
|
25
25
|
if @@logger == false
|
26
26
|
require 'logger'
|
@@ -29,15 +29,15 @@ module JRuby
|
|
29
29
|
@@logger = logger
|
30
30
|
end
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
def self.logger?; !!@@logger; end
|
34
|
-
|
34
|
+
|
35
35
|
protected
|
36
|
-
|
36
|
+
|
37
37
|
def self.default_logger
|
38
38
|
require 'logger'; Logger.new(STDERR)
|
39
39
|
end
|
40
|
-
|
40
|
+
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
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.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karol Bucek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: 1.1.10
|
20
|
-
|
19
|
+
name: jruby-rack
|
20
|
+
prerelease: false
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
23
|
requirements:
|
22
24
|
- - "~>"
|
23
25
|
- !ruby/object:Gem::Version
|
24
26
|
version: 1.1.10
|
25
|
-
prerelease: false
|
26
|
-
type: :runtime
|
27
27
|
description: Implements a thread based worker pattern on top of JRuby-Rack. Useful if you'd like to run background workers within your (deployed) web-application, concurrently in 'native' threads, instead of using separate daemon processes. Provides (thread-safe) implementations for popular worker libraries such as Resque and Delayed::Job, but one can easily write their own 'daemon' work processing loop as well.
|
28
28
|
email:
|
29
29
|
- self@kares.org
|
@@ -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.11.0.jar
|
37
37
|
- lib/jruby/rack/worker.rb
|
38
38
|
- lib/jruby/rack/worker/env.rb
|
39
39
|
- lib/jruby/rack/worker/logger.rb
|
Binary file
|