vagrant-digitalocean 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 328599e598823dda8d867e8565396f0d16bf2fc4
4
- data.tar.gz: a188ff03c7fa33f0ae1dc8512062f59da61fab2d
2
+ SHA256:
3
+ metadata.gz: e17b764d029348ee89a00969e33b22fff71bf4cf08fb829fb5e649f20b4f291a
4
+ data.tar.gz: caaca041e0494498f9237a4a1ad9c4971d83ff2993d909eae39c242ad30406c3
5
5
  SHA512:
6
- metadata.gz: 86dde945c781282ace74f3ec4303546900a4f0b662b15151a77cb4db69cff84d87d8a72435035be62d27cd858999dceef568c34bdc57654a817ea751d9ec9902
7
- data.tar.gz: fc5c30b7134c016853e37d043e9ce79ed8b04636234a17aee8cf2d9a6c69445d7ad9096d76f39f0acbdf8ffd6747260607d3779e9d32145cd27ac4916fc3f62c
6
+ metadata.gz: 17502e2d8061a2d5f064e96a695c9bd82fedfe31d5e8f84f2dfe3125f2536d95f96738f1e20950e080d8e655ed44c9848e870c8b47cf00e06ba9d8879ae849ed
7
+ data.tar.gz: 4719fe9e123b9af8e94c18f7d78319dc61fc7278a186ff7c76eda6df075d4613578056c9fe8945b10e07d3843b9742ff3d3e73070b09f2b1217985daac5a3198
@@ -31,8 +31,10 @@ module VagrantPlugins
31
31
  end
32
32
 
33
33
  def post(path, params = {}, method = :post)
34
- @client.headers['Content-Type'] = 'application/json'
35
- request(path, params, :post)
34
+ request(path, {}, :post) do |req|
35
+ req.body = params.to_json
36
+ req.headers['Content-Type'] = 'application/json'
37
+ end
36
38
  end
37
39
 
38
40
  def request(path, params = {}, method = :get)
@@ -41,6 +43,7 @@ module VagrantPlugins
41
43
  result = @client.send(method) do |req|
42
44
  req.url path, params
43
45
  req.headers['Authorization'] = "Bearer #{@config.token}"
46
+ yield req if block_given?
44
47
  end
45
48
  rescue Faraday::Error::ConnectionFailed => e
46
49
  # TODO this is suspect but because farady wraps the exception
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DigitalOcean
3
- VERSION = '0.9.3'
3
+ VERSION = '0.9.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-digitalocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bender
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-17 00:00:00.000000000 Z
12
+ date: 2020-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -117,8 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubyforge_project:
121
- rubygems_version: 2.5.2
120
+ rubygems_version: 3.0.4
122
121
  signing_key:
123
122
  specification_version: 4
124
123
  summary: Enables Vagrant to manage DigitalOcean droplets