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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/slack-smart-bot.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adbd7c3dc67b2b210693540805fd97fa7eedbae941c6bde6bbe19fd258bb4659
4
- data.tar.gz: ffd91a4e8718c7e31c37e6de7dc60aa8db379eefa69a119c6fa45a1bc3862026
3
+ metadata.gz: d5daa382f51b4857bd58defaface6e88f36172c7597059015aab5dc24740fc27
4
+ data.tar.gz: 72498adc977f7d14f155e8c4b6f5fa37a350404de69b63bd9fd8b6f3745e9806
5
5
  SHA512:
6
- metadata.gz: eee29c6578dec908463161fef39dabba0fb3398bcbcc1874b53104f063aa1cc7de5c488baa57f2c064b92a3abc161d8d2efb0ac5ef8a634b7730d29b85f14a64
7
- data.tar.gz: 4610fe45ad403b34ee49a6b3f8af3fe11b5c992b6680ad941e0537076420cad267df603aa7d04d1e186d64e822d9138618a26fb69d6a448469821b2fccdb02b7
6
+ metadata.gz: 5dea8a83b702de880d447ac953e5e636835c06df3490dc4a8d7dfe35fe0d97120f55c6771401b3b4cd5af7b221ae42d882b7d9ed22f780580daeb2a1449b6980
7
+ data.tar.gz: f3711fdbe88657e5a6568cdb8848a7c5eee9434eec25c0ac1d5c6a73cc903aa2f44d739b08921064a5ccd51c4f6e06f67a334807ae3a771a6d3f17fceb51c3de
@@ -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.12
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-01 00:00:00.000000000 Z
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