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 +4 -4
- data/app/models/civo/network.rb +11 -4
- data/lib/civo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91706b0a429a1a67895c306943e5f4277a680c90
|
4
|
+
data.tar.gz: 4302f84df51bc03b7f159ecde7afe891ee90fa71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcb2115c4d6be3677089b204257e8391fc61ae1ddbb34c5b140f2dc3a8847b6e653299a23432d90bca657620312dbdf7ce6bc4788a867af689194e967264d54a
|
7
|
+
data.tar.gz: 230e120891e548cfcaa2edb397ae388491f6ed9e22cc11ebb97ff8bf6b40a722063ea051c6c5bd8b7127783e13df26252e68dfa918cf2ba2e0359a569a2e3203
|
data/app/models/civo/network.rb
CHANGED
@@ -1,8 +1,15 @@
|
|
1
1
|
module Civo
|
2
2
|
class Network < Base
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
data/lib/civo/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|