civo 0.7.5 → 0.7.6

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: 72b6ae144f706ddaefc5a5d39544e917b96aad98
4
- data.tar.gz: fda4790fb5f2caa80e700370570415551fb764fd
3
+ metadata.gz: ec54c3a1ad98314cff7ab3adae4edda709ba6def
4
+ data.tar.gz: 94e1bf30c7820ea0adf757dc1fafeb347f43ad22
5
5
  SHA512:
6
- metadata.gz: c9b29c30a201440bab5b5a13329eafbd9cd1f494b2502e491fcf8b80712fd5f0d992c352ee445b661d05339a80d51274e6e71decb5bc8d0e5b75ff6334fce41f
7
- data.tar.gz: b95015b0db9beb1cdbd6f2f62ef3a709d7ca8114fe4dc10a2f83aebb147704965ca2be8a84d8c9e0104f61ca70d5e6fdfbc17fa268d136b526bdd146aceef35b
6
+ metadata.gz: 476f43d6f04058bdc851298c5a160682df7bbb9a1d87551479f1308cd9cf0e89b8900aa12063c00b32acb3e1bc4dce15da7a85e984b3d1596513843a39df99e0
7
+ data.tar.gz: fbbdcc6332fba6ad3eb9d0cf654603f70faaf9863e89c6fe06fad41a03fbfe06fff2d90fb1df253b829798d0956418ea31bd10473ecc2d25c67c836e430c77b6
@@ -15,7 +15,11 @@ module Civo
15
15
  put :start, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/start", requires: [:id]
16
16
  put :upgrade, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/resize", requires: [:size, :id]
17
17
  put :restore, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/restore", requires: [:snapshot, :id]
18
- put :firewall, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/firewall", requires: [:name, :id]
18
+ if ENV["CIVO_API_VERSION"] == "2"
19
+ put :firewall, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/firewall", requires: [:firewall_id, :id]
20
+ else
21
+ put :firewall, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/firewall", requires: [:name, :id]
22
+ end
19
23
 
20
24
  def nice_ip_addresses
21
25
  @ip_addresses ||= (self._attributes[:ip_addresses].items rescue []).map do |ip|
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
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.5
4
+ version: 0.7.6
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-30 00:00:00.000000000 Z
11
+ date: 2016-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest