ksconnect 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ksconnect.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04d498bf3db7e197692823c4223a234602e70eed
4
- data.tar.gz: e90ad6e6ac005e6398b44b877cdf38139ba06c10
3
+ metadata.gz: 1829fca81d5c50520f46482c6aac8a330cdaa973
4
+ data.tar.gz: 823a43e18f55e9c5ec44714c1df4cfe78f3bab5e
5
5
  SHA512:
6
- metadata.gz: 956b0d30243432d7d2d7c54d0ba0766812817d44bd85a74a4cf570ad6010e902f7440b1c0281898d6eac8f5f54495a9135c4b697ac6851f2e548c53864cce979
7
- data.tar.gz: a14bf0d96fe1f36823423ff42513a00b46376ef903c3326a860700735f3f08c37c8e299974fde8a846858ebb14282bd2ad4c257a2d618f02dcf922e257bd2371
6
+ metadata.gz: f63878c2085648cf7c8f6737f3d302ebf900d1dec5b7dc1228579bd39c1190081a509cea625a7c373533dd38f8375bfac8a520bf7434544f2acd88fe4fc48f92
7
+ data.tar.gz: ae3e9766776380e593cb3c809dcb8677a9d596d79b26d3f2b6bc171d33281d8292e64462170df8e5ff3cad74a5476e3b6b8f4c13c47619af8a1b0d638dbe9969
@@ -35,12 +35,12 @@ class KSConnect
35
35
  Thread.start do
36
36
  begin
37
37
  Redis.new.subscribe(name) do |on|
38
- thread_pool.process do
39
- logger.info "Subscribing to redis channel: #{name}"
40
- on.message do |_channel, message|
38
+ logger.info "Subscribing to redis channel: #{name}"
39
+ on.message do |_channel, message|
40
+ thread_pool.process do
41
41
  yield message
42
+ $stdout.flush
42
43
  end
43
- $stdout.flush
44
44
  end
45
45
  end
46
46
  rescue => error
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ksconnect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Poon