lita-heroku 0.1.8 → 0.1.9

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: d69b82f19f129ff76107502cb2de9966a49c11bd
4
- data.tar.gz: b25de92fe6c4cbb20d1324cf9ae2b439a3aad41d
3
+ metadata.gz: 574d975a1bfb3575f122c04971ec965b831d677e
4
+ data.tar.gz: 046be01a18c987513835b3017050caf90298a2ff
5
5
  SHA512:
6
- metadata.gz: b2c5dcd64e72a8085923b6e69a60fcb2746bd73315f27f40eea6fd595faaaf4906739021c9e53000b8e18a1f5b1b4990dcbfa7a29d3fcf57701ac15e92ef67be
7
- data.tar.gz: fba3ca5fd26a6b1ca5eeae0387213fa471bbc51ef782e37c1c4437e904a3f974ed30cd20329440187bb12adca135bd4b43c10ad402483125449225a051105af5
6
+ metadata.gz: d7a237e20e79d36cd090f765405c1721bfe4edd68a4a21e1532de4a0727aa7a119ebd678b1070a3a9bb7bd67017794db19b74c8015a1909d1b4885a9ce33ffdb
7
+ data.tar.gz: f2fdc909793b1f0fe32c39a13fa675a7254eda138093f094d8ba8b444ec835d86b5995f9c7d755e18937e5dda8c6ffc3465b2b47e4106ef5740b9e802e89593e
@@ -99,9 +99,9 @@ module Lita
99
99
  end
100
100
 
101
101
  def get_last_message channel
102
- # Would be nice if we could get this from the `response.reply`
102
+ channel_type = channel[0] == "D" ? 'im' : 'channels'
103
103
  msg = robot.chat_service.api.send(
104
- :call_api, "im.history", { channel: channel, count: 1 } # Probably need to filter
104
+ :call_api, "#{channel_type}.history", { channel: channel, count: 1 } # Probably need to filter
105
105
  )
106
106
  [msg["messages"][0]["ts"], msg["messages"][0]["text"]]
107
107
  end
data/lita-heroku.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-heroku"
3
- spec.version = "0.1.8"
3
+ spec.version = "0.1.9"
4
4
  spec.authors = ["Eric Boehs"]
5
5
  spec.email = ["ericboehs@gmail.com"]
6
6
  spec.description = "Lita handler for interacting with Heroku Apps"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-heroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Boehs