droplet_kit 3.8.0 → 3.8.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caa76a1ccea55362aad9aa3534b752aeeadb594585c9fa1142929e8cf5185272
|
4
|
+
data.tar.gz: d0ff54091ac4d9eb6ca2c974ecc752393a4ec50496acc49b9baece5b77d7b2b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1519d7ca818603442b24b71c5d599c27c3c965733064fb03cd9e2313b76d635f66ee3bfbad9f7b64f9b0faa60f09e1e0003e983528cfd99af66b20b3667436c8
|
7
|
+
data.tar.gz: 0e221aa8ee46304d20a65c7b033492d852a5e5cb2df21e8421491afa206736fb4458411973ec5c0f5c4dcfc5c3009b7e8c313435abc971e116d407b61c91ca7e
|
@@ -34,6 +34,7 @@ module DropletKit
|
|
34
34
|
end
|
35
35
|
|
36
36
|
action :list_resources, 'GET /v2/projects/:id/resources' do
|
37
|
+
query_keys :per_page, :page
|
37
38
|
handler(200) { |response| ProjectAssignmentMapping.extract_collection(response.body, :read) }
|
38
39
|
end
|
39
40
|
|
@@ -61,5 +62,9 @@ module DropletKit
|
|
61
62
|
def all(*args)
|
62
63
|
PaginatedResource.new(action(:all), self, *args)
|
63
64
|
end
|
65
|
+
|
66
|
+
def list_resources(*args)
|
67
|
+
PaginatedResource.new(action(:list_resources), self, *args)
|
68
|
+
end
|
64
69
|
end
|
65
70
|
end
|
@@ -19,7 +19,7 @@ module DropletKit
|
|
19
19
|
|
20
20
|
action :create, 'POST /v2/vpcs' do
|
21
21
|
body { |vpc| VPCMapping.representation_for(:create, vpc) }
|
22
|
-
handler(
|
22
|
+
handler(201) { |response| VPCMapping.extract_single(response.body, :read) }
|
23
23
|
handler(422) { |response| ErrorMapping.fail_with(FailedCreate, response.body) }
|
24
24
|
end
|
25
25
|
|
data/lib/droplet_kit/version.rb
CHANGED
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: 3.8.
|
4
|
+
version: 3.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DigitalOcean API Engineering team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|
@@ -138,7 +138,7 @@ dependencies:
|
|
138
138
|
version: 3.8.0
|
139
139
|
description: Droplet Kit is the official Ruby library for DigitalOcean's API
|
140
140
|
email:
|
141
|
-
-
|
141
|
+
- api-engineering@digitalocean.com
|
142
142
|
executables: []
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
318
|
- !ruby/object:Gem::Version
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
|
-
rubygems_version: 3.
|
321
|
+
rubygems_version: 3.0.8
|
322
322
|
signing_key:
|
323
323
|
specification_version: 4
|
324
324
|
summary: Droplet Kit is the official Ruby library for DigitalOcean's API
|