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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e17b764d029348ee89a00969e33b22fff71bf4cf08fb829fb5e649f20b4f291a
|
4
|
+
data.tar.gz: caaca041e0494498f9237a4a1ad9c4971d83ff2993d909eae39c242ad30406c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
35
|
-
|
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
|
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.
|
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:
|
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
|
-
|
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
|