vultr 1.0.0 → 2.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ebb61a34678162bb7e0884bf72d3015f41c0631599406821d51756d7b810779
4
- data.tar.gz: f456cc5ade9358ea27bfa0b14a2192020517d69db788ed7487d1f58d69f2acc2
3
+ metadata.gz: 491ad74908c0899260b9d66b2d0e1869125b1bdb536d79a1b370088265f9ed61
4
+ data.tar.gz: 585b754d8991cff76fd537ac5320d5c637e42a5a7b08604fbd314ba30155416d
5
5
  SHA512:
6
- metadata.gz: e250cf98c8fd94545aec82859c149c431ffb9007076fbfe05898e0b25d4ddaff5e805c2a39563f58b992e7c273d0f4ff6ff074fbc5dc968b7b3d70e7f3bbaa73
7
- data.tar.gz: '05628e57dad09c2983a933c25ee648b684b26a88ad34c2d9d2b46131e31209d2d3b495c4273aa318fd82091e0cb3c540c7753741e65c47b5741149546e26b57f'
6
+ metadata.gz: 57f20172719a0bb774fc2579c1aa20c90380b064e6c1712fcf7317ba0426e9ea38e95848c60e3fe852faae6ee3d1f8bd1d5f8005fbc77e6c69e572c8c9034cc9
7
+ data.tar.gz: 4edb67596e8967bc22aa061dde48ad62318564a31c2c9c5eb0ab59d519cf844a5182e16f2ce00a75e1c6ac06ecec0c982cd19b7f7f7e81b3dbcacf6c801a8c0c
@@ -12,7 +12,12 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby: ["2.4", "2.5", "2.6", "2.7", "3.0"]
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
16
21
 
17
22
  steps:
18
23
  - uses: actions/checkout@master
@@ -23,6 +28,7 @@ jobs:
23
28
  ruby-version: ${{ matrix.ruby }}
24
29
  bundler: default
25
30
  bundler-cache: true
31
+ rubygems: latest
26
32
 
27
33
  - name: StandardRb check
28
34
  run: bundle exec standardrb
data/.standard.yml ADDED
@@ -0,0 +1 @@
1
+ ruby_version: 3.0
data/Appraisals ADDED
@@ -0,0 +1,8 @@
1
+ appraise "faraday-1" do
2
+ gem "faraday", "~> 1.10"
3
+ gem "base64", "~> 0.2.0"
4
+ end
5
+
6
+ appraise "faraday-2" do
7
+ gem "faraday", "~> 2.0"
8
+ end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ == 2.1.0 / 2025-5-21
2
+
3
+ * Add enumerable to Collection
4
+
5
+ == 2.0.0 / 2024-5-31
6
+
7
+ * Drop Ruby 2.7 and older support
8
+ * Add Faraday 2.0 support
9
+
1
10
  == 1.0.0
2
11
 
3
12
  * Vultr API v2 support
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
  gem "rake"
6
6
  gem "minitest", ">= 5.0.5"
7
7
  gem "standard"
8
+ gem "appraisal"
data/README.md CHANGED
@@ -8,7 +8,7 @@ The easiest and most complete rubygem for [Vultr](https://www.vultr.com). Curren
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem 'vultr'
11
+ gem 'vultr', github: "excid3/vultr.rb"
12
12
 
13
13
  And then execute:
14
14
 
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "minitest", ">= 5.0.5"
7
+ gem "standard"
8
+ gem "appraisal"
9
+ gem "faraday", "~> 1.10"
10
+ gem "base64", "~> 0.2.0"
11
+
12
+ gemspec path: "../"
@@ -0,0 +1,104 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ vultr (2.1.0)
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
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "minitest", ">= 5.0.5"
7
+ gem "standard"
8
+ gem "appraisal"
9
+ gem "faraday", "~> 2.0"
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,87 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ vultr (2.1.0)
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
data/lib/vultr/client.rb CHANGED
@@ -101,7 +101,7 @@ module Vultr
101
101
  conn.request :authorization, :Bearer, api_key
102
102
  conn.request :json
103
103
 
104
- conn.response :dates
104
+ conn.response :vultr
105
105
  conn.response :json, content_type: "application/json"
106
106
 
107
107
  conn.adapter adapter, @stubs
@@ -1,5 +1,6 @@
1
1
  module Vultr
2
2
  class Collection
3
+ include Enumerable
3
4
  attr_reader :data, :total, :next_cursor, :prev_cursor
4
5
 
5
6
  def self.from_response(response, key:, type:)
@@ -18,5 +19,10 @@ module Vultr
18
19
  @next_cursor = next_cursor.empty? ? nil : next_cursor
19
20
  @prev_cursor = prev_cursor.empty? ? nil : prev_cursor
20
21
  end
22
+
23
+ def each(&block)
24
+ @data.each(&block)
25
+ self
26
+ end
21
27
  end
22
28
  end
@@ -0,0 +1,32 @@
1
+ require "time"
2
+
3
+ module Vultr
4
+ class Middleware < Faraday::Middleware
5
+ ISO_DATE_FORMAT = /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|((\+|-)\d{2}:?\d{2}))\Z/xm
6
+
7
+ # This method will be called when the response is being processed.
8
+ # You can alter it as you like, accessing things like response_body, response_headers, and more.
9
+ # Refer to Faraday::Env for a list of accessible fields:
10
+ # https://github.com/lostisland/faraday/blob/main/lib/faraday/options/env.rb
11
+ #
12
+ # @param env [Faraday::Env] the environment of the response being processed.
13
+ def on_complete(env)
14
+ parse_dates! env[:body]
15
+ end
16
+
17
+ private
18
+
19
+ def parse_dates!(value)
20
+ case value
21
+ when Hash
22
+ value.each { |key, element| value[key] = parse_dates!(element) }
23
+ when Array
24
+ value.each_with_index { |element, index| value[index] = parse_dates!(element) }
25
+ when ISO_DATE_FORMAT
26
+ Time.parse(value)
27
+ else
28
+ value
29
+ end
30
+ end
31
+ end
32
+ end
data/lib/vultr/object.rb CHANGED
@@ -3,7 +3,7 @@ require "ostruct"
3
3
  module Vultr
4
4
  class Object < OpenStruct
5
5
  def initialize(attributes)
6
- super to_ostruct(attributes)
6
+ super(to_ostruct(attributes))
7
7
  end
8
8
 
9
9
  def to_ostruct(obj)
data/lib/vultr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vultr
2
- VERSION = "1.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
data/lib/vultr.rb CHANGED
@@ -1,11 +1,11 @@
1
- require "faraday"
2
- require "faraday_middleware"
3
1
  require "vultr/version"
2
+ require "faraday"
4
3
 
5
4
  module Vultr
6
5
  autoload :Client, "vultr/client"
7
6
  autoload :Collection, "vultr/collection"
8
7
  autoload :Error, "vultr/error"
8
+ autoload :Middleware, "vultr/middleware"
9
9
  autoload :Resource, "vultr/resource"
10
10
  autoload :Object, "vultr/object"
11
11
 
@@ -54,4 +54,6 @@ module Vultr
54
54
  autoload :SshKey, "vultr/objects/ssh_key"
55
55
  autoload :StartupScript, "vultr/objects/startup_script"
56
56
  autoload :User, "vultr/objects/user"
57
+
58
+ Faraday::Response.register_middleware vultr: Middleware
57
59
  end
data/vultr.gemspec CHANGED
@@ -7,8 +7,8 @@ require "vultr/version"
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "vultr"
9
9
  s.version = Vultr::VERSION
10
- s.authors = ["Gao Jiangmiao"]
11
- s.email = ["tolbkni@gmail.com"]
10
+ s.authors = ["Gao Jiangmiao", "Chris Oliver"]
11
+ s.email = ["tolbkni@gmail.com", "excid3@gmail.com"]
12
12
  s.summary = "Ruby bindings for VULTR API."
13
13
  s.description = "Ruby bindings for VULTR API. VULTR APIs can be found here: https://www.vultr.com/api/"
14
14
  s.homepage = "https://github.com/tolbkni/vultr.rb"
@@ -16,11 +16,9 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.files = `git ls-files -z`.split("\x0")
18
18
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
20
19
  s.require_paths = ["lib"]
21
20
 
22
- s.required_ruby_version = ">= 2.4"
21
+ s.required_ruby_version = ">= 3.0"
23
22
 
24
- s.add_dependency "faraday", "~> 1.7"
25
- s.add_dependency "faraday_middleware", "~> 1.1"
23
+ s.add_dependency "faraday", ">= 1.0", "< 3.0"
26
24
  end
metadata CHANGED
@@ -1,46 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vultr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gao Jiangmiao
8
- autorequire:
8
+ - Chris Oliver
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
19
+ version: '1.0'
20
+ - - "<"
25
21
  - !ruby/object:Gem::Version
26
- version: '1.7'
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.1'
22
+ version: '3.0'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
39
31
  - !ruby/object:Gem::Version
40
- version: '1.1'
32
+ version: '3.0'
41
33
  description: 'Ruby bindings for VULTR API. VULTR APIs can be found here: https://www.vultr.com/api/'
42
34
  email:
43
35
  - tolbkni@gmail.com
36
+ - excid3@gmail.com
44
37
  executables:
45
38
  - console
46
39
  - setup
@@ -50,7 +43,8 @@ extra_rdoc_files: []
50
43
  files:
51
44
  - ".github/workflows/ci.yml"
52
45
  - ".gitignore"
53
- - ".travis.yml"
46
+ - ".standard.yml"
47
+ - Appraisals
54
48
  - CHANGELOG.md
55
49
  - Gemfile
56
50
  - LICENSE.txt
@@ -59,10 +53,15 @@ files:
59
53
  - bin/console
60
54
  - bin/setup
61
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
62
60
  - lib/vultr.rb
63
61
  - lib/vultr/client.rb
64
62
  - lib/vultr/collection.rb
65
63
  - lib/vultr/error.rb
64
+ - lib/vultr/middleware.rb
66
65
  - lib/vultr/object.rb
67
66
  - lib/vultr/objects/account.rb
68
67
  - lib/vultr/objects/application.rb
@@ -276,7 +275,6 @@ homepage: https://github.com/tolbkni/vultr.rb
276
275
  licenses:
277
276
  - MIT
278
277
  metadata: {}
279
- post_install_message:
280
278
  rdoc_options: []
281
279
  require_paths:
282
280
  - lib
@@ -284,178 +282,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
284
282
  requirements:
285
283
  - - ">="
286
284
  - !ruby/object:Gem::Version
287
- version: '2.4'
285
+ version: '3.0'
288
286
  required_rubygems_version: !ruby/object:Gem::Requirement
289
287
  requirements:
290
288
  - - ">="
291
289
  - !ruby/object:Gem::Version
292
290
  version: '0'
293
291
  requirements: []
294
- rubygems_version: 3.2.22
295
- signing_key:
292
+ rubygems_version: 3.6.9
296
293
  specification_version: 4
297
294
  summary: Ruby bindings for VULTR API.
298
- test_files:
299
- - test/fixtures/account/info.json
300
- - test/fixtures/applications/list.json
301
- - test/fixtures/backups/list.json
302
- - test/fixtures/backups/retrieve.json
303
- - test/fixtures/bare_metals/bandwidth.json
304
- - test/fixtures/bare_metals/create.json
305
- - test/fixtures/bare_metals/list.json
306
- - test/fixtures/bare_metals/list_ipv4.json
307
- - test/fixtures/bare_metals/list_ipv6.json
308
- - test/fixtures/bare_metals/reinstall.json
309
- - test/fixtures/bare_metals/retrieve.json
310
- - test/fixtures/bare_metals/update.json
311
- - test/fixtures/bare_metals/upgrades.json
312
- - test/fixtures/bare_metals/user_data.json
313
- - test/fixtures/bare_metals/vnc.json
314
- - test/fixtures/block_storage/attach.json
315
- - test/fixtures/block_storage/create.json
316
- - test/fixtures/block_storage/detach.json
317
- - test/fixtures/block_storage/list.json
318
- - test/fixtures/block_storage/retrieve.json
319
- - test/fixtures/domains/create.json
320
- - test/fixtures/domains/dnssec.json
321
- - test/fixtures/domains/list.json
322
- - test/fixtures/domains/record.json
323
- - test/fixtures/domains/records.json
324
- - test/fixtures/domains/retrieve.json
325
- - test/fixtures/domains/soa.json
326
- - test/fixtures/firewall/create.json
327
- - test/fixtures/firewall/create_rule.json
328
- - test/fixtures/firewall/delete.json
329
- - test/fixtures/firewall/delete_rule.json
330
- - test/fixtures/firewall/list.json
331
- - test/fixtures/firewall/list_rules.json
332
- - test/fixtures/firewall/retrieve.json
333
- - test/fixtures/firewall/retrieve_rule.json
334
- - test/fixtures/firewall/update.json
335
- - test/fixtures/instances/attach_iso.json
336
- - test/fixtures/instances/attach_private_network.json
337
- - test/fixtures/instances/backup_schedule.json
338
- - test/fixtures/instances/bandwidth.json
339
- - test/fixtures/instances/create.json
340
- - test/fixtures/instances/create_ipv4_reverse.json
341
- - test/fixtures/instances/create_ipv6_reverse.json
342
- - test/fixtures/instances/delete.json
343
- - test/fixtures/instances/delete_ipv4.json
344
- - test/fixtures/instances/delete_ipv6.json
345
- - test/fixtures/instances/detach_iso.json
346
- - test/fixtures/instances/detach_private_network.json
347
- - test/fixtures/instances/halt.json
348
- - test/fixtures/instances/halt_instances.json
349
- - test/fixtures/instances/ipv4.json
350
- - test/fixtures/instances/ipv6_reverse.json
351
- - test/fixtures/instances/iso.json
352
- - test/fixtures/instances/list.json
353
- - test/fixtures/instances/list_ipv4.json
354
- - test/fixtures/instances/list_ipv6.json
355
- - test/fixtures/instances/list_private_networks.json
356
- - test/fixtures/instances/neighbors.json
357
- - test/fixtures/instances/reboot.json
358
- - test/fixtures/instances/reboot_instances.json
359
- - test/fixtures/instances/reinstall.json
360
- - test/fixtures/instances/restore.json
361
- - test/fixtures/instances/retrieve.json
362
- - test/fixtures/instances/set_backup_schedule.json
363
- - test/fixtures/instances/set_default_reverse_dns_entry.json
364
- - test/fixtures/instances/start.json
365
- - test/fixtures/instances/start_instances.json
366
- - test/fixtures/instances/update.json
367
- - test/fixtures/instances/upgrades.json
368
- - test/fixtures/instances/user_data.json
369
- - test/fixtures/isos/create.json
370
- - test/fixtures/isos/list.json
371
- - test/fixtures/isos/list_public.json
372
- - test/fixtures/isos/retrieve.json
373
- - test/fixtures/kubernetes/config.json
374
- - test/fixtures/kubernetes/create.json
375
- - test/fixtures/kubernetes/create_node_pool.json
376
- - test/fixtures/kubernetes/list.json
377
- - test/fixtures/kubernetes/list_node_pools.json
378
- - test/fixtures/kubernetes/list_resources.json
379
- - test/fixtures/kubernetes/retrieve.json
380
- - test/fixtures/kubernetes/retrieve_node_pool.json
381
- - test/fixtures/kubernetes/update_node_pool.json
382
- - test/fixtures/load_balancers/create.json
383
- - test/fixtures/load_balancers/create_forwarding_rule.json
384
- - test/fixtures/load_balancers/delete.json
385
- - test/fixtures/load_balancers/delete_forwarding_rule.json
386
- - test/fixtures/load_balancers/list.json
387
- - test/fixtures/load_balancers/list_firewall_rules.json
388
- - test/fixtures/load_balancers/list_forwarding_rules.json
389
- - test/fixtures/load_balancers/retrieve.json
390
- - test/fixtures/load_balancers/retrieve_firewall_rule.json
391
- - test/fixtures/load_balancers/retrieve_forwarding_rule.json
392
- - test/fixtures/load_balancers/update.json
393
- - test/fixtures/object_storage/create.json
394
- - test/fixtures/object_storage/delete.json
395
- - test/fixtures/object_storage/list.json
396
- - test/fixtures/object_storage/list_clusters.json
397
- - test/fixtures/object_storage/regenerate_keys.json
398
- - test/fixtures/object_storage/retrieve.json
399
- - test/fixtures/object_storage/update.json
400
- - test/fixtures/operating_systems/list.json
401
- - test/fixtures/plans/list.json
402
- - test/fixtures/plans/list_metal.json
403
- - test/fixtures/private_networks/create.json
404
- - test/fixtures/private_networks/delete.json
405
- - test/fixtures/private_networks/list.json
406
- - test/fixtures/private_networks/retrieve.json
407
- - test/fixtures/private_networks/update.json
408
- - test/fixtures/regions/list.json
409
- - test/fixtures/regions/list_availability.json
410
- - test/fixtures/reserved_ips/attach.json
411
- - test/fixtures/reserved_ips/convert.json
412
- - test/fixtures/reserved_ips/create.json
413
- - test/fixtures/reserved_ips/delete.json
414
- - test/fixtures/reserved_ips/detach.json
415
- - test/fixtures/reserved_ips/list.json
416
- - test/fixtures/reserved_ips/retrieve.json
417
- - test/fixtures/snapshots/create.json
418
- - test/fixtures/snapshots/create_from_url.json
419
- - test/fixtures/snapshots/delete.json
420
- - test/fixtures/snapshots/list.json
421
- - test/fixtures/snapshots/retrieve.json
422
- - test/fixtures/snapshots/update.json
423
- - test/fixtures/ssh_keys/create.json
424
- - test/fixtures/ssh_keys/delete.json
425
- - test/fixtures/ssh_keys/list.json
426
- - test/fixtures/ssh_keys/retrieve.json
427
- - test/fixtures/ssh_keys/update.json
428
- - test/fixtures/startup_scripts/create.json
429
- - test/fixtures/startup_scripts/delete.json
430
- - test/fixtures/startup_scripts/list.json
431
- - test/fixtures/startup_scripts/retrieve.json
432
- - test/fixtures/startup_scripts/update.json
433
- - test/fixtures/users/create.json
434
- - test/fixtures/users/delete.json
435
- - test/fixtures/users/list.json
436
- - test/fixtures/users/retrieve.json
437
- - test/fixtures/users/update.json
438
- - test/test_helper.rb
439
- - test/vultr/client_test.rb
440
- - test/vultr/object_test.rb
441
- - test/vultr/resources/account_test.rb
442
- - test/vultr/resources/applications_test.rb
443
- - test/vultr/resources/backups_test.rb
444
- - test/vultr/resources/bare_metal_test.rb
445
- - test/vultr/resources/block_storage_test.rb
446
- - test/vultr/resources/dns_test.rb
447
- - test/vultr/resources/firewall_test.rb
448
- - test/vultr/resources/instances_test.rb
449
- - test/vultr/resources/iso_test.rb
450
- - test/vultr/resources/kubernetes_test.rb
451
- - test/vultr/resources/load_balancers_test.rb
452
- - test/vultr/resources/object_storage_test.rb
453
- - test/vultr/resources/operating_systems_test.rb
454
- - test/vultr/resources/plans_test.rb
455
- - test/vultr/resources/private_networks_test.rb
456
- - test/vultr/resources/regions_test.rb
457
- - test/vultr/resources/reserved_ips_test.rb
458
- - test/vultr/resources/snapshots_test.rb
459
- - test/vultr/resources/ssh_keys_test.rb
460
- - test/vultr/resources/startup_scripts_test.rb
461
- - test/vultr/resources/users_test.rb
295
+ test_files: []
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- rvm:
5
- - 1.9.3
6
- - 2.0.0
7
- - 2.1
8
- - 2.2
9
- - 2.3
10
- - 2.4
11
- - 2.5
12
-
13
- env:
14
- matrix:
15
- - SSL=no
16
- - SSL=yes
17
- deploy:
18
- provider: rubygems
19
- api_key:
20
- secure: dtLOQS0Obgd1CyJAnX2xU0P/VWRJHUFTXY0PmnnH2y0UBkY4uMTYwGVcy1vSkT7YAK6hUUlR1cMpM4lwiw+6Da2GMX8m4uZzQCAqH7h+0q4RB0H5rVedyr6X0pNMiPyT2S2F+ZwIVevAt8oBzgR2JUBMED+b2ThzJajHdfVOxbI=
21
- gem: vultr
22
- on:
23
- tags: true
24
- repo: tolbkni/vultr.rb
25
- rvm: 2.4
26
- condition: '"$SSL" = "yes"'