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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67fab12c648e8b72af4c13359035d1ce300eb227
4
- data.tar.gz: 9d835141eca1e8ff98947c9d6c4744426a756e7b
3
+ metadata.gz: 72b6ae144f706ddaefc5a5d39544e917b96aad98
4
+ data.tar.gz: fda4790fb5f2caa80e700370570415551fb764fd
5
5
  SHA512:
6
- metadata.gz: 4ae8229e141456360a37cb8ce347a8d6ed31e466fdd7782fce3f833baafc9842ed1743f2355b2957755b20447608856641ca90cedea2ce9be7571ee2027da56e
7
- data.tar.gz: 9071820b6009c698989096159fe172cccf109e7203e510fb333b69896a8a0a073eb393ee571d4ee3cbac28e7a1382aaef018ac35b8fd29ba0fe79285349f40c1
6
+ metadata.gz: c9b29c30a201440bab5b5a13329eafbd9cd1f494b2502e491fcf8b80712fd5f0d992c352ee445b661d05339a80d51274e6e71decb5bc8d0e5b75ff6334fce41f
7
+ data.tar.gz: b95015b0db9beb1cdbd6f2f62ef3a709d7ca8114fe4dc10a2f83aebb147704965ca2be8a84d8c9e0104f61ca70d5e6fdfbc17fa268d136b526bdd146aceef35b
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.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.7.4
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-10 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest