vultr 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/vultr/collection.rb +2 -1
- data/lib/vultr/version.rb +1 -1
- metadata +17 -183
- data/.github/workflows/ci.yml +0 -38
- data/.gitignore +0 -23
- data/.standard.yml +0 -1
- data/Appraisals +0 -8
- data/Gemfile +0 -8
- data/Rakefile +0 -14
- data/bin/console +0 -21
- data/bin/setup +0 -8
- data/bin/test +0 -6
- data/gemfiles/faraday_1.gemfile +0 -12
- data/gemfiles/faraday_1.gemfile.lock +0 -104
- data/gemfiles/faraday_2.gemfile +0 -11
- data/gemfiles/faraday_2.gemfile.lock +0 -87
- data/test/fixtures/account/info.json +0 -11
- data/test/fixtures/applications/list.json +0 -29
- data/test/fixtures/backups/list.json +0 -18
- data/test/fixtures/backups/retrieve.json +0 -9
- data/test/fixtures/bare_metals/bandwidth.json +0 -12
- data/test/fixtures/bare_metals/create.json +0 -26
- data/test/fixtures/bare_metals/list.json +0 -36
- data/test/fixtures/bare_metals/list_ipv4.json +0 -18
- data/test/fixtures/bare_metals/list_ipv6.json +0 -17
- data/test/fixtures/bare_metals/reinstall.json +0 -25
- data/test/fixtures/bare_metals/retrieve.json +0 -26
- data/test/fixtures/bare_metals/update.json +0 -26
- data/test/fixtures/bare_metals/upgrades.json +0 -47
- data/test/fixtures/bare_metals/user_data.json +0 -5
- data/test/fixtures/bare_metals/vnc.json +0 -5
- data/test/fixtures/block_storage/attach.json +0 -4
- data/test/fixtures/block_storage/create.json +0 -13
- data/test/fixtures/block_storage/detach.json +0 -4
- data/test/fixtures/block_storage/list.json +0 -22
- data/test/fixtures/block_storage/retrieve.json +0 -13
- data/test/fixtures/domains/create.json +0 -6
- data/test/fixtures/domains/dnssec.json +0 -7
- data/test/fixtures/domains/list.json +0 -15
- data/test/fixtures/domains/record.json +0 -10
- data/test/fixtures/domains/records.json +0 -19
- data/test/fixtures/domains/retrieve.json +0 -6
- data/test/fixtures/domains/soa.json +0 -6
- data/test/fixtures/firewall/create.json +0 -11
- data/test/fixtures/firewall/create_rule.json +0 -9
- data/test/fixtures/firewall/delete.json +0 -1
- data/test/fixtures/firewall/delete_rule.json +0 -1
- data/test/fixtures/firewall/list.json +0 -20
- data/test/fixtures/firewall/list_rules.json +0 -22
- data/test/fixtures/firewall/retrieve.json +0 -11
- data/test/fixtures/firewall/retrieve_rule.json +0 -13
- data/test/fixtures/firewall/update.json +0 -1
- data/test/fixtures/instances/attach_iso.json +0 -6
- data/test/fixtures/instances/attach_private_network.json +0 -1
- data/test/fixtures/instances/backup_schedule.json +0 -10
- data/test/fixtures/instances/bandwidth.json +0 -12
- data/test/fixtures/instances/create.json +0 -36
- data/test/fixtures/instances/create_ipv4_reverse.json +0 -1
- data/test/fixtures/instances/create_ipv6_reverse.json +0 -1
- data/test/fixtures/instances/delete.json +0 -1
- data/test/fixtures/instances/delete_ipv4.json +0 -1
- data/test/fixtures/instances/delete_ipv6.json +0 -1
- data/test/fixtures/instances/detach_iso.json +0 -5
- data/test/fixtures/instances/detach_private_network.json +0 -1
- data/test/fixtures/instances/halt.json +0 -1
- data/test/fixtures/instances/halt_instances.json +0 -1
- data/test/fixtures/instances/ipv4.json +0 -9
- data/test/fixtures/instances/ipv6_reverse.json +0 -15
- data/test/fixtures/instances/iso.json +0 -6
- data/test/fixtures/instances/list.json +0 -44
- data/test/fixtures/instances/list_ipv4.json +0 -32
- data/test/fixtures/instances/list_ipv6.json +0 -17
- data/test/fixtures/instances/list_private_networks.json +0 -16
- data/test/fixtures/instances/neighbors.json +0 -6
- data/test/fixtures/instances/reboot.json +0 -1
- data/test/fixtures/instances/reboot_instances.json +0 -1
- data/test/fixtures/instances/reinstall.json +0 -35
- data/test/fixtures/instances/restore.json +0 -7
- data/test/fixtures/instances/retrieve.json +0 -35
- data/test/fixtures/instances/set_backup_schedule.json +0 -1
- data/test/fixtures/instances/set_default_reverse_dns_entry.json +0 -1
- data/test/fixtures/instances/start.json +0 -1
- data/test/fixtures/instances/start_instances.json +0 -1
- data/test/fixtures/instances/update.json +0 -1
- data/test/fixtures/instances/upgrades.json +0 -55
- data/test/fixtures/instances/user_data.json +0 -5
- data/test/fixtures/isos/create.json +0 -8
- data/test/fixtures/isos/list.json +0 -20
- data/test/fixtures/isos/list_public.json +0 -17
- data/test/fixtures/isos/retrieve.json +0 -11
- data/test/fixtures/kubernetes/config.json +0 -3
- data/test/fixtures/kubernetes/create.json +0 -39
- data/test/fixtures/kubernetes/create_node_pool.json +0 -25
- data/test/fixtures/kubernetes/list.json +0 -85
- data/test/fixtures/kubernetes/list_node_pools.json +0 -56
- data/test/fixtures/kubernetes/list_resources.json +0 -26
- data/test/fixtures/kubernetes/retrieve.json +0 -39
- data/test/fixtures/kubernetes/retrieve_node_pool.json +0 -25
- data/test/fixtures/kubernetes/update_node_pool.json +0 -19
- data/test/fixtures/load_balancers/create.json +0 -48
- data/test/fixtures/load_balancers/create_forwarding_rule.json +0 -1
- data/test/fixtures/load_balancers/delete.json +0 -1
- data/test/fixtures/load_balancers/delete_forwarding_rule.json +0 -1
- data/test/fixtures/load_balancers/list.json +0 -57
- data/test/fixtures/load_balancers/list_firewall_rules.json +0 -17
- data/test/fixtures/load_balancers/list_forwarding_rules.json +0 -18
- data/test/fixtures/load_balancers/retrieve.json +0 -48
- data/test/fixtures/load_balancers/retrieve_firewall_rule.json +0 -8
- data/test/fixtures/load_balancers/retrieve_forwarding_rule.json +0 -9
- data/test/fixtures/load_balancers/update.json +0 -1
- data/test/fixtures/object_storage/create.json +0 -14
- data/test/fixtures/object_storage/delete.json +0 -1
- data/test/fixtures/object_storage/list.json +0 -22
- data/test/fixtures/object_storage/list_clusters.json +0 -17
- data/test/fixtures/object_storage/regenerate_keys.json +0 -7
- data/test/fixtures/object_storage/retrieve.json +0 -13
- data/test/fixtures/object_storage/update.json +0 -1
- data/test/fixtures/operating_systems/list.json +0 -17
- data/test/fixtures/plans/list.json +0 -22
- data/test/fixtures/plans/list_metal.json +0 -24
- data/test/fixtures/private_networks/create.json +0 -10
- data/test/fixtures/private_networks/delete.json +0 -1
- data/test/fixtures/private_networks/list.json +0 -19
- data/test/fixtures/private_networks/retrieve.json +0 -10
- data/test/fixtures/private_networks/update.json +0 -1
- data/test/fixtures/regions/list.json +0 -20
- data/test/fixtures/regions/list_availability.json +0 -24
- data/test/fixtures/reserved_ips/attach.json +0 -1
- data/test/fixtures/reserved_ips/convert.json +0 -11
- data/test/fixtures/reserved_ips/create.json +0 -11
- data/test/fixtures/reserved_ips/delete.json +0 -1
- data/test/fixtures/reserved_ips/detach.json +0 -1
- data/test/fixtures/reserved_ips/list.json +0 -29
- data/test/fixtures/reserved_ips/retrieve.json +0 -11
- data/test/fixtures/snapshots/create.json +0 -11
- data/test/fixtures/snapshots/create_from_url.json +0 -11
- data/test/fixtures/snapshots/delete.json +0 -1
- data/test/fixtures/snapshots/list.json +0 -20
- data/test/fixtures/snapshots/retrieve.json +0 -11
- data/test/fixtures/snapshots/update.json +0 -1
- data/test/fixtures/ssh_keys/create.json +0 -8
- data/test/fixtures/ssh_keys/delete.json +0 -1
- data/test/fixtures/ssh_keys/list.json +0 -17
- data/test/fixtures/ssh_keys/retrieve.json +0 -8
- data/test/fixtures/ssh_keys/update.json +0 -1
- data/test/fixtures/startup_scripts/create.json +0 -10
- data/test/fixtures/startup_scripts/delete.json +0 -1
- data/test/fixtures/startup_scripts/list.json +0 -18
- data/test/fixtures/startup_scripts/retrieve.json +0 -10
- data/test/fixtures/startup_scripts/update.json +0 -1
- data/test/fixtures/users/create.json +0 -9
- data/test/fixtures/users/delete.json +0 -1
- data/test/fixtures/users/list.json +0 -29
- data/test/fixtures/users/retrieve.json +0 -20
- data/test/fixtures/users/update.json +0 -1
- data/test/test_helper.rb +0 -19
- data/test/vultr/client_test.rb +0 -8
- data/test/vultr/object_test.rb +0 -21
- data/test/vultr/resources/account_test.rb +0 -12
- data/test/vultr/resources/applications_test.rb +0 -15
- data/test/vultr/resources/backups_test.rb +0 -24
- data/test/vultr/resources/bare_metal_test.rb +0 -267
- data/test/vultr/resources/block_storage_test.rb +0 -85
- data/test/vultr/resources/dns_test.rb +0 -134
- data/test/vultr/resources/firewall_test.rb +0 -88
- data/test/vultr/resources/instances_test.rb +0 -325
- data/test/vultr/resources/iso_test.rb +0 -58
- data/test/vultr/resources/kubernetes_test.rb +0 -185
- data/test/vultr/resources/load_balancers_test.rb +0 -110
- data/test/vultr/resources/object_storage_test.rb +0 -71
- data/test/vultr/resources/operating_systems_test.rb +0 -15
- data/test/vultr/resources/plans_test.rb +0 -25
- data/test/vultr/resources/private_networks_test.rb +0 -50
- data/test/vultr/resources/regions_test.rb +0 -26
- data/test/vultr/resources/reserved_ips_test.rb +0 -67
- data/test/vultr/resources/snapshots_test.rb +0 -60
- data/test/vultr/resources/ssh_keys_test.rb +0 -50
- data/test/vultr/resources/startup_scripts_test.rb +0 -50
- data/test/vultr/resources/users_test.rb +0 -50
- data/vultr.gemspec +0 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9609cbba7070cc71e250e9595e9b44a6ab7cb68139ff5abe9d9ccb50751a9310
|
|
4
|
+
data.tar.gz: 0ca8b5e6ef4873af6d6a48ad9eae2b62f2ee0858e44f91bf3b07c301c3bf1848
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e53fd059d2932b6a50dfb5e5d80f12aa289bfab9415a7c8a3901b1cc161e572d75e5429e2563a092a1c6e96d0377636a855aa5161af818bf56052063fc1391ed
|
|
7
|
+
data.tar.gz: e2229a47f6a1eee7165770327a30ec6e95900e5849128086a1bcf6695f695857d512c4ae9c7c4695b5469682d2b2663e79190ce32f626fc596acbbd234e4d0ab
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/vultr/collection.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module Vultr
|
|
2
2
|
class Collection
|
|
3
3
|
include Enumerable
|
|
4
|
+
|
|
4
5
|
attr_reader :data, :total, :next_cursor, :prev_cursor
|
|
5
6
|
|
|
6
7
|
def self.from_response(response, key:, type:)
|
|
@@ -20,7 +21,7 @@ module Vultr
|
|
|
20
21
|
@prev_cursor = prev_cursor.empty? ? nil : prev_cursor
|
|
21
22
|
end
|
|
22
23
|
|
|
23
|
-
def each
|
|
24
|
+
def each(&block)
|
|
24
25
|
return enum_for(:each) unless block_given?
|
|
25
26
|
@data.each(&block)
|
|
26
27
|
end
|
data/lib/vultr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vultr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gao Jiangmiao
|
|
@@ -30,33 +30,31 @@ dependencies:
|
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: '3.0'
|
|
33
|
+
- !ruby/object:Gem::Dependency
|
|
34
|
+
name: ostruct
|
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
type: :runtime
|
|
41
|
+
prerelease: false
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
33
47
|
description: 'Ruby bindings for VULTR API. VULTR APIs can be found here: https://www.vultr.com/api/'
|
|
34
48
|
email:
|
|
35
49
|
- tolbkni@gmail.com
|
|
36
50
|
- excid3@gmail.com
|
|
37
|
-
executables:
|
|
38
|
-
- console
|
|
39
|
-
- setup
|
|
40
|
-
- test
|
|
51
|
+
executables: []
|
|
41
52
|
extensions: []
|
|
42
53
|
extra_rdoc_files: []
|
|
43
54
|
files:
|
|
44
|
-
- ".github/workflows/ci.yml"
|
|
45
|
-
- ".gitignore"
|
|
46
|
-
- ".standard.yml"
|
|
47
|
-
- Appraisals
|
|
48
55
|
- CHANGELOG.md
|
|
49
|
-
- Gemfile
|
|
50
56
|
- LICENSE.txt
|
|
51
57
|
- README.md
|
|
52
|
-
- Rakefile
|
|
53
|
-
- bin/console
|
|
54
|
-
- bin/setup
|
|
55
|
-
- bin/test
|
|
56
|
-
- gemfiles/faraday_1.gemfile
|
|
57
|
-
- gemfiles/faraday_1.gemfile.lock
|
|
58
|
-
- gemfiles/faraday_2.gemfile
|
|
59
|
-
- gemfiles/faraday_2.gemfile.lock
|
|
60
58
|
- lib/vultr.rb
|
|
61
59
|
- lib/vultr/client.rb
|
|
62
60
|
- lib/vultr/collection.rb
|
|
@@ -107,170 +105,6 @@ files:
|
|
|
107
105
|
- lib/vultr/resources/startup_scripts.rb
|
|
108
106
|
- lib/vultr/resources/users.rb
|
|
109
107
|
- lib/vultr/version.rb
|
|
110
|
-
- test/fixtures/account/info.json
|
|
111
|
-
- test/fixtures/applications/list.json
|
|
112
|
-
- test/fixtures/backups/list.json
|
|
113
|
-
- test/fixtures/backups/retrieve.json
|
|
114
|
-
- test/fixtures/bare_metals/bandwidth.json
|
|
115
|
-
- test/fixtures/bare_metals/create.json
|
|
116
|
-
- test/fixtures/bare_metals/list.json
|
|
117
|
-
- test/fixtures/bare_metals/list_ipv4.json
|
|
118
|
-
- test/fixtures/bare_metals/list_ipv6.json
|
|
119
|
-
- test/fixtures/bare_metals/reinstall.json
|
|
120
|
-
- test/fixtures/bare_metals/retrieve.json
|
|
121
|
-
- test/fixtures/bare_metals/update.json
|
|
122
|
-
- test/fixtures/bare_metals/upgrades.json
|
|
123
|
-
- test/fixtures/bare_metals/user_data.json
|
|
124
|
-
- test/fixtures/bare_metals/vnc.json
|
|
125
|
-
- test/fixtures/block_storage/attach.json
|
|
126
|
-
- test/fixtures/block_storage/create.json
|
|
127
|
-
- test/fixtures/block_storage/detach.json
|
|
128
|
-
- test/fixtures/block_storage/list.json
|
|
129
|
-
- test/fixtures/block_storage/retrieve.json
|
|
130
|
-
- test/fixtures/domains/create.json
|
|
131
|
-
- test/fixtures/domains/dnssec.json
|
|
132
|
-
- test/fixtures/domains/list.json
|
|
133
|
-
- test/fixtures/domains/record.json
|
|
134
|
-
- test/fixtures/domains/records.json
|
|
135
|
-
- test/fixtures/domains/retrieve.json
|
|
136
|
-
- test/fixtures/domains/soa.json
|
|
137
|
-
- test/fixtures/firewall/create.json
|
|
138
|
-
- test/fixtures/firewall/create_rule.json
|
|
139
|
-
- test/fixtures/firewall/delete.json
|
|
140
|
-
- test/fixtures/firewall/delete_rule.json
|
|
141
|
-
- test/fixtures/firewall/list.json
|
|
142
|
-
- test/fixtures/firewall/list_rules.json
|
|
143
|
-
- test/fixtures/firewall/retrieve.json
|
|
144
|
-
- test/fixtures/firewall/retrieve_rule.json
|
|
145
|
-
- test/fixtures/firewall/update.json
|
|
146
|
-
- test/fixtures/instances/attach_iso.json
|
|
147
|
-
- test/fixtures/instances/attach_private_network.json
|
|
148
|
-
- test/fixtures/instances/backup_schedule.json
|
|
149
|
-
- test/fixtures/instances/bandwidth.json
|
|
150
|
-
- test/fixtures/instances/create.json
|
|
151
|
-
- test/fixtures/instances/create_ipv4_reverse.json
|
|
152
|
-
- test/fixtures/instances/create_ipv6_reverse.json
|
|
153
|
-
- test/fixtures/instances/delete.json
|
|
154
|
-
- test/fixtures/instances/delete_ipv4.json
|
|
155
|
-
- test/fixtures/instances/delete_ipv6.json
|
|
156
|
-
- test/fixtures/instances/detach_iso.json
|
|
157
|
-
- test/fixtures/instances/detach_private_network.json
|
|
158
|
-
- test/fixtures/instances/halt.json
|
|
159
|
-
- test/fixtures/instances/halt_instances.json
|
|
160
|
-
- test/fixtures/instances/ipv4.json
|
|
161
|
-
- test/fixtures/instances/ipv6_reverse.json
|
|
162
|
-
- test/fixtures/instances/iso.json
|
|
163
|
-
- test/fixtures/instances/list.json
|
|
164
|
-
- test/fixtures/instances/list_ipv4.json
|
|
165
|
-
- test/fixtures/instances/list_ipv6.json
|
|
166
|
-
- test/fixtures/instances/list_private_networks.json
|
|
167
|
-
- test/fixtures/instances/neighbors.json
|
|
168
|
-
- test/fixtures/instances/reboot.json
|
|
169
|
-
- test/fixtures/instances/reboot_instances.json
|
|
170
|
-
- test/fixtures/instances/reinstall.json
|
|
171
|
-
- test/fixtures/instances/restore.json
|
|
172
|
-
- test/fixtures/instances/retrieve.json
|
|
173
|
-
- test/fixtures/instances/set_backup_schedule.json
|
|
174
|
-
- test/fixtures/instances/set_default_reverse_dns_entry.json
|
|
175
|
-
- test/fixtures/instances/start.json
|
|
176
|
-
- test/fixtures/instances/start_instances.json
|
|
177
|
-
- test/fixtures/instances/update.json
|
|
178
|
-
- test/fixtures/instances/upgrades.json
|
|
179
|
-
- test/fixtures/instances/user_data.json
|
|
180
|
-
- test/fixtures/isos/create.json
|
|
181
|
-
- test/fixtures/isos/list.json
|
|
182
|
-
- test/fixtures/isos/list_public.json
|
|
183
|
-
- test/fixtures/isos/retrieve.json
|
|
184
|
-
- test/fixtures/kubernetes/config.json
|
|
185
|
-
- test/fixtures/kubernetes/create.json
|
|
186
|
-
- test/fixtures/kubernetes/create_node_pool.json
|
|
187
|
-
- test/fixtures/kubernetes/list.json
|
|
188
|
-
- test/fixtures/kubernetes/list_node_pools.json
|
|
189
|
-
- test/fixtures/kubernetes/list_resources.json
|
|
190
|
-
- test/fixtures/kubernetes/retrieve.json
|
|
191
|
-
- test/fixtures/kubernetes/retrieve_node_pool.json
|
|
192
|
-
- test/fixtures/kubernetes/update_node_pool.json
|
|
193
|
-
- test/fixtures/load_balancers/create.json
|
|
194
|
-
- test/fixtures/load_balancers/create_forwarding_rule.json
|
|
195
|
-
- test/fixtures/load_balancers/delete.json
|
|
196
|
-
- test/fixtures/load_balancers/delete_forwarding_rule.json
|
|
197
|
-
- test/fixtures/load_balancers/list.json
|
|
198
|
-
- test/fixtures/load_balancers/list_firewall_rules.json
|
|
199
|
-
- test/fixtures/load_balancers/list_forwarding_rules.json
|
|
200
|
-
- test/fixtures/load_balancers/retrieve.json
|
|
201
|
-
- test/fixtures/load_balancers/retrieve_firewall_rule.json
|
|
202
|
-
- test/fixtures/load_balancers/retrieve_forwarding_rule.json
|
|
203
|
-
- test/fixtures/load_balancers/update.json
|
|
204
|
-
- test/fixtures/object_storage/create.json
|
|
205
|
-
- test/fixtures/object_storage/delete.json
|
|
206
|
-
- test/fixtures/object_storage/list.json
|
|
207
|
-
- test/fixtures/object_storage/list_clusters.json
|
|
208
|
-
- test/fixtures/object_storage/regenerate_keys.json
|
|
209
|
-
- test/fixtures/object_storage/retrieve.json
|
|
210
|
-
- test/fixtures/object_storage/update.json
|
|
211
|
-
- test/fixtures/operating_systems/list.json
|
|
212
|
-
- test/fixtures/plans/list.json
|
|
213
|
-
- test/fixtures/plans/list_metal.json
|
|
214
|
-
- test/fixtures/private_networks/create.json
|
|
215
|
-
- test/fixtures/private_networks/delete.json
|
|
216
|
-
- test/fixtures/private_networks/list.json
|
|
217
|
-
- test/fixtures/private_networks/retrieve.json
|
|
218
|
-
- test/fixtures/private_networks/update.json
|
|
219
|
-
- test/fixtures/regions/list.json
|
|
220
|
-
- test/fixtures/regions/list_availability.json
|
|
221
|
-
- test/fixtures/reserved_ips/attach.json
|
|
222
|
-
- test/fixtures/reserved_ips/convert.json
|
|
223
|
-
- test/fixtures/reserved_ips/create.json
|
|
224
|
-
- test/fixtures/reserved_ips/delete.json
|
|
225
|
-
- test/fixtures/reserved_ips/detach.json
|
|
226
|
-
- test/fixtures/reserved_ips/list.json
|
|
227
|
-
- test/fixtures/reserved_ips/retrieve.json
|
|
228
|
-
- test/fixtures/snapshots/create.json
|
|
229
|
-
- test/fixtures/snapshots/create_from_url.json
|
|
230
|
-
- test/fixtures/snapshots/delete.json
|
|
231
|
-
- test/fixtures/snapshots/list.json
|
|
232
|
-
- test/fixtures/snapshots/retrieve.json
|
|
233
|
-
- test/fixtures/snapshots/update.json
|
|
234
|
-
- test/fixtures/ssh_keys/create.json
|
|
235
|
-
- test/fixtures/ssh_keys/delete.json
|
|
236
|
-
- test/fixtures/ssh_keys/list.json
|
|
237
|
-
- test/fixtures/ssh_keys/retrieve.json
|
|
238
|
-
- test/fixtures/ssh_keys/update.json
|
|
239
|
-
- test/fixtures/startup_scripts/create.json
|
|
240
|
-
- test/fixtures/startup_scripts/delete.json
|
|
241
|
-
- test/fixtures/startup_scripts/list.json
|
|
242
|
-
- test/fixtures/startup_scripts/retrieve.json
|
|
243
|
-
- test/fixtures/startup_scripts/update.json
|
|
244
|
-
- test/fixtures/users/create.json
|
|
245
|
-
- test/fixtures/users/delete.json
|
|
246
|
-
- test/fixtures/users/list.json
|
|
247
|
-
- test/fixtures/users/retrieve.json
|
|
248
|
-
- test/fixtures/users/update.json
|
|
249
|
-
- test/test_helper.rb
|
|
250
|
-
- test/vultr/client_test.rb
|
|
251
|
-
- test/vultr/object_test.rb
|
|
252
|
-
- test/vultr/resources/account_test.rb
|
|
253
|
-
- test/vultr/resources/applications_test.rb
|
|
254
|
-
- test/vultr/resources/backups_test.rb
|
|
255
|
-
- test/vultr/resources/bare_metal_test.rb
|
|
256
|
-
- test/vultr/resources/block_storage_test.rb
|
|
257
|
-
- test/vultr/resources/dns_test.rb
|
|
258
|
-
- test/vultr/resources/firewall_test.rb
|
|
259
|
-
- test/vultr/resources/instances_test.rb
|
|
260
|
-
- test/vultr/resources/iso_test.rb
|
|
261
|
-
- test/vultr/resources/kubernetes_test.rb
|
|
262
|
-
- test/vultr/resources/load_balancers_test.rb
|
|
263
|
-
- test/vultr/resources/object_storage_test.rb
|
|
264
|
-
- test/vultr/resources/operating_systems_test.rb
|
|
265
|
-
- test/vultr/resources/plans_test.rb
|
|
266
|
-
- test/vultr/resources/private_networks_test.rb
|
|
267
|
-
- test/vultr/resources/regions_test.rb
|
|
268
|
-
- test/vultr/resources/reserved_ips_test.rb
|
|
269
|
-
- test/vultr/resources/snapshots_test.rb
|
|
270
|
-
- test/vultr/resources/ssh_keys_test.rb
|
|
271
|
-
- test/vultr/resources/startup_scripts_test.rb
|
|
272
|
-
- test/vultr/resources/users_test.rb
|
|
273
|
-
- vultr.gemspec
|
|
274
108
|
homepage: https://github.com/tolbkni/vultr.rb
|
|
275
109
|
licenses:
|
|
276
110
|
- MIT
|
|
@@ -289,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
289
123
|
- !ruby/object:Gem::Version
|
|
290
124
|
version: '0'
|
|
291
125
|
requirements: []
|
|
292
|
-
rubygems_version:
|
|
126
|
+
rubygems_version: 4.0.18
|
|
293
127
|
specification_version: 4
|
|
294
128
|
summary: Ruby bindings for VULTR API.
|
|
295
129
|
test_files: []
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- "*"
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- master
|
|
10
|
-
jobs:
|
|
11
|
-
tests:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
strategy:
|
|
14
|
-
matrix:
|
|
15
|
-
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4"]
|
|
16
|
-
gemfile: ["faraday_1", "faraday_2"]
|
|
17
|
-
|
|
18
|
-
env:
|
|
19
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
20
|
-
BUNDLE_PATH_RELATIVE_TO_CWD: true
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@master
|
|
24
|
-
|
|
25
|
-
- name: Set up Ruby
|
|
26
|
-
uses: ruby/setup-ruby@v1
|
|
27
|
-
with:
|
|
28
|
-
ruby-version: ${{ matrix.ruby }}
|
|
29
|
-
bundler: default
|
|
30
|
-
bundler-cache: true
|
|
31
|
-
rubygems: latest
|
|
32
|
-
|
|
33
|
-
- name: StandardRb check
|
|
34
|
-
run: bundle exec standardrb
|
|
35
|
-
|
|
36
|
-
- name: Run tests
|
|
37
|
-
run: |
|
|
38
|
-
bundle exec rake test
|
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
|
data/.standard.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby_version: 3.0
|
data/Appraisals
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
require "bundler/gem_tasks"
|
|
2
|
-
require "rake/testtask"
|
|
3
|
-
|
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
|
5
|
-
t.libs << "test"
|
|
6
|
-
t.libs << "lib"
|
|
7
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
task default: :test
|
|
11
|
-
|
|
12
|
-
task :console do
|
|
13
|
-
exec "irb -I lib -r vultr.rb"
|
|
14
|
-
end
|
data/bin/console
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
require "bundler/setup"
|
|
5
|
-
require "vultr"
|
|
6
|
-
|
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
-
|
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
-
# require "pry"
|
|
12
|
-
# Pry.start
|
|
13
|
-
|
|
14
|
-
client = Vultr::Client.new(api_key: ENV["VULTR_API_KEY"])
|
|
15
|
-
|
|
16
|
-
puts
|
|
17
|
-
puts "We've created a 'client' variable as a Vultr::Client using ENV['VULTR_API_KEY'] as the API key."
|
|
18
|
-
puts
|
|
19
|
-
|
|
20
|
-
require "irb"
|
|
21
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/bin/test
DELETED
data/gemfiles/faraday_1.gemfile
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: ..
|
|
3
|
-
specs:
|
|
4
|
-
vultr (2.1.1)
|
|
5
|
-
faraday (>= 1.0, < 3.0)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
appraisal (2.5.0)
|
|
11
|
-
bundler
|
|
12
|
-
rake
|
|
13
|
-
thor (>= 0.14.0)
|
|
14
|
-
ast (2.4.3)
|
|
15
|
-
base64 (0.2.0)
|
|
16
|
-
faraday (1.10.4)
|
|
17
|
-
faraday-em_http (~> 1.0)
|
|
18
|
-
faraday-em_synchrony (~> 1.0)
|
|
19
|
-
faraday-excon (~> 1.1)
|
|
20
|
-
faraday-httpclient (~> 1.0)
|
|
21
|
-
faraday-multipart (~> 1.0)
|
|
22
|
-
faraday-net_http (~> 1.0)
|
|
23
|
-
faraday-net_http_persistent (~> 1.0)
|
|
24
|
-
faraday-patron (~> 1.0)
|
|
25
|
-
faraday-rack (~> 1.0)
|
|
26
|
-
faraday-retry (~> 1.0)
|
|
27
|
-
ruby2_keywords (>= 0.0.4)
|
|
28
|
-
faraday-em_http (1.0.0)
|
|
29
|
-
faraday-em_synchrony (1.0.0)
|
|
30
|
-
faraday-excon (1.1.0)
|
|
31
|
-
faraday-httpclient (1.0.1)
|
|
32
|
-
faraday-multipart (1.1.0)
|
|
33
|
-
multipart-post (~> 2.0)
|
|
34
|
-
faraday-net_http (1.0.2)
|
|
35
|
-
faraday-net_http_persistent (1.2.0)
|
|
36
|
-
faraday-patron (1.0.0)
|
|
37
|
-
faraday-rack (1.0.0)
|
|
38
|
-
faraday-retry (1.0.3)
|
|
39
|
-
json (2.12.0)
|
|
40
|
-
language_server-protocol (3.17.0.5)
|
|
41
|
-
lint_roller (1.1.0)
|
|
42
|
-
minitest (5.25.5)
|
|
43
|
-
multipart-post (2.4.1)
|
|
44
|
-
parallel (1.27.0)
|
|
45
|
-
parser (3.3.8.0)
|
|
46
|
-
ast (~> 2.4.1)
|
|
47
|
-
racc
|
|
48
|
-
prism (1.4.0)
|
|
49
|
-
racc (1.8.1)
|
|
50
|
-
rainbow (3.1.1)
|
|
51
|
-
rake (13.2.1)
|
|
52
|
-
regexp_parser (2.10.0)
|
|
53
|
-
rubocop (1.75.6)
|
|
54
|
-
json (~> 2.3)
|
|
55
|
-
language_server-protocol (~> 3.17.0.2)
|
|
56
|
-
lint_roller (~> 1.1.0)
|
|
57
|
-
parallel (~> 1.10)
|
|
58
|
-
parser (>= 3.3.0.2)
|
|
59
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
60
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
61
|
-
rubocop-ast (>= 1.44.0, < 2.0)
|
|
62
|
-
ruby-progressbar (~> 1.7)
|
|
63
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
64
|
-
rubocop-ast (1.44.1)
|
|
65
|
-
parser (>= 3.3.7.2)
|
|
66
|
-
prism (~> 1.4)
|
|
67
|
-
rubocop-performance (1.25.0)
|
|
68
|
-
lint_roller (~> 1.1)
|
|
69
|
-
rubocop (>= 1.75.0, < 2.0)
|
|
70
|
-
rubocop-ast (>= 1.38.0, < 2.0)
|
|
71
|
-
ruby-progressbar (1.13.0)
|
|
72
|
-
ruby2_keywords (0.0.5)
|
|
73
|
-
standard (1.50.0)
|
|
74
|
-
language_server-protocol (~> 3.17.0.2)
|
|
75
|
-
lint_roller (~> 1.0)
|
|
76
|
-
rubocop (~> 1.75.5)
|
|
77
|
-
standard-custom (~> 1.0.0)
|
|
78
|
-
standard-performance (~> 1.8)
|
|
79
|
-
standard-custom (1.0.2)
|
|
80
|
-
lint_roller (~> 1.0)
|
|
81
|
-
rubocop (~> 1.50)
|
|
82
|
-
standard-performance (1.8.0)
|
|
83
|
-
lint_roller (~> 1.1)
|
|
84
|
-
rubocop-performance (~> 1.25.0)
|
|
85
|
-
thor (1.3.2)
|
|
86
|
-
unicode-display_width (3.1.4)
|
|
87
|
-
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
88
|
-
unicode-emoji (4.0.4)
|
|
89
|
-
|
|
90
|
-
PLATFORMS
|
|
91
|
-
ruby
|
|
92
|
-
x86_64-darwin-23
|
|
93
|
-
|
|
94
|
-
DEPENDENCIES
|
|
95
|
-
appraisal
|
|
96
|
-
base64 (~> 0.2.0)
|
|
97
|
-
faraday (~> 1.10)
|
|
98
|
-
minitest (>= 5.0.5)
|
|
99
|
-
rake
|
|
100
|
-
standard
|
|
101
|
-
vultr!
|
|
102
|
-
|
|
103
|
-
BUNDLED WITH
|
|
104
|
-
2.6.9
|
data/gemfiles/faraday_2.gemfile
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: ..
|
|
3
|
-
specs:
|
|
4
|
-
vultr (2.1.1)
|
|
5
|
-
faraday (>= 1.0, < 3.0)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
appraisal (2.5.0)
|
|
11
|
-
bundler
|
|
12
|
-
rake
|
|
13
|
-
thor (>= 0.14.0)
|
|
14
|
-
ast (2.4.3)
|
|
15
|
-
faraday (2.13.1)
|
|
16
|
-
faraday-net_http (>= 2.0, < 3.5)
|
|
17
|
-
json
|
|
18
|
-
logger
|
|
19
|
-
faraday-net_http (3.4.0)
|
|
20
|
-
net-http (>= 0.5.0)
|
|
21
|
-
json (2.12.0)
|
|
22
|
-
language_server-protocol (3.17.0.5)
|
|
23
|
-
lint_roller (1.1.0)
|
|
24
|
-
logger (1.7.0)
|
|
25
|
-
minitest (5.25.5)
|
|
26
|
-
net-http (0.6.0)
|
|
27
|
-
uri
|
|
28
|
-
parallel (1.27.0)
|
|
29
|
-
parser (3.3.8.0)
|
|
30
|
-
ast (~> 2.4.1)
|
|
31
|
-
racc
|
|
32
|
-
prism (1.4.0)
|
|
33
|
-
racc (1.8.1)
|
|
34
|
-
rainbow (3.1.1)
|
|
35
|
-
rake (13.2.1)
|
|
36
|
-
regexp_parser (2.10.0)
|
|
37
|
-
rubocop (1.75.6)
|
|
38
|
-
json (~> 2.3)
|
|
39
|
-
language_server-protocol (~> 3.17.0.2)
|
|
40
|
-
lint_roller (~> 1.1.0)
|
|
41
|
-
parallel (~> 1.10)
|
|
42
|
-
parser (>= 3.3.0.2)
|
|
43
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
44
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
45
|
-
rubocop-ast (>= 1.44.0, < 2.0)
|
|
46
|
-
ruby-progressbar (~> 1.7)
|
|
47
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
48
|
-
rubocop-ast (1.44.1)
|
|
49
|
-
parser (>= 3.3.7.2)
|
|
50
|
-
prism (~> 1.4)
|
|
51
|
-
rubocop-performance (1.25.0)
|
|
52
|
-
lint_roller (~> 1.1)
|
|
53
|
-
rubocop (>= 1.75.0, < 2.0)
|
|
54
|
-
rubocop-ast (>= 1.38.0, < 2.0)
|
|
55
|
-
ruby-progressbar (1.13.0)
|
|
56
|
-
standard (1.50.0)
|
|
57
|
-
language_server-protocol (~> 3.17.0.2)
|
|
58
|
-
lint_roller (~> 1.0)
|
|
59
|
-
rubocop (~> 1.75.5)
|
|
60
|
-
standard-custom (~> 1.0.0)
|
|
61
|
-
standard-performance (~> 1.8)
|
|
62
|
-
standard-custom (1.0.2)
|
|
63
|
-
lint_roller (~> 1.0)
|
|
64
|
-
rubocop (~> 1.50)
|
|
65
|
-
standard-performance (1.8.0)
|
|
66
|
-
lint_roller (~> 1.1)
|
|
67
|
-
rubocop-performance (~> 1.25.0)
|
|
68
|
-
thor (1.3.2)
|
|
69
|
-
unicode-display_width (3.1.4)
|
|
70
|
-
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
71
|
-
unicode-emoji (4.0.4)
|
|
72
|
-
uri (1.0.3)
|
|
73
|
-
|
|
74
|
-
PLATFORMS
|
|
75
|
-
ruby
|
|
76
|
-
x86_64-darwin-23
|
|
77
|
-
|
|
78
|
-
DEPENDENCIES
|
|
79
|
-
appraisal
|
|
80
|
-
faraday (~> 2.0)
|
|
81
|
-
minitest (>= 5.0.5)
|
|
82
|
-
rake
|
|
83
|
-
standard
|
|
84
|
-
vultr!
|
|
85
|
-
|
|
86
|
-
BUNDLED WITH
|
|
87
|
-
2.6.9
|