vagrant-digitalocean 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGJlMDI2MjE0N2UzMTQwMDY5MjYzNThkNDg0OGRmOTY0NzJjNTNlOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGJlZTgwZGM2NzU1M2I3ZmQ2YTBkZmZhM2UzZTQxM2I3MDM0OWFiZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmUwMWI4ZjMyMTA3Y2U4NzE3MDk4M2M4Nzk2YTYyYjU0MzAxZjQ3MjcyZmZh
|
10
|
+
ODVlOGNlYTQ1ODUzZmIzZTI5NWFmODU4YjIwZjYzZDBiMGY3ZjVkZDY2ODAz
|
11
|
+
YzUxZmU5ZTkzMjBmNzk5NzM3MzhiY2QyNWNiMzU2MTljMjJjYzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGE0ZWEzMTA2MDgyMjQ1MmNiNzI2OTgzYjMxM2YxMjdiYWYwMzUwZmJkZTY4
|
14
|
+
YjUyZmY5ZGY1MTdmYjUxMmNmZjQ2ZDMzZGFjOTk1OTZjODI2ZTJiYzZmMzJk
|
15
|
+
NGE2ZWFhZTdmYzU3MzgwYmM1MWYwOGNiZjVlZmEzYzUxYzBlNWI=
|
@@ -57,6 +57,13 @@ module VagrantPlugins
|
|
57
57
|
begin
|
58
58
|
body = JSON.parse(result.body)
|
59
59
|
@logger.info "Response: #{body}"
|
60
|
+
next_page = body["links"]["pages"]["next"] rescue nil
|
61
|
+
unless next_page.nil?
|
62
|
+
uri = URI.parse(next_page)
|
63
|
+
next_result = self.request("#{path}?#{uri.query}")
|
64
|
+
req_target = path.split("/")[-1]
|
65
|
+
body["#{req_target}"].concat(next_result["#{req_target}"])
|
66
|
+
end
|
60
67
|
rescue JSON::ParserError => e
|
61
68
|
raise(Errors::JSONError, {
|
62
69
|
:message => e.message,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bender
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|