droplet_kit 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/droplet_kit/mappings/droplet_mapping.rb +1 -0
- data/lib/droplet_kit/version.rb +1 -1
- data/spec/fixtures/droplets/create.json +2 -1
- data/spec/fixtures/droplets/create_multiple.json +8 -0
- data/spec/lib/droplet_kit/resources/droplet_resource_spec.rb +6 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62abc974f3667b61cb9e9586ea73f408d8921674
|
4
|
+
data.tar.gz: 49265e741c8b097ec93dd0f498e7fd268d12adbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47de64509760e6cbf3f78ded12d503d8cb2636182535d8fbf77bbcc4fd0b9a3a01ca4355b944aaee20e97d63bdca29bffd4fc67e3dc370f8e7f36ab5344e477d
|
7
|
+
data.tar.gz: f3c3461af6d3750234302eba87d47c6b470cd46c17a6b15cdb86038defef9234ac50d1945b723f0e4667da231153fc8f73ac49b5cd70ee96a9421890067c3f64
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
### Version 2.0.1
|
2
|
+
* Droplet create action now accepts `tags` attribute.
|
3
|
+
|
1
4
|
### Version 2.0.0
|
2
5
|
* Several duplicate classes have been deprecated and combined:
|
3
6
|
* Replace duplicate Backup model/mapping with Image.
|
@@ -56,4 +59,4 @@
|
|
56
59
|
|
57
60
|
### August 8, 2014 (Initial Release)
|
58
61
|
|
59
|
-
* Initial Release
|
62
|
+
* Initial Release
|
data/lib/droplet_kit/version.rb
CHANGED
@@ -122,7 +122,8 @@ RSpec.describe DropletKit::DropletResource do
|
|
122
122
|
backups: true,
|
123
123
|
ipv6: true,
|
124
124
|
private_networking: true,
|
125
|
-
user_data: "#cloud-config\nruncmd\n\t- echo 'Hello!'"
|
125
|
+
user_data: "#cloud-config\nruncmd\n\t- echo 'Hello!'",
|
126
|
+
tags: ['one', 'two']
|
126
127
|
)
|
127
128
|
|
128
129
|
as_hash = DropletKit::DropletMapping.hash_for(:create, droplet)
|
@@ -135,6 +136,7 @@ RSpec.describe DropletKit::DropletResource do
|
|
135
136
|
expect(as_hash['ipv6']).to eq(droplet.ipv6)
|
136
137
|
expect(as_hash['private_networking']).to eq(droplet.private_networking)
|
137
138
|
expect(as_hash['user_data']).to eq(droplet.user_data)
|
139
|
+
expect(as_hash['tags']).to eq(droplet.tags)
|
138
140
|
|
139
141
|
as_string = DropletKit::DropletMapping.representation_for(:create, droplet)
|
140
142
|
stub_do_api(path, :post).with(body: as_string).to_return(body: api_fixture('droplets/create'), status: 202)
|
@@ -177,7 +179,8 @@ RSpec.describe DropletKit::DropletResource do
|
|
177
179
|
backups: true,
|
178
180
|
ipv6: true,
|
179
181
|
private_networking: true,
|
180
|
-
user_data: "#cloud-config\nruncmd\n\t- echo 'Hello!'"
|
182
|
+
user_data: "#cloud-config\nruncmd\n\t- echo 'Hello!'",
|
183
|
+
tags: ['one', 'two']
|
181
184
|
)
|
182
185
|
|
183
186
|
as_hash = DropletKit::DropletMapping.hash_for(:create, droplet)
|
@@ -190,6 +193,7 @@ RSpec.describe DropletKit::DropletResource do
|
|
190
193
|
expect(as_hash['ipv6']).to eq(droplet.ipv6)
|
191
194
|
expect(as_hash['private_networking']).to eq(droplet.private_networking)
|
192
195
|
expect(as_hash['user_data']).to eq(droplet.user_data)
|
196
|
+
expect(as_hash['tags']).to eq(droplet.tags)
|
193
197
|
|
194
198
|
as_string = DropletKit::DropletMapping.representation_for(:create, droplet)
|
195
199
|
stub_do_api(path, :post).with(body: as_string).to_return(body: api_fixture('droplets/create_multiple'), status: 202)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: droplet_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Ross
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|
@@ -378,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
378
378
|
version: '0'
|
379
379
|
requirements: []
|
380
380
|
rubyforge_project:
|
381
|
-
rubygems_version: 2.
|
381
|
+
rubygems_version: 2.5.1
|
382
382
|
signing_key:
|
383
383
|
specification_version: 4
|
384
384
|
summary: Droplet Kit is the official Ruby library for DigitalOcean's API
|