turbot-api 0.0.6 → 0.0.7

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
- OGRhMjY4YTc3MTZmZjc0MmQwYWI5YjQ1ZDhkZGE2OTFkMTM3YTAwZg==
4
+ MTNjN2VmZjIwMmExYjQzZTUxMmZkZDYxNWU1NzYwNDc3NDg5NTU5OQ==
5
5
  data.tar.gz: !binary |-
6
- YzRhZTFkOGE4Zjg5NWVjMjViMmY0YTRkZmI2ZDBlNTZkY2VlZGUzYQ==
6
+ YTc1MGEzMGQzM2RjZmU3YzFmNjU4N2EyMmM4MGM4YmZhOGE4NWI5Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjM4NmZmZDQwYTBlZjEwMjU2NDNmYjMzZGIwYzA2MTZmZmU3MjM0NTUyMTAy
10
- MjNiNDE5MGY4YjhiYjVkMWQ3OWYwMTNiMDA3MWIxMTk2ODc4OTQyYjc4MGE1
11
- MGI4NDk3ZDNjZTBjNjIyNjIwOTQyYzc1ZDQ4YTZhZThhMWQzMjI=
9
+ NDNkMDZlZWM0M2Q1Yjc1OTA3OTk4ZGU4YTBjMTk1MGE5N2JlODZiZGNhM2Ex
10
+ ODgwODYyNGI1ZWQxM2I5OTVlZTk0ZTUzNjBiOWM2MzNhMDEzYzMwN2VjNzFj
11
+ NzNkZjJmOWI1ODFlZWE0YWFhMjJhMDUzZWUwZDhkNTljYmFlZTk=
12
12
  data.tar.gz: !binary |-
13
- YmE2ZTBlY2UyYWJhMzI5YzlhNmJhOWUxOTUxMGE2YWZkNDBkYWJlYTI5OGQ0
14
- NWJiNzNmMDQyOTNmZGU0YzAzNWRhMWViNDZiZDM0MzUwOGEwMmRkMWNmNGFj
15
- OTBhNjA2MTY2M2U3ZmUwOGNkZWU0Yzg1MzE2ZTE3NWIxNzA1YjA=
13
+ M2EwYzhjNTM0NGI1MGYzZjM4ZmNkNjI2NGE1Y2NjMjZlMWI2OGM3MTM1N2Yx
14
+ ZWZlNTczZWY4NTM2ZmM1ODM0ZmU0YTg5YzRhMGY3MTMwNTI0ZTY1ZmI3NGVj
15
+ OWM5MjM1ODY5YmI0MDhiZTEzOTNlM2NkNDQxYzM1Y2NhZWExYTY=
@@ -45,8 +45,12 @@ module Turbot
45
45
  request(:post, "/api/bots", :bot => {:bot_id => bot_id, :config => config})
46
46
  end
47
47
 
48
- def update_draft_data(bot_id, config, batch)
49
- request(:put, "/api/bots/#{bot_id}/draft_data", :config => config, :batch => batch)
48
+ def create_draft_data(bot_id, config, batch)
49
+ request(:post, "/api/bots/#{bot_id}/draft_data", :config => config, :batch => batch)
50
+ end
51
+
52
+ def destroy_draft_data(bot_id)
53
+ request(:delete, "/api/bots/#{bot_id}/draft_data")
50
54
  end
51
55
 
52
56
  def update_code(bot_id, archive)
@@ -1,3 +1,3 @@
1
1
  module Turbot
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Turbot