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
- MTM5ODYzZWQ3ODUwZDI1OWViOWFjOTE4MWRkZWVkODI4M2JkN2U3Zg==
4
+ MGJlMDI2MjE0N2UzMTQwMDY5MjYzNThkNDg0OGRmOTY0NzJjNTNlOA==
5
5
  data.tar.gz: !binary |-
6
- YTdhZTU1MzVhODUyNjVlNTc0NmJmOTI1YzJhYTkwMjllYTY0YjlkNQ==
6
+ OGJlZTgwZGM2NzU1M2I3ZmQ2YTBkZmZhM2UzZTQxM2I3MDM0OWFiZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDNkYmE1OTQ2NTkwYzhhYWI5MmM1N2U1ZGJhNTgyZjQ1NDc4YWE1YTIzMmMw
10
- N2M1OGNmZjllZDQzMmY1NzE3MGIxZTE0OGQ5NGI2NTU3NTJkNTA2MzdhMTg3
11
- MTIyMjg0MTAxZWI1MWQxNzFmYzM5YzIwNzU1MWE4ZjA5NjMyMjk=
9
+ NmUwMWI4ZjMyMTA3Y2U4NzE3MDk4M2M4Nzk2YTYyYjU0MzAxZjQ3MjcyZmZh
10
+ ODVlOGNlYTQ1ODUzZmIzZTI5NWFmODU4YjIwZjYzZDBiMGY3ZjVkZDY2ODAz
11
+ YzUxZmU5ZTkzMjBmNzk5NzM3MzhiY2QyNWNiMzU2MTljMjJjYzU=
12
12
  data.tar.gz: !binary |-
13
- ZWQwN2VkZjUwNmQ2OTA2ZDljNzk3YTRjNjM1Y2I5YjAxMzI2ZDc2MmM5YWMx
14
- MTYzMGQ0M2FkZjVlNjJiOWViNmU5ZDk2YzRiNmUwOGVjNzJmZmJlMjg4YmI1
15
- Njk4YTU1NWFlNzhkZmE2ZmU0YTA3MTUzMmVlZWFlMjk4NmJkMzM=
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,
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DigitalOcean
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.1'
4
4
  end
5
5
  end
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2014-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday