civo 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84f3f83b11509ce4f575106a29f199aa4f4532e3
4
- data.tar.gz: eeaaffbc9728682419a9c125bb25784e53981936
3
+ metadata.gz: 1bfee663f893dba11af828a193ad700ae727f57c
4
+ data.tar.gz: 7331f1e592c2a71568ef0492d4b4c8147fa1b67d
5
5
  SHA512:
6
- metadata.gz: 94d2735f206bf3525f01c03fa0d5a62024fa5a7a9cc8c6a2e69808b979962a01ade6f4ecfbb5d7d6a75b4690757539e9328e8fec69f1b746f785e1eae16621d8
7
- data.tar.gz: 850214d1d23779e6a03117bb5f756a4d135c5e7da64aa4d2c844deb26a6295ccf9774453bce914b9f4a18dbea211c5447bed020aace3a18aa18ffc9fcdd3e237
6
+ metadata.gz: 58f43b2d9e8d00a498b134a91dffd4e38a142e921744b92596f13b355a18545c8d9949139401cecdb513a9e4550ca2ee595fc119dfb528f15e326539e10e1ba5
7
+ data.tar.gz: db93fffa1c577bda53f856f2dc524827ee365913d056cd654ce104e1c5f30265af82c7488e57dd485e50a7cf1008038ac856b042bce2f90e8c861158409b54d3
@@ -6,7 +6,7 @@ module Civo
6
6
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts", requires: [:name]
7
7
  put :reset, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts/:id", requires: [:id]
8
8
  put :save, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts"
9
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts/:id", requires: [:id]
9
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts/:id", requires: [:id], send_delete_body: true
10
10
 
11
11
  def to_partial_path
12
12
  "civo/account"
@@ -3,7 +3,7 @@ module Civo
3
3
  get :all, "/v2/dns"
4
4
  post :create, "/v2/dns", required: [:name]
5
5
  put :update, "/v2/dns/:id"
6
- delete :remove, "/v2/dns/:id", required: [:id]
6
+ delete :remove, "/v2/dns/:id", required: [:id], send_delete_body: true
7
7
 
8
8
  def to_partial_path
9
9
  "civo/dns_domain"
@@ -3,7 +3,7 @@ module Civo
3
3
  get :all, "/v2/dns/:domain_id/records"
4
4
  post :create, "/v2/dns/:domain_id/records", required: [:name, :value, :type]
5
5
  put :update, "/v2/dns/:domain_id/records/:id", required: [:name, :value, :type]
6
- delete :remove, "/v2/dns/:domain_id/records/:id", required: [:id]
6
+ delete :remove, "/v2/dns/:domain_id/records/:id", required: [:id], send_delete_body: true
7
7
 
8
8
  def to_partial_path
9
9
  "civo/dns_domain"
@@ -4,9 +4,9 @@ module Civo
4
4
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls", required: [:name]
5
5
  if ENV["CIVO_API_VERSION"] == "2"
6
6
  put :update, "/v2/firewalls/:id"
7
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:id", required: [:id]
7
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:id", required: [:id], send_delete_body: true
8
8
  else
9
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name", required: [:name]
9
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name", required: [:name], send_delete_body: true
10
10
  end
11
11
 
12
12
  def to_partial_path
@@ -4,12 +4,12 @@ module Civo
4
4
  get :all, "/v2/firewalls/:firewall_id/rules", required: [:firewall_id]
5
5
  post :create, "/v2/firewalls/:firewall_id/rules", required: [:firewall_id, :protocol, :start_port,
6
6
  :cidr, :direction]
7
- delete :remove, "/v2/firewalls/:firewall_id/rules/:id", required: [:firewall_id, :id]
7
+ delete :remove, "/v2/firewalls/:firewall_id/rules/:id", required: [:firewall_id, :id], send_delete_body: true
8
8
  else
9
9
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name/rules", required: [:name]
10
10
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name/rules", required: [:name, :protocol, :start_port,
11
11
  :cidr, :direction]
12
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name/rules/:id", required: [:name, :id]
12
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name/rules/:id", required: [:name, :id], send_delete_body: true
13
13
  end
14
14
 
15
15
  def to_partial_path
@@ -7,7 +7,7 @@ module Civo
7
7
  defaults: {public_ip: true, template: "ubuntu-14.04", initial_user: "civo"}
8
8
  put :tags, "/v2/instances/:id/tags"
9
9
  put :update, "/v2/instances/:id", requires: [:name]
10
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id", requires: [:id]
10
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id", requires: [:id], send_delete_body: true
11
11
  post :reboot, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/reboots", requires: [:id]
12
12
  post :hard_reboot, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/hard_reboots", requires: [:id]
13
13
  post :soft_reboot, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/soft_reboots", requires: [:id]
@@ -1,7 +1,7 @@
1
1
  module Civo
2
2
  class Ip < Base
3
3
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/ip", requires: [:id], defaults: {public: true}
4
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address]
4
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address], send_delete_body: true
5
5
  put :connect, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address, :private_ip]
6
6
 
7
7
  def to_partial_path
@@ -4,12 +4,12 @@ module Civo
4
4
  get :all, "/v2/networks"
5
5
  post :create, "/v2/networks", required: [:label]
6
6
  put :update, "/v2/networks/:id"
7
- delete :remove, "/v2/networks/:id", required: [:id]
7
+ delete :remove, "/v2/networks/:id", required: [:id], send_delete_body: true
8
8
  else
9
9
  get :all, "/v1/networks"
10
10
  post :create, "/v1/networks", required: [:name]
11
11
  put :update, "/v1/networks/:name", required: [:name]
12
- delete :remove, "/v1/networks/:name", required: [:name]
12
+ delete :remove, "/v1/networks/:name", required: [:name], send_delete_body: true
13
13
  end
14
14
 
15
15
  def to_partial_path
@@ -3,7 +3,7 @@ module Civo
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots"
4
4
  get :find, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots/:name", required: [:name]
5
5
  put :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots/:name", required: [:name, :instance_id]
6
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots/:name", required: [:name]
6
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots/:name", required: [:name], send_delete_body: true
7
7
 
8
8
  def to_partial_path
9
9
  "civo/snapshot"
@@ -2,7 +2,7 @@ module Civo
2
2
  class SshKey < Base
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys"
4
4
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys", requires: [:name, :public_key]
5
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys/:id", requires: [:id]
5
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys/:id", requires: [:id], send_delete_body: true
6
6
  put :update, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys/:id", requires: [:id, :name]
7
7
 
8
8
  def to_partial_path
@@ -3,14 +3,14 @@ module Civo
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams"
4
4
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams"
5
5
  put :update, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id", requires: %i{id}
6
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id", requires: %i{id}
6
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id", requires: %i{id}, send_delete_body: true
7
7
 
8
8
  get :my_memberships, "/v#{ENV["CIVO_API_VERSION"] || "1"}/team_memberships"
9
9
  post :member_invite, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships/:user_id", requires: %i{id user_id email_address}
10
10
  put :member_status, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships/:user_id", requires: %i{id user_id status}
11
11
  get :members, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships", requires: %i{id}
12
12
  post :permissions, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships", requires: %i{email_address permissions}
13
- delete :member_remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships/:user_id", requires: %i{id user_id}
13
+ delete :member_remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships/:user_id", requires: %i{id user_id}, send_delete_body: true
14
14
 
15
15
  def to_partial_path
16
16
  "civo/team"
@@ -4,7 +4,7 @@ module Civo
4
4
  get :details, "/v#{ENV["CIVO_API_VERSION"] || "1"}/templates/:id"
5
5
  put :save, "/v#{ENV["CIVO_API_VERSION"] || "1"}/templates/:id"
6
6
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/templates", required: [:name, :image_id]
7
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/templates/:id"
7
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/templates/:id", send_delete_body: true
8
8
  end
9
9
 
10
10
  def to_partial_path
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.2
19
+ version: 1.4.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.2
26
+ version: 1.4.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: toml
29
29
  requirement: !ruby/object:Gem::Requirement