civo 0.7.7 → 0.7.8

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: 4287c8b74616df8d8ec4048030b4a485ef9c219b
4
- data.tar.gz: b40e36ba7243246284c27c664472f2a0014016f3
3
+ metadata.gz: 190c7b406c77b68fce0c188909d4ccec3a6a2d90
4
+ data.tar.gz: c2ee469fbd2b09c88cd14cddd405ad2208e10ea9
5
5
  SHA512:
6
- metadata.gz: a4b89080970f439a04cf9ed9a61aa1bd2874e9e3c71f4765707e1c6819af5537b521d62a237a49cb8aec74a2ac81cb6bb3858d4c55047720468b04b528c9dbf5
7
- data.tar.gz: 60dbfdc55487ab92e72f25752cfd3b4a6c93690ab5b27af1ec7f77448ee33af9a95192c3cb6e6c900dc6f5f2fdff296f62138d2ab48a1480d3869b8d08959744
6
+ metadata.gz: 7635c49a91c00fff01d9a033037abf8fc3b4104a6580d75c2111be933bd57f501843e754b3e503b6a81e21ba039708a7859f3db2f738a4132df2ea57a953a5f2
7
+ data.tar.gz: 5c9a9728ef6a1d3d32478ea0c988ea1fb3e03139a09e82e37d29d621c2f8b755fb6aebd8f89f50db4e92729a0ab798d1401cf50ec1ba29d731c2d6a3c07c5677
@@ -4,7 +4,7 @@ module Civo
4
4
  get :high_cpu, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/high_cpu"
5
5
  get :find, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id", requires: [:id]
6
6
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances", requires: [:hostname, :size, :region],
7
- defaults: {public_ip: true, template: "ubuntu-14.04", initial_user: "civo"}, timeout: 30
7
+ defaults: {public_ip: true, template: "ubuntu-14.04", initial_user: "civo"}
8
8
  put :tags, "/v2/instances/:id/tags", requires: [:tags]
9
9
  put :rename, "/v2/instances/:id", requires: [:name]
10
10
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id", requires: [:id]
@@ -2,6 +2,9 @@ module Civo
2
2
  class Quota < Base
3
3
  get :current, "/v#{ENV["CIVO_API_VERSION"] || "1"}/quota"
4
4
  put :update, "/v#{ENV["CIVO_API_VERSION"] || "1"}/quota/:name", requires: [:name]
5
+ if ENV["CIVO_API_VERSION"] == "2"
6
+ get :all, "/v2/quotas"
7
+ end
5
8
 
6
9
  def to_partial_path
7
10
  "civo/quota"
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-04 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.5.1
122
+ rubygems_version: 2.5.2
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Civo CLI AND API