civo 0.5.4 → 0.5.5

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: 7bda41f0e5e4082c66318de73b173596a30dddba
4
- data.tar.gz: ba5070e9bbd3a6bd1d4b89113b197628191916ec
3
+ metadata.gz: 91706b0a429a1a67895c306943e5f4277a680c90
4
+ data.tar.gz: 4302f84df51bc03b7f159ecde7afe891ee90fa71
5
5
  SHA512:
6
- metadata.gz: 98dba69dbf395384a4281a19ca27d8a0459da8f9234f8bc846d47cae842c546398446614f2e87189eab3b2b821891dcbbcd2ffdd605e244863da3f45540ca6fd
7
- data.tar.gz: 05d73a92610b047ff54a92bb6ef7f13a1025ed7194867801da1d5a5418847b5e8d22d1d80609932071d9f5de3b886c521f0519d277631ebb289a97841a6036cd
6
+ metadata.gz: dcb2115c4d6be3677089b204257e8391fc61ae1ddbb34c5b140f2dc3a8847b6e653299a23432d90bca657620312dbdf7ce6bc4788a867af689194e967264d54a
7
+ data.tar.gz: 230e120891e548cfcaa2edb397ae388491f6ed9e22cc11ebb97ff8bf6b40a722063ea051c6c5bd8b7127783e13df26252e68dfa918cf2ba2e0359a569a2e3203
@@ -1,8 +1,15 @@
1
1
  module Civo
2
2
  class Network < Base
3
- get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks"
4
- post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks", required: [:name]
5
- put :update, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks/:name", required: [:name]
6
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks/:name", required: [:name]
3
+ if ENV["CIVO_API_VERSION"] == "2"
4
+ get :all, "/v2/networks"
5
+ post :create, "/v2/networks", required: [:label]
6
+ put :update, "/v2/networks/:id", required: [:id]
7
+ delete :remove, "/v2/networks/:id", required: [:id]
8
+ else
9
+ get :all, "/v1/networks"
10
+ post :create, "/v1/networks", required: [:name]
11
+ put :update, "/v1/networks/:name", required: [:name]
12
+ delete :remove, "/v1/networks/:name", required: [:name]
13
+ end
7
14
  end
8
15
  end
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
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.5.4
4
+ version: 0.5.5
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-06-15 00:00:00.000000000 Z
11
+ date: 2016-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest