turbot 0.0.38 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmNhZGI4YWU5MDQwYzAyZjY4NzU3YjZkYWU2YTgxZTRlOGJmZmY4Zg==
4
+ M2NlZDBlZjc0NGRlZmNiZmRiZDY4YzJkMzhmODJiMWEwYTFiOGYxZQ==
5
5
  data.tar.gz: !binary |-
6
- NGJhY2Y4ZDRmMjAwYmM3MzMyZTkyMGE0ODRmZjczNzZhM2ZkZDMwYw==
6
+ NWJiODhiZjExMzczMDBjMzI0NWY4NjAxOTRkMDU4MzEzYWNkMGE5Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODY4NjQ1MmJjMzMwYmViMzMwMmMzNjhiOTE3MTYwOWMwMGM0NGU5NjNjNDgw
10
- ODFjZmU5ODJmNzczMmUyY2UzODljYjM5NmY2YmY1ZjI3OGJjYTE3NGYzYTM0
11
- NmM1ZDRkYzEwNjhkZWE2YTE1ZjVmZjhlNzc0NmUxNjA4ODVkM2Y=
9
+ OWNhNWU3ODY2N2Q3MWIzMmE4NmE0OWZlMDc3NjA2ZjRhZTVkOTMzOWI1NTQz
10
+ M2U4Nzc0MzViMDk1ZGFhMmUwZjQxNmQwYmUzMDc1YTgxNmI5NTA3YzhhNGZk
11
+ ZTdlMmFmNjUyZDgwNTI5NGQyMzc3OWUwNTM4YzcxYzEzMGVjNWY=
12
12
  data.tar.gz: !binary |-
13
- OTg3ZDI4N2JkYTI4MzJmYjQzODZlNzg2NzVkMTY5NTgzYWY3ZjQ3MDY2MzFk
14
- NWRlMGE5MDg5MmEzZmZmMjE2MzMyYjI2Zjg4ZjVhZmQ5ZGY5OTg3NTE1ZTI1
15
- NjIzMTU2NTI2NDI5NTM5NGNiMjhiM2Q3MzUyNzM0ZmVlNDdhNTE=
13
+ MTE1YzNjNjI4Nzg3ZDExZjliNjJkOWM1MmQ0YTVlZjlmNGY1MGZjMWI3YTJm
14
+ Y2QzMjc0N2FkZjg3ODFmY2QyZTUwZjAxYzk3NDU5OWEzNDg3YzdkZTczZDYw
15
+ Y2Q4MDM0NmM1MmU1ZjJlMjFiNGM5YzVjZmZlM2VmOGIyZDgxZTg=
@@ -182,10 +182,13 @@ class Turbot::Command::Bots < Turbot::Command::Base
182
182
  manifest['files'].each { |f| zipfile.add(f, File.join(working_dir,f)) }
183
183
  end
184
184
 
185
- File.open(archive_path) do |file|
186
- api.update_code(bot, file)
185
+ response = File.open(archive_path) {|file| api.update_code(bot, file)}
186
+ case response
187
+ when SuccessResponse
188
+ puts "Your bot has been pushed to Turbot and will be reviewed for inclusion as soon as we can. THANKYOU!"
189
+ when FailureResponse
190
+ error(response.message)
187
191
  end
188
- puts "Your bot has been pushed to Turbot and will be reviewed for inclusion as soon as we can. THANKYOU!"
189
192
  end
190
193
 
191
194
  alias_command "push", "bots:push"
@@ -1,3 +1,3 @@
1
1
  module Turbot
2
- VERSION = "0.0.38"
2
+ VERSION = "0.0.39"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Turbot