build-buddy 1.1.0 → 1.1.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: 823ad09aee4fcf86c149aceb919c9fb1d09ebe91
4
- data.tar.gz: 7ced4d2d510a047605e903b5e14f301b39c49609
3
+ metadata.gz: 9edf5fca3601b95a498801898c367879d99453df
4
+ data.tar.gz: 9abc45a421265ef5b57123d9e0a77bab0e795c4c
5
5
  SHA512:
6
- metadata.gz: d8a2eeb4ced6a73650c53149671a2459b5ae43a4e928e03b5b48fbab5100a3902e7d948411178e0df4b6b2e7c50f1ba62e0fd783c7e3d0e212a894984b02a66c
7
- data.tar.gz: f7e4e4823fbee1cc8f9ae7eeb1a694d588f43b16c531c79bded4e78d6f4dea8ab469cc763a7a3765179b00d091bc6119e89779f5e5a353ceba1dd50420999b9b
6
+ metadata.gz: dc2c8482c86124374f51dca9ac2092879f2c972f993c61ac6fdaf59c32dd090c8448708461ee3364883fc47a6f1e1ecb5362a4ba01757e38c567fc861d5af4a2
7
+ data.tar.gz: 4f9374716fb92234bba3a8ded46f555b7ebd15749a1b8aca437831742af30d4e001aba809ddaf1bc6766feb2fac93b2886b655e9e72b9621e966f3301fab2f39
@@ -4,6 +4,6 @@ require 'build_buddy/builder'
4
4
  require 'build_buddy/watcher'
5
5
 
6
6
  module BuildBuddy
7
- VERSION = "1.1.0"
7
+ VERSION = "1.1.1"
8
8
  end
9
9
 
@@ -68,7 +68,16 @@ module BuildBuddy
68
68
  end
69
69
 
70
70
  sending_user_id = data['user']
71
- sending_user_name = @reverse_user_map[sending_user_id]
71
+
72
+ # Only respond to messages from users and bots
73
+ if sending_user_id.nil?
74
+ if data['username'].nil? or data['subtype'] != 'bot_message'
75
+ return
76
+ end
77
+ sending_user_name = data['username']
78
+ else
79
+ sending_user_name = @reverse_user_map[sending_user_id]
80
+ end
72
81
 
73
82
  # Don't respond if _we_ sent the message!
74
83
  if sending_user_id == @rt_client.self['id']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-buddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Lyon-smith