civo 0.5.6 → 0.5.7
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/firewall.rb +3 -0
- 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: 57fb2b192d5d84d7191345e7cdf7852b5b4f4265
|
4
|
+
data.tar.gz: d49303008f0207f56bd0fee99b8896925c127f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d014508f7975d82393676135f16a6eb09c3eff05d4d9431211abf10dae5bf71941c9c4c57bc9bc74b38d6d6bcbfabef0dce6040e36ec6d57006b0e166d52f56e
|
7
|
+
data.tar.gz: bae6e002d56fe96d2c64035feea0647117bde061013cef49c298679629b96a9ccd6d1474992c2ad2c6b390662b17e22cb656da3554e02f531807063f24a8f0f8
|
data/app/models/civo/firewall.rb
CHANGED
@@ -3,5 +3,8 @@ module Civo
|
|
3
3
|
get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls"
|
4
4
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls", required: [:name]
|
5
5
|
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name", required: [:name]
|
6
|
+
if ENV["CIVO_API_VERSION"] == "2"
|
7
|
+
put :update, "/v2/firewalls/:id"
|
8
|
+
end
|
6
9
|
end
|
7
10
|
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.7
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|