digitalocean 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -0
- data/lib/digitalocean.rb +2 -1
- data/lib/digitalocean/version.rb +1 -1
- data/spec/digitalocean_spec.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -106,8 +106,10 @@ Digitalocean::Record.edit(domain_id, record_id, {record_type: record_type, data:
|
|
106
106
|
Digitalocean::Record.destroy(domain_id, record_id)
|
107
107
|
|
108
108
|
Digitalocean::Region.all
|
109
|
+
Digitalocean::Region.find(region_id)
|
109
110
|
|
110
111
|
Digitalocean::Size.all
|
112
|
+
Digitalocean::Size.find(size_id)
|
111
113
|
|
112
114
|
Digitalocean::SshKey.all
|
113
115
|
Digitalocean::SshKey.find(id)
|
data/lib/digitalocean.rb
CHANGED
@@ -24,7 +24,8 @@ module Digitalocean
|
|
24
24
|
"power_on" => "https://api.digitalocean.com/droplets/[droplet_id]/power_on/?client_id=[your_client_id]&api_key=[your_api_key]",
|
25
25
|
"snapshot" => "https://api.digitalocean.com/droplets/[droplet_id]/snapshot/?name=[snapshot_name]&client_id=[your_client_id]&api_key=[your_api_key]",
|
26
26
|
"create" => "https://api.digitalocean.com/droplets/new?client_id=[your_client_id]&api_key=[your_api_key]&name=[droplet_name]&size_id=[size_id]&image_id=[image_id]®ion_id=[region_id]&ssh_key_ids=[ssh_key_ids]&private_networking=[private_networking]&backups_enabled=[backups_enabled]", # unique case that is not copy/paste
|
27
|
-
"destroy" => "https://api.digitalocean.com/droplets/[droplet_id]/destroy/?client_id=[your_client_id]&api_key=[your_api_key]"
|
27
|
+
"destroy" => "https://api.digitalocean.com/droplets/[droplet_id]/destroy/?client_id=[your_client_id]&api_key=[your_api_key]",
|
28
|
+
"resize" => "https://api.digitalocean.com/droplets/[droplet_id]/resize/?size_id=[size_id]&client_id=[client_id]&api_key=[api_key]"
|
28
29
|
},
|
29
30
|
"Image" => {
|
30
31
|
"all" => "https://api.digitalocean.com/images/?client_id=[your_client_id]&api_key=[your_api_key]",
|
data/lib/digitalocean/version.rb
CHANGED
data/spec/digitalocean_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe Digitalocean do
|
|
12
12
|
it { subject.api_endpoint.should eq "https://api.digitalocean.com" }
|
13
13
|
it { subject.client_id.should eq "client_id_required" }
|
14
14
|
it { subject.api_key.should eq "api_key_required" }
|
15
|
-
it { subject::VERSION.should eq "1.0.
|
15
|
+
it { subject::VERSION.should eq "1.0.6" }
|
16
16
|
end
|
17
17
|
|
18
18
|
describe "setting values" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-04-
|
13
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|