totoro 0.2.4 → 0.2.5
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f6daf82be12b0a319e09bf4dc6b5d51716a472a0c53ee5222afda83496e3e43
|
4
|
+
data.tar.gz: 44932ae30a43d0ca1deb5e2993789f66dedda866ae9a8d1e1e79a5b9ca31e3c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae10c7e5743f55ac694f3bea9a2e99f65bd7f6c111ec483dc7992bc7f37b4081d4d4efe5e851bc18b553877598e650bd4b0df7d6ec1b23177bda2e8097589a99
|
7
|
+
data.tar.gz: 8e1e8cd544b9d82a394577165c2332b06b75c3e0a21aefb79606a4feb21d61041aac7172de908d8df1e4419fee759446d0825b1b86fa93f02a35cfc994e2dcab
|
data/lib/totoro/base_worker.rb
CHANGED
@@ -20,10 +20,12 @@ module Totoro
|
|
20
20
|
def execute
|
21
21
|
@queue_class.subscribe(@queue_name) do |delivery_info, metadata, payload|
|
22
22
|
Rails.logger.info "#{@queue_name} received message"
|
23
|
+
STDOUT.flush
|
23
24
|
payload_hash = JSON.parse(payload).with_indifferent_access
|
24
25
|
process(payload_hash, metadata, delivery_info)
|
25
26
|
end
|
26
27
|
Rails.logger.info 'Listening to the Rabbitmq'
|
28
|
+
STDOUT.flush
|
27
29
|
@queue_class.channel.work_pool.join
|
28
30
|
end
|
29
31
|
|
data/lib/totoro/version.rb
CHANGED
Binary file
|
@@ -41,7 +41,8 @@ Rails.application.configure do
|
|
41
41
|
|
42
42
|
# Use the lowest log level to ensure availability of diagnostic information
|
43
43
|
# when problems arise.
|
44
|
-
config.log_level = :
|
44
|
+
config.log_level = :info
|
45
|
+
config.logger = Logger.new(STDOUT)
|
45
46
|
|
46
47
|
# Prepend all log lines with the following tags.
|
47
48
|
config.log_tags = [ :request_id ]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: totoro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ShuHui18
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- lib/totoro/version.rb
|
101
101
|
- pkg/totoro-0.2.2.gem
|
102
102
|
- pkg/totoro-0.2.3.gem
|
103
|
+
- pkg/totoro-0.2.4.gem
|
103
104
|
- spec/spec_helper.rb
|
104
105
|
- spec/totoro_spec.rb
|
105
106
|
- test/totoro_test/Gemfile
|