relax-rb 0.4.0 → 0.4.1

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: 4bc9b713e9e06a5888b8da463889f33358812967
4
- data.tar.gz: 9a46aec07087aed617e420fd59f390160ac6a195
3
+ metadata.gz: 4832c9e281f3c41551238d7799966be0a976cb26
4
+ data.tar.gz: fb7959825fc214697cc2cbf94aaf5a8aa4f2ac61
5
5
  SHA512:
6
- metadata.gz: 55282fee6279ac316d204f08ec5204f4d713d0449390c465931e1c1d60d393d39b56634d3fabe6869d6077619139085429757d13ee7636822efa68fbf9c6482c
7
- data.tar.gz: 6d5514397d944454a6c9f2cbfb5ba0e5c1ffb93d87a61f7b837a5ae5efe31218d829dda136ccd65ead2a46ef44a67e71e41e125f098909505f3019e0388923bb
6
+ metadata.gz: a56a7bef5fb9cc82a23827e407b18e4976e68d816a3891e793fb5cf39f006b24ba58215cf7113c81d20accbe8fb313edfca6c4109e633efb279ca266fc1bed7e
7
+ data.tar.gz: d89fe67613ff50e48c6b2691b68d547f979c2a4fba7be8257392d867c99ec43230b98f6c394ed679115bbcbfa2bf110d2c6262db7dd759c49d90511a74b651b5
data/lib/relax/bot.rb CHANGED
@@ -18,11 +18,13 @@ module Relax
18
18
  hset_payload = {team_id: team_uid, token: token}
19
19
  hset_payload.merge!(namespace: namespace) if namespace != ""
20
20
  key = namespace == "" ? team_uid : "#{namespace}-#{team_uid}"
21
+ pubsub_payload = {type: 'team_added', team_id: team_uid}
22
+ pubsub_payload.merge!(namespace: namespace) if namespace != ""
21
23
 
22
24
  redis.with do |conn|
23
25
  conn.multi do
24
26
  conn.hset(relax_bots_key, key, hset_payload.to_json)
25
- conn.publish(relax_bots_pubsub, {type: 'team_added', team_id: team_uid}.to_json)
27
+ conn.publish(relax_bots_pubsub, pubsub_payload.to_json)
26
28
  end
27
29
  end
28
30
  end
data/lib/relax/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Relax
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relax-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - arunthampi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-23 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.8
145
+ rubygems_version: 2.5.1
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: relax-rb is a Ruby Client for Relax, which is a message broker for Slack's