totoro 0.2.9 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docker-compose.yml +1 -1
- data/lib/totoro/base_worker.rb +4 -0
- data/lib/totoro/version.rb +1 -1
- data/pkg/totoro-0.1.1.gem +0 -0
- data/pkg/totoro-0.1.2.gem +0 -0
- data/pkg/totoro-0.1.3.gem +0 -0
- data/pkg/totoro-0.1.4.gem +0 -0
- data/pkg/totoro-0.1.5.gem +0 -0
- data/pkg/totoro-0.1.6.gem +0 -0
- data/pkg/totoro-0.2.0.gem +0 -0
- data/pkg/totoro-0.2.1.gem +0 -0
- data/pkg/totoro-0.2.7.gem +0 -0
- data/test/totoro_test/Gemfile.lock +6 -6
- data/test/totoro_test/app/models/worker/example_queue.rb +4 -1
- metadata +12 -5
- data/test/totoro_test/log/development.log +0 -2
- data/test/totoro_test/log/production.log +0 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b44d3b8f2d6e6fd25e5cf6185d9654150fa531d9bdc2b8c6236f3f54ddc4a751
|
|
4
|
+
data.tar.gz: 0b416fe489a0bca768b0d7d6ed5a373563817d9efc2f07ed6d9f60da454bf21b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23c9106df1b78977ee14da0e93b877d7365adde40729d032f95f105dd0c2e4fa76759697d3d12817e5dd4ee2d04f7062f94a8031d2627dc137be5439dc29c105
|
|
7
|
+
data.tar.gz: 0d09a54b0a625277f9bb6c7ec6e2858873a0df0d0060529619fee5e12e57310aa0b51422fb0d6166b3bebf03f31dbf1b6be0c8677516170bd6c902ace6a9ee10
|
data/Gemfile.lock
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
totoro (0.
|
|
4
|
+
totoro (0.3.0)
|
|
5
5
|
bunny (~> 2.10)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
amq-protocol (2.3.0)
|
|
11
|
-
bunny (2.
|
|
11
|
+
bunny (2.10.0)
|
|
12
12
|
amq-protocol (~> 2.3.0)
|
|
13
13
|
diff-lcs (1.3)
|
|
14
14
|
rake (10.5.0)
|
data/docker-compose.yml
CHANGED
data/lib/totoro/base_worker.rb
CHANGED
|
@@ -27,6 +27,10 @@ module Totoro
|
|
|
27
27
|
Rails.logger.info 'Listening to the Rabbitmq'
|
|
28
28
|
STDOUT.flush
|
|
29
29
|
@queue_class.channel.work_pool.join
|
|
30
|
+
rescue SignalException
|
|
31
|
+
puts 'Terminating process ..'
|
|
32
|
+
@queue_class.channel.work_pool.shutdown(true)
|
|
33
|
+
puts 'Stopped.'
|
|
30
34
|
end
|
|
31
35
|
|
|
32
36
|
def process; end
|
data/lib/totoro/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: /totoro
|
|
3
3
|
specs:
|
|
4
|
-
totoro (0.2.
|
|
4
|
+
totoro (0.2.9)
|
|
5
5
|
bunny (~> 2.10)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -56,7 +56,7 @@ GEM
|
|
|
56
56
|
ffi (1.9.25)
|
|
57
57
|
globalid (0.4.1)
|
|
58
58
|
activesupport (>= 4.2.0)
|
|
59
|
-
i18n (1.0
|
|
59
|
+
i18n (1.1.0)
|
|
60
60
|
concurrent-ruby (~> 1.0)
|
|
61
61
|
listen (3.1.5)
|
|
62
62
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
@@ -72,11 +72,11 @@ GEM
|
|
|
72
72
|
mini_portile2 (2.3.0)
|
|
73
73
|
minitest (5.11.3)
|
|
74
74
|
nio4r (2.3.1)
|
|
75
|
-
nokogiri (1.8.
|
|
75
|
+
nokogiri (1.8.4)
|
|
76
76
|
mini_portile2 (~> 2.3.0)
|
|
77
|
-
puma (3.
|
|
77
|
+
puma (3.12.0)
|
|
78
78
|
rack (2.0.5)
|
|
79
|
-
rack-test (1.
|
|
79
|
+
rack-test (1.1.0)
|
|
80
80
|
rack (>= 1.0, < 3)
|
|
81
81
|
rails (5.1.6)
|
|
82
82
|
actioncable (= 5.1.6)
|
|
@@ -111,7 +111,7 @@ GEM
|
|
|
111
111
|
spring-watcher-listen (2.0.1)
|
|
112
112
|
listen (>= 2.7, < 4.0)
|
|
113
113
|
spring (>= 1.2, < 3.0)
|
|
114
|
-
sprockets (3.7.
|
|
114
|
+
sprockets (3.7.2)
|
|
115
115
|
concurrent-ruby (~> 1.0)
|
|
116
116
|
rack (> 1, < 3)
|
|
117
117
|
sprockets-rails (3.2.1)
|
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.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ShuHui18
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bunny
|
|
@@ -98,6 +98,15 @@ files:
|
|
|
98
98
|
- lib/totoro/config.rb
|
|
99
99
|
- lib/totoro/initializer.rb
|
|
100
100
|
- lib/totoro/version.rb
|
|
101
|
+
- pkg/totoro-0.1.1.gem
|
|
102
|
+
- pkg/totoro-0.1.2.gem
|
|
103
|
+
- pkg/totoro-0.1.3.gem
|
|
104
|
+
- pkg/totoro-0.1.4.gem
|
|
105
|
+
- pkg/totoro-0.1.5.gem
|
|
106
|
+
- pkg/totoro-0.1.6.gem
|
|
107
|
+
- pkg/totoro-0.2.0.gem
|
|
108
|
+
- pkg/totoro-0.2.1.gem
|
|
109
|
+
- pkg/totoro-0.2.7.gem
|
|
101
110
|
- spec/spec_helper.rb
|
|
102
111
|
- spec/totoro_spec.rb
|
|
103
112
|
- test/totoro_test/Gemfile
|
|
@@ -143,8 +152,6 @@ files:
|
|
|
143
152
|
- test/totoro_test/config/spring.rb
|
|
144
153
|
- test/totoro_test/config/totoro.yml
|
|
145
154
|
- test/totoro_test/db/seeds.rb
|
|
146
|
-
- test/totoro_test/log/development.log
|
|
147
|
-
- test/totoro_test/log/production.log
|
|
148
155
|
- test/totoro_test/public/robots.txt
|
|
149
156
|
- test/totoro_test/test/test_helper.rb
|
|
150
157
|
- totoro.gemspec
|
|
@@ -168,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
175
|
version: '0'
|
|
169
176
|
requirements: []
|
|
170
177
|
rubyforge_project:
|
|
171
|
-
rubygems_version: 2.7.
|
|
178
|
+
rubygems_version: 2.7.3
|
|
172
179
|
signing_key:
|
|
173
180
|
specification_version: 4
|
|
174
181
|
summary: tool for rabbitmq
|