distribot 0.1.1 → 0.1.2

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: 15b7db8443141b8fdb898ed7b5dbda3874c7ae6e
4
- data.tar.gz: 4b27c704d5596db1084f0c4d2a9bd55a372f7d92
3
+ metadata.gz: e0867d9bba2ffe8c165f034542f35fbb64ff4595
4
+ data.tar.gz: 574293a4f9baba41247e37a22050d29b6beea446
5
5
  SHA512:
6
- metadata.gz: f8f6b34c21d0423669f5d2b1e65fd1e892458d8b13ac11f7e680b1f53ef822f98d5ea6461964e7cecf51c54f81bdf1c45ad52f7bca0e41131c61fa4538e125a0
7
- data.tar.gz: 93ff7a788f203533a6430018c346c383096cec8f5318c5a2db01afd33e153de5d33c28c29281bf20379c24c2e5c1167df895bdd5b5e4f73b9c9caf88c3f8d836
6
+ metadata.gz: 80f9d8ad43d0645059bbe1a951ed2b581d232d4411acf56236f01e1e0667273c5560b97a91e972518cb9c7c776de7f0d688cbd2a7cf196c03444519e093fd507
7
+ data.tar.gz: b51057543f9ad2ee0bb89ecf14f8f39f24c507c679bb5ec05a247dc637e8945537ee2ea3535673c3eb993a2ce3773307d63ba9aecef0fb1acd8fccf5fda21047
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- distribot (0.1.1)
4
+ distribot (0.1.2)
5
5
  activesupport
6
6
  bunny
7
7
  concurrent-ruby
data/distribot.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'distribot'
3
- spec.version = '0.1.1'
3
+ spec.version = '0.1.2'
4
4
  spec.authors = ['John Drago']
5
5
  spec.email = 'jdrago.999@gmail.com'
6
6
  spec.homepage = 'https://github.com/jdrago999/distribot'
@@ -7,6 +7,7 @@ module Distribot
7
7
  def callback(message)
8
8
  Distribot.redis.decr('distribot.flows.running')
9
9
  Distribot.redis.srem 'distribot.flows.active', message[:flow_id]
10
+ Distribot.broadcast! 'distribot.flow.finished', flow_id: message[:flow_id]
10
11
  end
11
12
  end
12
13
  end
@@ -24,6 +24,7 @@ describe Distribot::FlowFinishedHandler do
24
24
  expect(redis).to receive(:srem).with('distribot.flows.active', @message[:flow_id])
25
25
  expect(Distribot).to receive(:redis).exactly(2).times{ redis }
26
26
  expect(Distribot).to receive(:subscribe)
27
+ expect(Distribot).to receive(:broadcast!).with('distribot.flow.finished', flow_id: @message[:flow_id])
27
28
  end
28
29
  it 'decrements the running tally of how many flows are currently in process' do
29
30
  described_class.new.callback(@message)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distribot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Drago
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-12 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler