civo 0.2.2 → 0.2.3

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: bfe6a9d7d21a9bfa15db9729a5ac94dc9ce512dd
4
- data.tar.gz: 1d06704eede289511622b01e9d5c75978dd32d89
3
+ metadata.gz: 6fdb705d39dfa6436e984982063107727e9f3a16
4
+ data.tar.gz: d04538cd67b01259e32e720f6a3b7e0e38788bb0
5
5
  SHA512:
6
- metadata.gz: 55492f3aa50950c8c967a809f231ed78824ce76cd9f762aa3b0f7c09ec6840011572add0dc705862f8a6543af570340e1923bcdb7dc2375e2d759b06ea72be70
7
- data.tar.gz: 50631249b05d21cd6b38453ea84212e65510ff730d475c53d5369dd1fff92cee7817f066e4a816f43d866f83e785844334d0d30142341dad8269d280c1bf2f2a
6
+ metadata.gz: 6b8b4873b6423559c59fad7bf2dba6b678b7a1d7154e3ea76e041cc60394b82f2bff4291024973e5b83c0f4670b952756b7c3267dda3b7a9aa90d945f03aa5fa
7
+ data.tar.gz: 33a5cc58c528e31399644e5949ca9cdd6610bc14b5817267ee40eec1c2a3640591213cff3da0e30c9b078083f5f31363b003ef6cce7ca7f5bbb7a0b2608eae9c
@@ -1,12 +1,7 @@
1
1
  module Civo
2
2
  class Ip < Base
3
- # get :for_instance, "/v1/instances/:id/ip", requires: [:id],
4
- # fake: [ { "private_ip": "10.0.0.1" }, { "private_ip": "10.0.0.1", "public_ip": "31.28.96.101" }]
5
- # post :create, "/v1/instances/:id/ip", requires: [:id],
6
- # fake: { "result": "ok" }
7
- # delete :remove, "/v1/instances/:id/ip/:ip_address", requires: [:id, :ip_address],
8
- # fake: { "result": "ok" }
9
- # put :connect, "/v1/instances/:id/ip/:ip_address", requires: [:id, :ip_address],
10
- # fake: { "result": "ok" }
3
+ post :create, "/v1/instances/:id/ip", requires: [:id], defaults: {public: true}
4
+ delete :remove, "/v1/instances/:id/ip/:ip_address", requires: [:id, :ip_address]
5
+ put :connect, "/v1/instances/:id/ip/:ip_address", requires: [:id, :ip_address, :private_ip]
11
6
  end
12
7
  end
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
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.2.2
4
+ version: 0.2.3
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-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest