ruboty-slack_rtm 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7df14a42a9fbf710f494cee00b2fe483416085c2
4
- data.tar.gz: fc3cf45180317c08511ceef50193c73f996db918
3
+ metadata.gz: f217d7192d7d8f2175dfb86a77fabcf708811700
4
+ data.tar.gz: 026e96f448b87e99c30ffd1d92a4b5ee49235c4b
5
5
  SHA512:
6
- metadata.gz: 907ec5897036d18a1f24b173e5bf503550795820b84109958966a36447b6b72750fac259f58148f771e74862a7ca4ecfce1bee2d3eb631819d5aae71aa8d6317
7
- data.tar.gz: 15374cc7a8d10c0186ee70167baf91de71a8dfa2a4d89b78291b494436237154e2a2810b23eb73f0fd3ab046c48629049d5dace7e3dc0df4fcca760c4e833ff4
6
+ metadata.gz: 9a82f7a20511359d57e1915df808380cdf7cecd8ad7e814bcd4e88902c41dd54fdb396add71942fb5c6bdb994057726a25adc56353af0ac715d7d27fb3e1d74a
7
+ data.tar.gz: 2602950fc89273c455dd1ce5bf36f17d2bfdd2691b137424b3a670f8c9ede0ce6ff90a32c036efaa8b2814f06d93a5c929435a626145812f7d2be7f9936ebc50
@@ -129,9 +129,9 @@ module Ruboty
129
129
  robot.receive(message_info.merge(body: CGI.unescapeHTML(data['text']))
130
130
 
131
131
  (data['attachments'] || []).each do |attachment|
132
- body = (attachments['fallback'] || "#{attachment['text']} #{attachment['pretext']}").to_s
132
+ body = (attachments['fallback'] || "#{attachment['text']} #{attachment['pretext']}")
133
133
 
134
- robot.receive(message_info.merge(body: CGI.unescapeHTML(body)) unless text.empty?
134
+ robot.receive(message_info.merge(body: CGI.unescapeHTML(body)) unless body.empty?
135
135
  end
136
136
  end
137
137
 
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module SlackRTM
3
- VERSION = '2.4.0'
3
+ VERSION = '2.4.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-slack_rtm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano