turbot 0.0.38 → 0.0.39
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 +8 -8
- data/lib/turbot/command/bots.rb +6 -3
- data/lib/turbot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2NlZDBlZjc0NGRlZmNiZmRiZDY4YzJkMzhmODJiMWEwYTFiOGYxZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWJiODhiZjExMzczMDBjMzI0NWY4NjAxOTRkMDU4MzEzYWNkMGE5Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWNhNWU3ODY2N2Q3MWIzMmE4NmE0OWZlMDc3NjA2ZjRhZTVkOTMzOWI1NTQz
|
10
|
+
M2U4Nzc0MzViMDk1ZGFhMmUwZjQxNmQwYmUzMDc1YTgxNmI5NTA3YzhhNGZk
|
11
|
+
ZTdlMmFmNjUyZDgwNTI5NGQyMzc3OWUwNTM4YzcxYzEzMGVjNWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTE1YzNjNjI4Nzg3ZDExZjliNjJkOWM1MmQ0YTVlZjlmNGY1MGZjMWI3YTJm
|
14
|
+
Y2QzMjc0N2FkZjg3ODFmY2QyZTUwZjAxYzk3NDU5OWEzNDg3YzdkZTczZDYw
|
15
|
+
Y2Q4MDM0NmM1MmU1ZjJlMjFiNGM5YzVjZmZlM2VmOGIyZDgxZTg=
|
data/lib/turbot/command/bots.rb
CHANGED
@@ -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)
|
186
|
-
|
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"
|
data/lib/turbot/version.rb
CHANGED