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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzYxMTJkNDEyNzFiMjQ0N2Q1ZTc3MzA3NzMwODI3ODdlOTY0ZDMwNQ==
4
+ NjFmNDdmMWJmOTk2MTViODZlZmU5ODkyOTdlN2I0MTA2M2JhNzU1Zg==
5
5
  data.tar.gz: !binary |-
6
- NzllZTEyNzg1MTBjMmNhMzQ2OTNkMmQzYWMxOTEyZTAxN2UxYWZiMQ==
6
+ YWY3OGI5OGM4NjA4MTNjNjA3Y2Q3OTMwMWMyNzNlNjA1NTc3ZTJmNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjUzZTQzYjMxZTNjN2Q1YWQ3NjlmODJlYzllY2I5OGFkZWMwNjRkODE5MTM3
10
- ODVjNGU3ZDdkM2NiYTU0YmQ1MWZlYzNjYTYxOGYxYTg0YTljMTQxZTI5MzVm
11
- YWFjODVmZTFmOTM0ZTFjNzQ3ZTliZWU0YmQ5YWJkYzI3ZDBmODk=
9
+ YmRjNmZjMTExNDFjZjNhMDdkNTQ0NGJkYmYxYWQzZTk4ZWRkODlkYmU5Mjdi
10
+ ZmJmODQ2NDllNjI4Nzg4MWRkYWIyMWJiNzk0ODllZTkxYzNkZWMzYTg3ZDk1
11
+ M2I0NTZlZTA2ZmI5MjRiNWM4NWZhMzRiMTQ1MjU5YjkzNTk1MTY=
12
12
  data.tar.gz: !binary |-
13
- MWIwZjRmNGUzZjM0NzkzYzM0ZmIxMWI5M2RjZDcwODIxM2M4N2E4NWU5OWRj
14
- MDQ0NDUwZGNlY2M2NzMxNWY0OGIyYmM0NTBmMjIxZTJhMDk1OTA4OWJjMGMx
15
- YTI4NTBjMmJiMTUyOTM1YzllZWI4ZjBmODY4NzQ0MjQxOTIzMWI=
13
+ YTIyYzZmMTRiZTBjNTQ5YjU5N2RkMzIyNDhkMzk2OTU1OTAwMTIyYmI0YTU0
14
+ OTNhYjkzNDU0ODc3NmQ3ZWRmZjlmZDlmMDRiYzUwMWQ0MGU5YmZmZWY3YTFk
15
+ MTlkNjA0NjJkMmMwYTJhNDUyZDc0YTdmMDNmMTgwYTkyOWNjMjY=
@@ -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
- api.create_bot(bot, JSON.parse(manifest))
132
- puts "Created new bot template at #{bot}!"
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
- api.update_bot(bot, parsed_manifest(Dir.pwd))
276
- api.destroy_draft_data(bot)
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)
@@ -1,3 +1,3 @@
1
1
  module Turbot
2
- VERSION = "0.1.25"
2
+ VERSION = "0.1.26"
3
3
  end
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.25
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-18 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: turbotlib