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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03dcba690c63223939582769ffe69abcfa1c56ac
4
- data.tar.gz: ae895f01786428f1643659da6dbc94299e69c284
3
+ metadata.gz: 62abc974f3667b61cb9e9586ea73f408d8921674
4
+ data.tar.gz: 49265e741c8b097ec93dd0f498e7fd268d12adbf
5
5
  SHA512:
6
- metadata.gz: da75b47a74c59c5e56a198e487e587f5dab664365893fe9d94fbbcba7157323a9776dabb217d158e5039f7dd93eb1a55bc757a5bd22fd95bc66faebca26f1fb8
7
- data.tar.gz: ab33f8e593bc48c5c52c40e916dd3266998080fb49dcaf5f55ecd9b99cd74ff4a8404e076bdd79974c88cec43e744f97d25b8ebd081f970adea9477c4ace7690
6
+ metadata.gz: 47de64509760e6cbf3f78ded12d503d8cb2636182535d8fbf77bbcc4fd0b9a3a01ca4355b944aaee20e97d63bdca29bffd4fc67e3dc370f8e7f36ab5344e477d
7
+ data.tar.gz: f3c3461af6d3750234302eba87d47c6b470cd46c17a6b15cdb86038defef9234ac50d1945b723f0e4667da231153fc8f73ac49b5cd70ee96a9421890067c3f64
@@ -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
@@ -38,6 +38,7 @@ module DropletKit
38
38
  property :ipv6, scopes: [:create]
39
39
  property :user_data, scopes: [:create]
40
40
  property :private_networking, scopes: [:create]
41
+ property :tags, scopes: [:create]
41
42
  end
42
43
  end
43
44
  end
@@ -1,3 +1,3 @@
1
1
  module DropletKit
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -77,7 +77,8 @@
77
77
 
78
78
  ],
79
79
  "tags": [
80
-
80
+ "one",
81
+ "two"
81
82
  ]
82
83
  }
83
84
  }
@@ -76,6 +76,10 @@
76
76
  ],
77
77
  "action_ids": [
78
78
 
79
+ ],
80
+ "tags": [
81
+ "one",
82
+ "two"
79
83
  ]
80
84
  },
81
85
  {
@@ -154,6 +158,10 @@
154
158
  ],
155
159
  "action_ids": [
156
160
 
161
+ ],
162
+ "tags": [
163
+ "one",
164
+ "two"
157
165
  ]
158
166
  }
159
167
  ]
@@ -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.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-10-27 00:00:00.000000000 Z
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.4.8
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