slack-smart-bot 0.6.12 → 0.6.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack-smart-bot.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5daa382f51b4857bd58defaface6e88f36172c7597059015aab5dc24740fc27
|
4
|
+
data.tar.gz: 72498adc977f7d14f155e8c4b6f5fa37a350404de69b63bd9fd8b6f3745e9806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dea8a83b702de880d447ac953e5e636835c06df3490dc4a8d7dfe35fe0d97120f55c6771401b3b4cd5af7b221ae42d882b7d9ed22f780580daeb2a1449b6980
|
7
|
+
data.tar.gz: f3711fdbe88657e5a6568cdb8848a7c5eee9434eec25c0ac1d5c6a73cc903aa2f44d739b08921064a5ccd51c4f6e06f67a334807ae3a771a6d3f17fceb51c3de
|
data/lib/slack-smart-bot.rb
CHANGED
@@ -1094,7 +1094,7 @@ class SlackSmartBot
|
|
1094
1094
|
end
|
1095
1095
|
|
1096
1096
|
#to send a file to an user or channel
|
1097
|
-
def send_file(to, msg, file, title, format)
|
1097
|
+
def send_file(to, msg, file, title, format, type='text')
|
1098
1098
|
if to[0] == "U" #user
|
1099
1099
|
im = wclient.im_open(user: to)
|
1100
1100
|
channel = im["channel"]["id"]
|
@@ -1108,6 +1108,7 @@ class SlackSmartBot
|
|
1108
1108
|
file: Faraday::UploadIO.new(file, format),
|
1109
1109
|
title: title,
|
1110
1110
|
filename: file,
|
1111
|
+
filetype: type,
|
1111
1112
|
initial_comment: msg,
|
1112
1113
|
)
|
1113
1114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-smart-bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-ruby-client
|