totoro 0.2.7 → 0.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a87006e56672f580ec7a98a4f8e45c2922d5b763dd64c86f4913bba8b22066d
4
- data.tar.gz: b4c258b5a9c569a88a039fa2b85efd97681bfb4e2dd3228545cb15de298a1cf8
3
+ metadata.gz: 4050f12f0d0b3b854dbee66449e2d177044a8738bb54cbe3d364d21b0a44904d
4
+ data.tar.gz: 01d7f0e65151c535a42f19277efc9260de1a1b74474619958f37da2fa4ac61ed
5
5
  SHA512:
6
- metadata.gz: 7ae2f227fc99e4115c13bb020465b0b3c688908c38c311a9154a6a6e64830834bdda67fba63471d6951d690d06dace2f22318816930717bc3708ea21d85b3ede
7
- data.tar.gz: 83edd4d6e3a5204641a626c94c030285ccfd762efdc5c5e234081d436f75994a528700e13070d8eef2b0cc1de5154892d53da52e7225e44c8ba242e80b8b7b12
6
+ metadata.gz: 9e5d48eb48ae69521259aa6b196418f4779ccd2083d57de1e05864a85562ed67e53f30fac13774aa68632cbb5ac3b5ce74e6805cc1cc38cff34199cd4bb957c0
7
+ data.tar.gz: 23a75d91e17800c247792e9a2c5f12be7dbc3cdbe1028fb0c9ec86fc2b662ddde29ec09033d056223875c26b347e5e6d828e5c9218f1f6f0f02e0215bd92c349
@@ -23,11 +23,11 @@ module Totoro
23
23
 
24
24
  # enqueue = publish to direct exchange
25
25
  def enqueue(id, payload)
26
- Rails.logger.info "#{queue.name} send message"
27
- STDOUT.flush
28
26
  queue = channel.queue(*config.queue(id))
29
27
  payload = JSON.dump payload
30
28
  exchange.publish(payload, routing_key: queue.name)
29
+ Rails.logger.info "send message to #{queue.name}"
30
+ STDOUT.flush
31
31
  end
32
32
 
33
33
  def subscribe(id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Totoro
4
- VERSION = '0.2.7'
4
+ VERSION = '0.2.8'
5
5
  end
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ huishu
2
+ Listening to the Rabbitmq
@@ -0,0 +1,2 @@
1
+ E, [2018-07-23T04:24:19.172785 #25] ERROR -- : huishu
2
+ I, [2018-07-23T08:17:35.987092 #20] INFO -- : Listening to the Rabbitmq
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: totoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShuHui18
@@ -98,14 +98,11 @@ 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
101
+ - pkg/totoro-0.2.2.gem
102
+ - pkg/totoro-0.2.3.gem
103
+ - pkg/totoro-0.2.4.gem
104
+ - pkg/totoro-0.2.5.gem
105
+ - pkg/totoro-0.2.6.gem
109
106
  - spec/spec_helper.rb
110
107
  - spec/totoro_spec.rb
111
108
  - test/totoro_test/Gemfile
@@ -151,6 +148,8 @@ files:
151
148
  - test/totoro_test/config/spring.rb
152
149
  - test/totoro_test/config/totoro.yml
153
150
  - test/totoro_test/db/seeds.rb
151
+ - test/totoro_test/log/development.log
152
+ - test/totoro_test/log/production.log
154
153
  - test/totoro_test/public/robots.txt
155
154
  - test/totoro_test/test/test_helper.rb
156
155
  - totoro.gemspec
@@ -174,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
173
  version: '0'
175
174
  requirements: []
176
175
  rubyforge_project:
177
- rubygems_version: 2.7.3
176
+ rubygems_version: 2.7.6
178
177
  signing_key:
179
178
  specification_version: 4
180
179
  summary: tool for rabbitmq
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file