droplet_kit 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +4 -1
  3. data/lib/droplet_kit/mappings/cdn_mapping.rb +6 -0
  4. data/lib/droplet_kit/mappings/load_balancer_mapping.rb +1 -0
  5. data/lib/droplet_kit/models/cdn.rb +2 -0
  6. data/lib/droplet_kit/models/load_balancer.rb +1 -0
  7. data/lib/droplet_kit/resources/cdn_resource.rb +6 -0
  8. data/lib/droplet_kit/version.rb +1 -1
  9. metadata +4 -289
  10. data/.gitignore +0 -23
  11. data/.rspec +0 -2
  12. data/.travis.yml +0 -28
  13. data/CHANGELOG.md +0 -106
  14. data/Gemfile +0 -15
  15. data/Rakefile +0 -3
  16. data/droplet_kit.gemspec +0 -37
  17. data/spec/fixtures/account/info.json +0 -8
  18. data/spec/fixtures/actions/all.json +0 -24
  19. data/spec/fixtures/actions/find.json +0 -19
  20. data/spec/fixtures/cdns/all.json +0 -16
  21. data/spec/fixtures/cdns/create.json +0 -9
  22. data/spec/fixtures/cdns/find.json +0 -9
  23. data/spec/fixtures/cdns/update_ttl.json +0 -9
  24. data/spec/fixtures/certificates/all.json +0 -19
  25. data/spec/fixtures/certificates/find.json +0 -12
  26. data/spec/fixtures/certificates/lets_encrypt.json +0 -12
  27. data/spec/fixtures/domain_records/all.json +0 -57
  28. data/spec/fixtures/domain_records/create.json +0 -12
  29. data/spec/fixtures/domain_records/find.json +0 -12
  30. data/spec/fixtures/domain_records/update.json +0 -12
  31. data/spec/fixtures/domains/all.json +0 -12
  32. data/spec/fixtures/domains/create.json +0 -7
  33. data/spec/fixtures/domains/find.json +0 -7
  34. data/spec/fixtures/droplet_actions/change_kernel.json +0 -27
  35. data/spec/fixtures/droplet_actions/disable_backups.json +0 -27
  36. data/spec/fixtures/droplet_actions/enable_backups.json +0 -27
  37. data/spec/fixtures/droplet_actions/enable_ipv6.json +0 -27
  38. data/spec/fixtures/droplet_actions/enable_private_networking.json +0 -27
  39. data/spec/fixtures/droplet_actions/find.json +0 -19
  40. data/spec/fixtures/droplet_actions/password_reset.json +0 -27
  41. data/spec/fixtures/droplet_actions/power_cycle.json +0 -27
  42. data/spec/fixtures/droplet_actions/power_off.json +0 -27
  43. data/spec/fixtures/droplet_actions/power_on.json +0 -27
  44. data/spec/fixtures/droplet_actions/reboot.json +0 -27
  45. data/spec/fixtures/droplet_actions/rebuild.json +0 -27
  46. data/spec/fixtures/droplet_actions/rename.json +0 -27
  47. data/spec/fixtures/droplet_actions/resize.json +0 -27
  48. data/spec/fixtures/droplet_actions/restore.json +0 -27
  49. data/spec/fixtures/droplet_actions/shutdown.json +0 -27
  50. data/spec/fixtures/droplet_actions/snapshot.json +0 -27
  51. data/spec/fixtures/droplet_actions/upgrade.json +0 -27
  52. data/spec/fixtures/droplet_upgrades/all.json +0 -7
  53. data/spec/fixtures/droplets/all.json +0 -89
  54. data/spec/fixtures/droplets/all_empty.json +0 -7
  55. data/spec/fixtures/droplets/create.json +0 -84
  56. data/spec/fixtures/droplets/create_multiple.json +0 -168
  57. data/spec/fixtures/droplets/find.json +0 -84
  58. data/spec/fixtures/droplets/list_actions.json +0 -24
  59. data/spec/fixtures/droplets/list_backups.json +0 -18
  60. data/spec/fixtures/droplets/list_kernels.json +0 -17
  61. data/spec/fixtures/droplets/list_snapshots.json +0 -18
  62. data/spec/fixtures/firewalls/all.json +0 -67
  63. data/spec/fixtures/firewalls/find.json +0 -61
  64. data/spec/fixtures/floating_ip_actions/all.json +0 -41
  65. data/spec/fixtures/floating_ip_actions/assign.json +0 -27
  66. data/spec/fixtures/floating_ip_actions/find.json +0 -19
  67. data/spec/fixtures/floating_ip_actions/unassign.json +0 -27
  68. data/spec/fixtures/floating_ips/all.json +0 -186
  69. data/spec/fixtures/floating_ips/all_empty.json +0 -7
  70. data/spec/fixtures/floating_ips/create.json +0 -29
  71. data/spec/fixtures/floating_ips/create_with_droplet.json +0 -44
  72. data/spec/fixtures/floating_ips/find.json +0 -28
  73. data/spec/fixtures/image_actions/all.json +0 -36
  74. data/spec/fixtures/image_actions/convert.json +0 -27
  75. data/spec/fixtures/image_actions/find.json +0 -19
  76. data/spec/fixtures/image_actions/transfer.json +0 -27
  77. data/spec/fixtures/images/all.json +0 -31
  78. data/spec/fixtures/images/find.json +0 -16
  79. data/spec/fixtures/images/private.json +0 -31
  80. data/spec/fixtures/images/type.json +0 -31
  81. data/spec/fixtures/kubernetes/all.json +0 -70
  82. data/spec/fixtures/kubernetes/all_empty.json +0 -7
  83. data/spec/fixtures/kubernetes/cluster_node_pool.json +0 -24
  84. data/spec/fixtures/kubernetes/cluster_node_pool_create.json +0 -40
  85. data/spec/fixtures/kubernetes/cluster_node_pool_update.json +0 -31
  86. data/spec/fixtures/kubernetes/cluster_node_pools.json +0 -33
  87. data/spec/fixtures/kubernetes/clusters/create.json +0 -65
  88. data/spec/fixtures/kubernetes/clusters/find.json +0 -65
  89. data/spec/fixtures/kubernetes/clusters/kubeconfig.txt +0 -20
  90. data/spec/fixtures/kubernetes/clusters/update.json +0 -63
  91. data/spec/fixtures/kubernetes/options.json +0 -150
  92. data/spec/fixtures/load_balancers/all.json +0 -129
  93. data/spec/fixtures/load_balancers/find.json +0 -59
  94. data/spec/fixtures/projects/all.json +0 -37
  95. data/spec/fixtures/projects/all_empty.json +0 -12
  96. data/spec/fixtures/projects/find.json +0 -14
  97. data/spec/fixtures/projects/resources.json +0 -84
  98. data/spec/fixtures/regions/all.json +0 -47
  99. data/spec/fixtures/sizes/all.json +0 -37
  100. data/spec/fixtures/snapshots/all.json +0 -32
  101. data/spec/fixtures/snapshots/find.json +0 -14
  102. data/spec/fixtures/snapshots/resource_type.json +0 -20
  103. data/spec/fixtures/ssh_keys/all.json +0 -13
  104. data/spec/fixtures/ssh_keys/create.json +0 -8
  105. data/spec/fixtures/ssh_keys/find.json +0 -8
  106. data/spec/fixtures/ssh_keys/update.json +0 -8
  107. data/spec/fixtures/tags/all.json +0 -34
  108. data/spec/fixtures/tags/all_empty.json +0 -7
  109. data/spec/fixtures/tags/create.json +0 -15
  110. data/spec/fixtures/tags/find.json +0 -99
  111. data/spec/fixtures/volume_actions/all.json +0 -41
  112. data/spec/fixtures/volume_actions/attach.json +0 -34
  113. data/spec/fixtures/volume_actions/detach.json +0 -34
  114. data/spec/fixtures/volume_actions/find.json +0 -34
  115. data/spec/fixtures/volume_actions/resize.json +0 -34
  116. data/spec/fixtures/volumes/all.json +0 -41
  117. data/spec/fixtures/volumes/create.json +0 -34
  118. data/spec/fixtures/volumes/create_snapshot.json +0 -14
  119. data/spec/fixtures/volumes/find.json +0 -34
  120. data/spec/lib/droplet_kit/client_spec.rb +0 -102
  121. data/spec/lib/droplet_kit/models/base_model_spec.rb +0 -21
  122. data/spec/lib/droplet_kit/models/droplet_spec.rb +0 -32
  123. data/spec/lib/droplet_kit/paginated_resource_spec.rb +0 -85
  124. data/spec/lib/droplet_kit/resources/account_resource_spec.rb +0 -30
  125. data/spec/lib/droplet_kit/resources/action_resource_spec.rb +0 -83
  126. data/spec/lib/droplet_kit/resources/cdn_resource_spec.rb +0 -124
  127. data/spec/lib/droplet_kit/resources/certificate_resource_spec.rb +0 -119
  128. data/spec/lib/droplet_kit/resources/domain_record_resource_spec.rb +0 -99
  129. data/spec/lib/droplet_kit/resources/domain_resource_spec.rb +0 -65
  130. data/spec/lib/droplet_kit/resources/droplet_action_resource_spec.rb +0 -223
  131. data/spec/lib/droplet_kit/resources/droplet_resource_spec.rb +0 -340
  132. data/spec/lib/droplet_kit/resources/droplet_upgrade_resource_spec.rb +0 -22
  133. data/spec/lib/droplet_kit/resources/firewall_resource_spec.rb +0 -265
  134. data/spec/lib/droplet_kit/resources/floating_ip_action_resource_spec.rb +0 -137
  135. data/spec/lib/droplet_kit/resources/floating_ip_resource_spec.rb +0 -91
  136. data/spec/lib/droplet_kit/resources/image_action_resource_spec.rb +0 -149
  137. data/spec/lib/droplet_kit/resources/image_resource_spec.rb +0 -93
  138. data/spec/lib/droplet_kit/resources/kubernetes_cluster_resource_spec.rb +0 -313
  139. data/spec/lib/droplet_kit/resources/kubernetes_options_resource_spec.rb +0 -33
  140. data/spec/lib/droplet_kit/resources/load_balancer_resource_spec.rb +0 -213
  141. data/spec/lib/droplet_kit/resources/project_resource_spec.rb +0 -126
  142. data/spec/lib/droplet_kit/resources/region_resource_spec.rb +0 -27
  143. data/spec/lib/droplet_kit/resources/size_resource_spec.rb +0 -27
  144. data/spec/lib/droplet_kit/resources/snapshot_resource_spec.rb +0 -61
  145. data/spec/lib/droplet_kit/resources/ssh_key_resource_spec.rb +0 -92
  146. data/spec/lib/droplet_kit/resources/tag_resource_spec.rb +0 -135
  147. data/spec/lib/droplet_kit/resources/volume_action_resource_spec.rb +0 -157
  148. data/spec/lib/droplet_kit/resources/volume_resource_spec.rb +0 -124
  149. data/spec/spec_helper.rb +0 -19
  150. data/spec/support/fake_server.rb +0 -4
  151. data/spec/support/request_stub_helpers.rb +0 -28
  152. data/spec/support/resource_context.rb +0 -4
  153. data/spec/support/shared_examples/common_errors.rb +0 -27
  154. data/spec/support/shared_examples/paginated_endpoint.rb +0 -16
  155. data/spec/support/shared_examples/unprocessable_entity.rb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: e0cf3b3acb6383c2bb59033a01b8d3d14e14c4387db6f921ba0d06530d0d5a13
4
- data.tar.gz: b9c37f5787739cb2f6256ac3d4654bda66c4ca34179152c9243aa327079e7083
2
+ SHA1:
3
+ metadata.gz: 4bfa73dd6ddba0fb42c9fd89ddabce2b63a20d7e
4
+ data.tar.gz: e97cc7bb89fe01f388cfbf9b552183e463928587
5
5
  SHA512:
6
- metadata.gz: 2d69f2d18487aa8f742f3fe7973367dc183976ca0ffdf7853fc4577f572e09ebaa8e880ca4231214517cefb48d98f6a2f4fd914974aa75c47935c7718b6a4c41
7
- data.tar.gz: 992888c5e18630c67ed28e584e81775e65c4787aacfad5bcce037cc681c6a5ce69c5dc526e282e8d51257750409acc731adc71d8c68001fa7e5799c433f5a3d6
6
+ metadata.gz: 530a5cbc085611dac82e4a6d3a9ed7137711f0e2a8efb22a9f53f09eac0b67b40ccd28f0eb404405b082f7b3a69839cb0b32705099250b8eb158c0c47edf4025
7
+ data.tar.gz: 86729ee95ca5a9ed6a1363ee889628432bbd1ae15b4b3c7b2c82b03d263f4d6ab5ec49dff2e8f3e81657d757bb5b9a3e97bc6e8568647366f2bb7b6d78aa80e3
data/README.md CHANGED
@@ -95,7 +95,9 @@ client = DropletKit::Client.new(access_token: 'TOKEN')
95
95
  client.cdns #=> DropletKit::CertificateResource
96
96
  cdn = DropletKit::CDN.new(
97
97
  origin: 'myspace.nyc3.digitaloceanspaces.com',
98
- ttl: 1800
98
+ ttl: 1800,
99
+ custom_domain: 'www.myacme.xyz',
100
+ certificate_id: 'a6689b98-2bb9-40be-8638-fb8426aabd26'
99
101
  )
100
102
  ```
101
103
 
@@ -105,6 +107,7 @@ Actions supported:
105
107
  * `client.cdns.all()`
106
108
  * `client.cdns.create(cdn)`
107
109
  * `client.cdns.update_ttl(id: 'id', ttl: 3600)`
110
+ * `client.cdns.update_custom_domain(id: 'id', custom_domain: 'www.myacme.xyz', certificate_id: 'a6689b98-2bb9-40be-8638-fb8426aabd26')`
108
111
  * `client.cdns.flush_cache(id: 'id', files: ['*', 'path/to/css/*'])`
109
112
  * `client.cdns.delete(id: 'id')`
110
113
 
@@ -9,6 +9,8 @@ module DropletKit
9
9
  scoped :read do
10
10
  property :id
11
11
  property :ttl
12
+ property :custom_domain
13
+ property :certificate_id
12
14
  property :origin
13
15
  property :endpoint
14
16
  property :created_at
@@ -17,10 +19,14 @@ module DropletKit
17
19
  scoped :create do
18
20
  property :origin
19
21
  property :ttl
22
+ property :custom_domain
23
+ property :certificate_id
20
24
  end
21
25
 
22
26
  scoped :update do
23
27
  property :ttl
28
+ property :custom_domain
29
+ property :certificate_id
24
30
  end
25
31
 
26
32
  scoped :delete_cache do
@@ -19,6 +19,7 @@ module DropletKit
19
19
  property :algorithm
20
20
  property :tag
21
21
  property :redirect_http_to_https
22
+ property :enable_proxy_protocol
22
23
  property :droplet_ids
23
24
  property :sticky_sessions, include: StickySessionMapping
24
25
  property :health_check, include: HealthCheckMapping
@@ -5,5 +5,7 @@ module DropletKit
5
5
  attribute :origin
6
6
  attribute :endpoint
7
7
  attribute :created_at
8
+ attribute :custom_domain
9
+ attribute :certificate_id
8
10
  end
9
11
  end
@@ -9,6 +9,7 @@ module DropletKit
9
9
  attribute :tag
10
10
  attribute :region
11
11
  attribute :redirect_http_to_https
12
+ attribute :enable_proxy_protocol
12
13
  attribute :droplet_ids
13
14
  attribute :sticky_sessions
14
15
  attribute :health_check
@@ -24,6 +24,12 @@ module DropletKit
24
24
  handler(422) { |response| ErrorMapping.fail_with(FailedUpdate, response.body) }
25
25
  end
26
26
 
27
+ action :update_custom_domain, 'PUT /v2/cdn/endpoints/:id' do
28
+ body { |hash| { custom_domain: hash[:custom_domain].to_s, certificate_id: hash[:certificate_id].to_s }.to_json }
29
+ handler(200) { |response| CDNMapping.extract_single(response.body, :read) }
30
+ handler(409, 412, 422) { |response| ErrorMapping.fail_with(FailedUpdate, response.body) }
31
+ end
32
+
27
33
  action :flush_cache, 'DELETE /v2/cdn/endpoints/:id/cache' do
28
34
  body { |hash| { files: hash[:files] }.to_json }
29
35
  handler(204) { |_| true }
@@ -1,3 +1,3 @@
1
1
  module DropletKit
2
- VERSION = "2.8.0"
2
+ VERSION = "2.9.0"
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: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Ross
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -177,15 +177,8 @@ executables: []
177
177
  extensions: []
178
178
  extra_rdoc_files: []
179
179
  files:
180
- - ".gitignore"
181
- - ".rspec"
182
- - ".travis.yml"
183
- - CHANGELOG.md
184
- - Gemfile
185
180
  - LICENSE.txt
186
181
  - README.md
187
- - Rakefile
188
- - droplet_kit.gemspec
189
182
  - lib/droplet_kit.rb
190
183
  - lib/droplet_kit/client.rb
191
184
  - lib/droplet_kit/error_handling_resourcable.rb
@@ -297,145 +290,6 @@ files:
297
290
  - lib/droplet_kit/resources/volume_resource.rb
298
291
  - lib/droplet_kit/version.rb
299
292
  - lib/tasks/resource_doc.rake
300
- - spec/fixtures/account/info.json
301
- - spec/fixtures/actions/all.json
302
- - spec/fixtures/actions/find.json
303
- - spec/fixtures/cdns/all.json
304
- - spec/fixtures/cdns/create.json
305
- - spec/fixtures/cdns/find.json
306
- - spec/fixtures/cdns/update_ttl.json
307
- - spec/fixtures/certificates/all.json
308
- - spec/fixtures/certificates/find.json
309
- - spec/fixtures/certificates/lets_encrypt.json
310
- - spec/fixtures/domain_records/all.json
311
- - spec/fixtures/domain_records/create.json
312
- - spec/fixtures/domain_records/find.json
313
- - spec/fixtures/domain_records/update.json
314
- - spec/fixtures/domains/all.json
315
- - spec/fixtures/domains/create.json
316
- - spec/fixtures/domains/find.json
317
- - spec/fixtures/droplet_actions/change_kernel.json
318
- - spec/fixtures/droplet_actions/disable_backups.json
319
- - spec/fixtures/droplet_actions/enable_backups.json
320
- - spec/fixtures/droplet_actions/enable_ipv6.json
321
- - spec/fixtures/droplet_actions/enable_private_networking.json
322
- - spec/fixtures/droplet_actions/find.json
323
- - spec/fixtures/droplet_actions/password_reset.json
324
- - spec/fixtures/droplet_actions/power_cycle.json
325
- - spec/fixtures/droplet_actions/power_off.json
326
- - spec/fixtures/droplet_actions/power_on.json
327
- - spec/fixtures/droplet_actions/reboot.json
328
- - spec/fixtures/droplet_actions/rebuild.json
329
- - spec/fixtures/droplet_actions/rename.json
330
- - spec/fixtures/droplet_actions/resize.json
331
- - spec/fixtures/droplet_actions/restore.json
332
- - spec/fixtures/droplet_actions/shutdown.json
333
- - spec/fixtures/droplet_actions/snapshot.json
334
- - spec/fixtures/droplet_actions/upgrade.json
335
- - spec/fixtures/droplet_upgrades/all.json
336
- - spec/fixtures/droplets/all.json
337
- - spec/fixtures/droplets/all_empty.json
338
- - spec/fixtures/droplets/create.json
339
- - spec/fixtures/droplets/create_multiple.json
340
- - spec/fixtures/droplets/find.json
341
- - spec/fixtures/droplets/list_actions.json
342
- - spec/fixtures/droplets/list_backups.json
343
- - spec/fixtures/droplets/list_kernels.json
344
- - spec/fixtures/droplets/list_snapshots.json
345
- - spec/fixtures/firewalls/all.json
346
- - spec/fixtures/firewalls/find.json
347
- - spec/fixtures/floating_ip_actions/all.json
348
- - spec/fixtures/floating_ip_actions/assign.json
349
- - spec/fixtures/floating_ip_actions/find.json
350
- - spec/fixtures/floating_ip_actions/unassign.json
351
- - spec/fixtures/floating_ips/all.json
352
- - spec/fixtures/floating_ips/all_empty.json
353
- - spec/fixtures/floating_ips/create.json
354
- - spec/fixtures/floating_ips/create_with_droplet.json
355
- - spec/fixtures/floating_ips/find.json
356
- - spec/fixtures/image_actions/all.json
357
- - spec/fixtures/image_actions/convert.json
358
- - spec/fixtures/image_actions/find.json
359
- - spec/fixtures/image_actions/transfer.json
360
- - spec/fixtures/images/all.json
361
- - spec/fixtures/images/find.json
362
- - spec/fixtures/images/private.json
363
- - spec/fixtures/images/type.json
364
- - spec/fixtures/kubernetes/all.json
365
- - spec/fixtures/kubernetes/all_empty.json
366
- - spec/fixtures/kubernetes/cluster_node_pool.json
367
- - spec/fixtures/kubernetes/cluster_node_pool_create.json
368
- - spec/fixtures/kubernetes/cluster_node_pool_update.json
369
- - spec/fixtures/kubernetes/cluster_node_pools.json
370
- - spec/fixtures/kubernetes/clusters/create.json
371
- - spec/fixtures/kubernetes/clusters/find.json
372
- - spec/fixtures/kubernetes/clusters/kubeconfig.txt
373
- - spec/fixtures/kubernetes/clusters/update.json
374
- - spec/fixtures/kubernetes/options.json
375
- - spec/fixtures/load_balancers/all.json
376
- - spec/fixtures/load_balancers/find.json
377
- - spec/fixtures/projects/all.json
378
- - spec/fixtures/projects/all_empty.json
379
- - spec/fixtures/projects/find.json
380
- - spec/fixtures/projects/resources.json
381
- - spec/fixtures/regions/all.json
382
- - spec/fixtures/sizes/all.json
383
- - spec/fixtures/snapshots/all.json
384
- - spec/fixtures/snapshots/find.json
385
- - spec/fixtures/snapshots/resource_type.json
386
- - spec/fixtures/ssh_keys/all.json
387
- - spec/fixtures/ssh_keys/create.json
388
- - spec/fixtures/ssh_keys/find.json
389
- - spec/fixtures/ssh_keys/update.json
390
- - spec/fixtures/tags/all.json
391
- - spec/fixtures/tags/all_empty.json
392
- - spec/fixtures/tags/create.json
393
- - spec/fixtures/tags/find.json
394
- - spec/fixtures/volume_actions/all.json
395
- - spec/fixtures/volume_actions/attach.json
396
- - spec/fixtures/volume_actions/detach.json
397
- - spec/fixtures/volume_actions/find.json
398
- - spec/fixtures/volume_actions/resize.json
399
- - spec/fixtures/volumes/all.json
400
- - spec/fixtures/volumes/create.json
401
- - spec/fixtures/volumes/create_snapshot.json
402
- - spec/fixtures/volumes/find.json
403
- - spec/lib/droplet_kit/client_spec.rb
404
- - spec/lib/droplet_kit/models/base_model_spec.rb
405
- - spec/lib/droplet_kit/models/droplet_spec.rb
406
- - spec/lib/droplet_kit/paginated_resource_spec.rb
407
- - spec/lib/droplet_kit/resources/account_resource_spec.rb
408
- - spec/lib/droplet_kit/resources/action_resource_spec.rb
409
- - spec/lib/droplet_kit/resources/cdn_resource_spec.rb
410
- - spec/lib/droplet_kit/resources/certificate_resource_spec.rb
411
- - spec/lib/droplet_kit/resources/domain_record_resource_spec.rb
412
- - spec/lib/droplet_kit/resources/domain_resource_spec.rb
413
- - spec/lib/droplet_kit/resources/droplet_action_resource_spec.rb
414
- - spec/lib/droplet_kit/resources/droplet_resource_spec.rb
415
- - spec/lib/droplet_kit/resources/droplet_upgrade_resource_spec.rb
416
- - spec/lib/droplet_kit/resources/firewall_resource_spec.rb
417
- - spec/lib/droplet_kit/resources/floating_ip_action_resource_spec.rb
418
- - spec/lib/droplet_kit/resources/floating_ip_resource_spec.rb
419
- - spec/lib/droplet_kit/resources/image_action_resource_spec.rb
420
- - spec/lib/droplet_kit/resources/image_resource_spec.rb
421
- - spec/lib/droplet_kit/resources/kubernetes_cluster_resource_spec.rb
422
- - spec/lib/droplet_kit/resources/kubernetes_options_resource_spec.rb
423
- - spec/lib/droplet_kit/resources/load_balancer_resource_spec.rb
424
- - spec/lib/droplet_kit/resources/project_resource_spec.rb
425
- - spec/lib/droplet_kit/resources/region_resource_spec.rb
426
- - spec/lib/droplet_kit/resources/size_resource_spec.rb
427
- - spec/lib/droplet_kit/resources/snapshot_resource_spec.rb
428
- - spec/lib/droplet_kit/resources/ssh_key_resource_spec.rb
429
- - spec/lib/droplet_kit/resources/tag_resource_spec.rb
430
- - spec/lib/droplet_kit/resources/volume_action_resource_spec.rb
431
- - spec/lib/droplet_kit/resources/volume_resource_spec.rb
432
- - spec/spec_helper.rb
433
- - spec/support/fake_server.rb
434
- - spec/support/request_stub_helpers.rb
435
- - spec/support/resource_context.rb
436
- - spec/support/shared_examples/common_errors.rb
437
- - spec/support/shared_examples/paginated_endpoint.rb
438
- - spec/support/shared_examples/unprocessable_entity.rb
439
293
  homepage: https://github.com/digitalocean/droplet_kit
440
294
  licenses:
441
295
  - MIT
@@ -456,147 +310,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
456
310
  version: '0'
457
311
  requirements: []
458
312
  rubyforge_project:
459
- rubygems_version: 2.7.6
313
+ rubygems_version: 2.6.8
460
314
  signing_key:
461
315
  specification_version: 4
462
316
  summary: Droplet Kit is the official Ruby library for DigitalOcean's API
463
- test_files:
464
- - spec/fixtures/account/info.json
465
- - spec/fixtures/actions/all.json
466
- - spec/fixtures/actions/find.json
467
- - spec/fixtures/cdns/all.json
468
- - spec/fixtures/cdns/create.json
469
- - spec/fixtures/cdns/find.json
470
- - spec/fixtures/cdns/update_ttl.json
471
- - spec/fixtures/certificates/all.json
472
- - spec/fixtures/certificates/find.json
473
- - spec/fixtures/certificates/lets_encrypt.json
474
- - spec/fixtures/domain_records/all.json
475
- - spec/fixtures/domain_records/create.json
476
- - spec/fixtures/domain_records/find.json
477
- - spec/fixtures/domain_records/update.json
478
- - spec/fixtures/domains/all.json
479
- - spec/fixtures/domains/create.json
480
- - spec/fixtures/domains/find.json
481
- - spec/fixtures/droplet_actions/change_kernel.json
482
- - spec/fixtures/droplet_actions/disable_backups.json
483
- - spec/fixtures/droplet_actions/enable_backups.json
484
- - spec/fixtures/droplet_actions/enable_ipv6.json
485
- - spec/fixtures/droplet_actions/enable_private_networking.json
486
- - spec/fixtures/droplet_actions/find.json
487
- - spec/fixtures/droplet_actions/password_reset.json
488
- - spec/fixtures/droplet_actions/power_cycle.json
489
- - spec/fixtures/droplet_actions/power_off.json
490
- - spec/fixtures/droplet_actions/power_on.json
491
- - spec/fixtures/droplet_actions/reboot.json
492
- - spec/fixtures/droplet_actions/rebuild.json
493
- - spec/fixtures/droplet_actions/rename.json
494
- - spec/fixtures/droplet_actions/resize.json
495
- - spec/fixtures/droplet_actions/restore.json
496
- - spec/fixtures/droplet_actions/shutdown.json
497
- - spec/fixtures/droplet_actions/snapshot.json
498
- - spec/fixtures/droplet_actions/upgrade.json
499
- - spec/fixtures/droplet_upgrades/all.json
500
- - spec/fixtures/droplets/all.json
501
- - spec/fixtures/droplets/all_empty.json
502
- - spec/fixtures/droplets/create.json
503
- - spec/fixtures/droplets/create_multiple.json
504
- - spec/fixtures/droplets/find.json
505
- - spec/fixtures/droplets/list_actions.json
506
- - spec/fixtures/droplets/list_backups.json
507
- - spec/fixtures/droplets/list_kernels.json
508
- - spec/fixtures/droplets/list_snapshots.json
509
- - spec/fixtures/firewalls/all.json
510
- - spec/fixtures/firewalls/find.json
511
- - spec/fixtures/floating_ip_actions/all.json
512
- - spec/fixtures/floating_ip_actions/assign.json
513
- - spec/fixtures/floating_ip_actions/find.json
514
- - spec/fixtures/floating_ip_actions/unassign.json
515
- - spec/fixtures/floating_ips/all.json
516
- - spec/fixtures/floating_ips/all_empty.json
517
- - spec/fixtures/floating_ips/create.json
518
- - spec/fixtures/floating_ips/create_with_droplet.json
519
- - spec/fixtures/floating_ips/find.json
520
- - spec/fixtures/image_actions/all.json
521
- - spec/fixtures/image_actions/convert.json
522
- - spec/fixtures/image_actions/find.json
523
- - spec/fixtures/image_actions/transfer.json
524
- - spec/fixtures/images/all.json
525
- - spec/fixtures/images/find.json
526
- - spec/fixtures/images/private.json
527
- - spec/fixtures/images/type.json
528
- - spec/fixtures/kubernetes/all.json
529
- - spec/fixtures/kubernetes/all_empty.json
530
- - spec/fixtures/kubernetes/cluster_node_pool.json
531
- - spec/fixtures/kubernetes/cluster_node_pool_create.json
532
- - spec/fixtures/kubernetes/cluster_node_pool_update.json
533
- - spec/fixtures/kubernetes/cluster_node_pools.json
534
- - spec/fixtures/kubernetes/clusters/create.json
535
- - spec/fixtures/kubernetes/clusters/find.json
536
- - spec/fixtures/kubernetes/clusters/kubeconfig.txt
537
- - spec/fixtures/kubernetes/clusters/update.json
538
- - spec/fixtures/kubernetes/options.json
539
- - spec/fixtures/load_balancers/all.json
540
- - spec/fixtures/load_balancers/find.json
541
- - spec/fixtures/projects/all.json
542
- - spec/fixtures/projects/all_empty.json
543
- - spec/fixtures/projects/find.json
544
- - spec/fixtures/projects/resources.json
545
- - spec/fixtures/regions/all.json
546
- - spec/fixtures/sizes/all.json
547
- - spec/fixtures/snapshots/all.json
548
- - spec/fixtures/snapshots/find.json
549
- - spec/fixtures/snapshots/resource_type.json
550
- - spec/fixtures/ssh_keys/all.json
551
- - spec/fixtures/ssh_keys/create.json
552
- - spec/fixtures/ssh_keys/find.json
553
- - spec/fixtures/ssh_keys/update.json
554
- - spec/fixtures/tags/all.json
555
- - spec/fixtures/tags/all_empty.json
556
- - spec/fixtures/tags/create.json
557
- - spec/fixtures/tags/find.json
558
- - spec/fixtures/volume_actions/all.json
559
- - spec/fixtures/volume_actions/attach.json
560
- - spec/fixtures/volume_actions/detach.json
561
- - spec/fixtures/volume_actions/find.json
562
- - spec/fixtures/volume_actions/resize.json
563
- - spec/fixtures/volumes/all.json
564
- - spec/fixtures/volumes/create.json
565
- - spec/fixtures/volumes/create_snapshot.json
566
- - spec/fixtures/volumes/find.json
567
- - spec/lib/droplet_kit/client_spec.rb
568
- - spec/lib/droplet_kit/models/base_model_spec.rb
569
- - spec/lib/droplet_kit/models/droplet_spec.rb
570
- - spec/lib/droplet_kit/paginated_resource_spec.rb
571
- - spec/lib/droplet_kit/resources/account_resource_spec.rb
572
- - spec/lib/droplet_kit/resources/action_resource_spec.rb
573
- - spec/lib/droplet_kit/resources/cdn_resource_spec.rb
574
- - spec/lib/droplet_kit/resources/certificate_resource_spec.rb
575
- - spec/lib/droplet_kit/resources/domain_record_resource_spec.rb
576
- - spec/lib/droplet_kit/resources/domain_resource_spec.rb
577
- - spec/lib/droplet_kit/resources/droplet_action_resource_spec.rb
578
- - spec/lib/droplet_kit/resources/droplet_resource_spec.rb
579
- - spec/lib/droplet_kit/resources/droplet_upgrade_resource_spec.rb
580
- - spec/lib/droplet_kit/resources/firewall_resource_spec.rb
581
- - spec/lib/droplet_kit/resources/floating_ip_action_resource_spec.rb
582
- - spec/lib/droplet_kit/resources/floating_ip_resource_spec.rb
583
- - spec/lib/droplet_kit/resources/image_action_resource_spec.rb
584
- - spec/lib/droplet_kit/resources/image_resource_spec.rb
585
- - spec/lib/droplet_kit/resources/kubernetes_cluster_resource_spec.rb
586
- - spec/lib/droplet_kit/resources/kubernetes_options_resource_spec.rb
587
- - spec/lib/droplet_kit/resources/load_balancer_resource_spec.rb
588
- - spec/lib/droplet_kit/resources/project_resource_spec.rb
589
- - spec/lib/droplet_kit/resources/region_resource_spec.rb
590
- - spec/lib/droplet_kit/resources/size_resource_spec.rb
591
- - spec/lib/droplet_kit/resources/snapshot_resource_spec.rb
592
- - spec/lib/droplet_kit/resources/ssh_key_resource_spec.rb
593
- - spec/lib/droplet_kit/resources/tag_resource_spec.rb
594
- - spec/lib/droplet_kit/resources/volume_action_resource_spec.rb
595
- - spec/lib/droplet_kit/resources/volume_resource_spec.rb
596
- - spec/spec_helper.rb
597
- - spec/support/fake_server.rb
598
- - spec/support/request_stub_helpers.rb
599
- - spec/support/resource_context.rb
600
- - spec/support/shared_examples/common_errors.rb
601
- - spec/support/shared_examples/paginated_endpoint.rb
602
- - spec/support/shared_examples/unprocessable_entity.rb
317
+ test_files: []
data/.gitignore DELETED
@@ -1,23 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- *.bundle
19
- *.so
20
- *.o
21
- *.a
22
- mkmf.log
23
- vendor