vagrant_cloud 1.0.0 → 1.1.0

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
2
  SHA1:
3
- metadata.gz: b5581b6d36f0881d0f7e1819d13560501a4ef515
4
- data.tar.gz: 56cb932912f66e70de76287494ac3ee958cd2d32
3
+ metadata.gz: d6540c7adaf6171dba9ebfc84c6e7318668bf162
4
+ data.tar.gz: 0d1670e8ab10effb005977fbad33a093098bf56d
5
5
  SHA512:
6
- metadata.gz: 3fceed657c9d522b4269cccebd62a9ed06c38151fce5ab141c8fb406dfb08e894d272555677f89462d90c108e1cc87ff9b57a916fea76c4ed42a508368809822
7
- data.tar.gz: 8338ac2ca249edf3be1ecf126b0a3b21d23e5081d79e4e333e6cc0e701e188f3eb54976025bfb1593f1e234999aeb12cff962c33cb9813589a08ea5efc6d1224
6
+ metadata.gz: fdac04b8abf7afda5bd6346aff9d1501adc381fb7e2b92b068e8c8c5fb5b2f4ca6bec3e601ace3f6fd1d7f44852d1f16e51866a0124881eebf40a4a48228d032
7
+ data.tar.gz: 586674a4c7a71c102d2a71e9ea2b13f205e65bac47cc95096d0defc891ca18a43001eacd09ebfc168e5ab66894e5db76d14859b66024d533af394d7e692f47ea
@@ -46,7 +46,7 @@ module VagrantCloud
46
46
  # @param [String] file_path
47
47
  def upload_file(file_path)
48
48
  url = upload_url
49
- payload = File.read(file_path)
49
+ payload = File.open(file_path, 'r')
50
50
  RestClient::Request.execute(
51
51
  method: :put,
52
52
  url: url,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.6.11
134
+ rubygems_version: 2.6.13
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: HashiCorp Atlas API client