slack-bot-server 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: 143cba07b6d366616e823e2f9a502d1d24a4af8d
4
- data.tar.gz: b739efffeddf7b60a7e23dc797073f3629285b8f
3
+ metadata.gz: 2057d536126e6a0d8c97aeaae58e2e3daaf91de1
4
+ data.tar.gz: 88d0b466fd378b2478eeb5daf8195e67b28aaa1a
5
5
  SHA512:
6
- metadata.gz: dfdf002fd3b658f13e6feb5486586e3937c409bc6fad2e45de4b871b7dbf7d0806ed5ac6383b4afb1d88b374bfda9023a0694718aebb6f4941edd375bd777829
7
- data.tar.gz: 5bc62c5f100ecc33f77ad809f8ca5952be5e9373ff710c834865f84048bcc2dd72663a9ffe4b0529a7a06e6235c36887b36013542d6d9829d96fc9b73cb78c9d
6
+ metadata.gz: 691c0b764c00490f6dab7fbd3af1b1aefac684c03dc26260bd182f491cca8a4b928197799b9d6ad0023ae388c3ec84cfaed1bca3512052518f21506f2ce7a557
7
+ data.tar.gz: ecf4e0f45c96aa35ebe37d46dd06a8cc28d31734f8db62e3cc67ba70d299dcf1c95291ad7929f1bfa995dce0c606b46ea185fb9ea31f4ab3fdbda4425a04276c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.4.1
2
+
3
+ ### Changes
4
+ - Fixed detection of RTM-compatible messages
5
+
1
6
  ## 0.4.0
2
7
 
3
8
  ### Added
@@ -424,11 +424,11 @@ class SlackBotServer::Bot
424
424
  end
425
425
 
426
426
  def rtm_incompatible_message?(data)
427
- data[:attachments].nil? ||
428
- data[:username].nil? ||
429
- data[:icon_url].nil? ||
430
- data[:icon_emoji].nil? ||
431
- data[:channel].match(/^#/).nil?
427
+ !(data[:attachments].nil? &&
428
+ data[:username].nil? &&
429
+ data[:icon_url].nil? &&
430
+ data[:icon_emoji].nil? &&
431
+ data[:channel].match(/^#/).nil?)
432
432
  end
433
433
 
434
434
  def default_message_options
@@ -1,4 +1,4 @@
1
1
  module SlackBotServer
2
2
  # The current version of the +SlackBotServer+ framework
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-bot-server
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
  - James Adam