turbot 0.1.25 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/turbot/command/bots.rb +18 -4
- data/lib/turbot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjFmNDdmMWJmOTk2MTViODZlZmU5ODkyOTdlN2I0MTA2M2JhNzU1Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWY3OGI5OGM4NjA4MTNjNjA3Y2Q3OTMwMWMyNzNlNjA1NTc3ZTJmNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmRjNmZjMTExNDFjZjNhMDdkNTQ0NGJkYmYxYWQzZTk4ZWRkODlkYmU5Mjdi
|
10
|
+
ZmJmODQ2NDllNjI4Nzg4MWRkYWIyMWJiNzk0ODllZTkxYzNkZWMzYTg3ZDk1
|
11
|
+
M2I0NTZlZTA2ZmI5MjRiNWM4NWZhMzRiMTQ1MjU5YjkzNTk1MTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTIyYzZmMTRiZTBjNTQ5YjU5N2RkMzIyNDhkMzk2OTU1OTAwMTIyYmI0YTU0
|
14
|
+
OTNhYjkzNDU0ODc3NmQ3ZWRmZjlmZDlmMDRiYzUwMWQ0MGU5YmZmZWY3YTFk
|
15
|
+
MTlkNjA0NjJkMmMwYTJhNDUyZDc0YTdmMDNmMTgwYTkyOWNjMjY=
|
data/lib/turbot/command/bots.rb
CHANGED
@@ -128,8 +128,13 @@ class Turbot::Command::Bots < Turbot::Command::Base
|
|
128
128
|
open("#{bot}/manifest.json", "w") do |f|
|
129
129
|
f.write(JSON.pretty_generate(JSON.parse(manifest)))
|
130
130
|
end
|
131
|
-
|
132
|
-
|
131
|
+
|
132
|
+
response = api.create_bot(bot, JSON.parse(manifest))
|
133
|
+
if response.is_a? Turbot::API::SuccessResponse
|
134
|
+
puts "Created new bot template at #{bot}!"
|
135
|
+
else
|
136
|
+
error(response.message)
|
137
|
+
end
|
133
138
|
end
|
134
139
|
|
135
140
|
|
@@ -272,8 +277,17 @@ class Turbot::Command::Bots < Turbot::Command::Base
|
|
272
277
|
validate_arguments!
|
273
278
|
|
274
279
|
config = parsed_manifest(Dir.pwd)
|
275
|
-
|
276
|
-
api.
|
280
|
+
|
281
|
+
response = api.update_bot(bot, parsed_manifest(Dir.pwd))
|
282
|
+
if !response.is_a? Turbot::API::SuccessResponse
|
283
|
+
error(response.message)
|
284
|
+
end
|
285
|
+
|
286
|
+
response = api.destroy_draft_data(bot)
|
287
|
+
if !response.is_a? Turbot::API::SuccessResponse
|
288
|
+
error(response.message)
|
289
|
+
end
|
290
|
+
|
277
291
|
puts "Sending to turbot... "
|
278
292
|
|
279
293
|
handler = PreviewHandler.new(bot, api)
|
data/lib/turbot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Turbot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: turbotlib
|