lita-heroku 0.1.5 → 0.1.6

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: 19cb4a8cc5b355c0f553c1b92ac7a68401b67aaf
4
- data.tar.gz: e9e7c5e4f76ab4b09e6c6a56a9b9265dec762922
3
+ metadata.gz: 1e05ebbe3644fdef156548706f3ce2f7158e06a1
4
+ data.tar.gz: 5840e0395b15255ba2ada322be9c40e4b86a8f22
5
5
  SHA512:
6
- metadata.gz: 22f0893d8a8681fa82fbe7d385838e1f7e541c7d4225bbe654c4ccd95e8f6a3a99ba283df427504bbcc1d034f408c712ec72f5d1cb70e635e6ba58d77652edf3
7
- data.tar.gz: 5de5761b19f19d4411adc58e550baec972fabc209cb8b409c7bb8b5fa8f8ab822662e84dce62028fe6d5c2f86e0195a69fa9be426f79bbbdf33811bc44293001
6
+ metadata.gz: 7eca6ba174da6c57fe1784cc7e7aefce28dd1f815b9958aa2f44af18f587dbbf215f6cbad2bc918668f30ccc224725540df7c093b25fb3fb631dddc700ad34ab
7
+ data.tar.gz: 879d9c4ad7eece55978b1f4cb8f1359cac0f63fbcbfa1f3eb46dd0c2244704261fb0b66b417533d0db867888d5a46d4bebafb2b596efdcd7d5c16c2c26eb60d8
@@ -14,7 +14,7 @@ module Lita
14
14
  def heroku_cmd(response)
15
15
  environment = response.matches[0][0]
16
16
  command = response.matches[0][1]
17
- if command == "deploy"
17
+ if command.start_with? "deploy"
18
18
  heroku_deploy response
19
19
  else
20
20
  stdout, stderr, status = Open3.capture3 "#{heroku_bin} #{command} -a #{config.app_prefix}#{environment}"
@@ -41,7 +41,7 @@ module Lita
41
41
 
42
42
  def heroku_deploy(response)
43
43
  bearer = config.oauth_token
44
- app_name, branch = response.matches[0][0].split
44
+ app_name, command, branch = response.matches[0].join(" ").split
45
45
  app_name = "#{config.app_prefix}#{app_name}" unless app_name.start_with? config.app_prefix
46
46
  branch ||= "master"
47
47
 
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.5"
3
+ spec.version = "0.1.6"
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Boehs