civo 0.7.4 → 0.7.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/firewall.rb +3 -1
- 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: 72b6ae144f706ddaefc5a5d39544e917b96aad98
|
4
|
+
data.tar.gz: fda4790fb5f2caa80e700370570415551fb764fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9b29c30a201440bab5b5a13329eafbd9cd1f494b2502e491fcf8b80712fd5f0d992c352ee445b661d05339a80d51274e6e71decb5bc8d0e5b75ff6334fce41f
|
7
|
+
data.tar.gz: b95015b0db9beb1cdbd6f2f62ef3a709d7ca8114fe4dc10a2f83aebb147704965ca2be8a84d8c9e0104f61ca70d5e6fdfbc17fa268d136b526bdd146aceef35b
|
data/app/models/civo/firewall.rb
CHANGED
@@ -2,9 +2,11 @@ module Civo
|
|
2
2
|
class Firewall < Base
|
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
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name", required: [:name]
|
6
5
|
if ENV["CIVO_API_VERSION"] == "2"
|
7
6
|
put :update, "/v2/firewalls/:id"
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:id", required: [:id]
|
8
|
+
else
|
9
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name", required: [:name]
|
8
10
|
end
|
9
11
|
|
10
12
|
def to_partial_path
|
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.7.
|
4
|
+
version: 0.7.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-11-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|