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: 3d6e481a1878309fc130d5fa904ce8ec992bc9cc10c99c6c52b8647bc23fce4f
4
- data.tar.gz: 45e46c149acff5b329ee56ad2d4febd0ee07d5d7832b0745e160aeb2c62047a5
3
+ metadata.gz: caa76a1ccea55362aad9aa3534b752aeeadb594585c9fa1142929e8cf5185272
4
+ data.tar.gz: d0ff54091ac4d9eb6ca2c974ecc752393a4ec50496acc49b9baece5b77d7b2b8
5
5
  SHA512:
6
- metadata.gz: 217a89c5af353e8a91e3fcaaf6a0f42e9e60dc939c9d94a8841ee34faef5f5051c3a506dfab974de2258cd6d6a8d41b8c3f4c02373c81a2a746c71926cd6d1f4
7
- data.tar.gz: 9bbc06f0bea6cfd49d3a580cee07daa1e430eaaa7a33b6a161e2761e39ecf6298835032e64b8fc38669619325723faddfe2bfcd2557721b16bcfb4cdfb5adbfe
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(202) { |response| VPCMapping.extract_single(response.body, :read) }
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
 
@@ -1,3 +1,3 @@
1
1
  module DropletKit
2
- VERSION = "3.8.0"
2
+ VERSION = "3.8.1"
3
3
  end
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.0
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-05-19 00:00:00.000000000 Z
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
- - devex-api-engineering@digitalocean.com
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.1.2
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