vagrant-skytap 0.2.7 → 0.2.8

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: ba60765d51a7600c51ba087d57506e1f469c03dc
4
- data.tar.gz: 1629dbd77eede4f26f948f1ed65e1e24416ac3ba
3
+ metadata.gz: 480e7f83e5897c107eba4d963a38d2ee78f99c03
4
+ data.tar.gz: f16ac5755836f903b00b5e17fc869047fac346ba
5
5
  SHA512:
6
- metadata.gz: f8516f76818cee5c9cb7cebcc9a01b91a94f4be9de223bc21d8b48eb1e6385c0f233e8d4b2daf37e649aa0352069eef227e5c6f1f80896cc790c7d86819843b4
7
- data.tar.gz: 701d24018b94c72f42c95d7829285ed60004cb2ddf111a063d02d907853c198948ab043fe2a50d0bc0702c29ae28f762af837e88a6eef23cce314fce48d08a6f
6
+ metadata.gz: 3d7d04b62bea856d4e2793959e8e1eda1e440ca448d76ef9d9d410d70ac6609bb8ea4533bf0852bc12bca49506036391871d06a807e418fdff8638fdc5cb1a36
7
+ data.tar.gz: 6bbdfa1364406c86af282ef10fee557d344376334d685b06576f9be9d55432b7956caa2a9705c781c954d29c1509be9b9be6896267ef7e9917b557676950b24f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.8 (February 24, 2016)
2
+
3
+ * Revert change to User-Agent string, which contained a bug.
4
+
1
5
  # 0.2.7 (February 19, 2016)
2
6
 
3
7
  * Add User-Agent string with the plugin version and Vagrant version.
@@ -129,16 +129,12 @@ module VagrantPlugins
129
129
 
130
130
  private
131
131
 
132
- def user_agent_string
133
- "Vagrant-Skytap/#{VERSION} Vagrant/#{Vagrant::VERSION}"
134
- end
135
132
 
136
133
  def default_headers
137
134
  {
138
135
  'Authorization' => auth_header,
139
136
  'Content-Type' => 'application/json',
140
- 'Accept' => 'application/json',
141
- 'User-Agent' => user_agent_string,
137
+ 'Accept' => 'application/json'
142
138
  }
143
139
  end
144
140
 
@@ -22,6 +22,6 @@
22
22
 
23
23
  module VagrantPlugins
24
24
  module Skytap
25
- VERSION = "0.2.7"
25
+ VERSION = "0.2.8"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-skytap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric True
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-19 00:00:00.000000000 Z
12
+ date: 2016-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -214,7 +214,6 @@ files:
214
214
  - spec/spec_helper.rb
215
215
  - spec/unit/actions/compose_environment_spec.rb
216
216
  - spec/unit/actions/update_hardware_spec.rb
217
- - spec/unit/api_client_spec.rb
218
217
  - spec/unit/base.rb
219
218
  - spec/unit/config_spec.rb
220
219
  - spec/unit/credentials_spec.rb
@@ -1,44 +0,0 @@
1
- # Copyright (c) 2014-2016 Skytap, Inc.
2
- #
3
- # The MIT License (MIT)
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- # DEALINGS IN THE SOFTWARE.
22
-
23
- require_relative 'base'
24
- require "vagrant-skytap/api/client"
25
-
26
- describe VagrantPlugins::Skytap::API::Client do
27
- include_context "rest_api"
28
-
29
- let(:provider_config) do
30
- double(:provider_config, vm_url: "/vms/1", username: "jsmith", api_token: "123123", base_url: base_url)
31
- end
32
- let(:instance) { described_class.new(provider_config) }
33
-
34
- before :each do
35
- stub_request(:get, /.*/).to_return(body: "{}", status: 200)
36
- end
37
-
38
- describe "user_agent_string" do
39
- subject do
40
- instance.send(:user_agent_string)
41
- end
42
- it {should match %r{^Vagrant-Skytap/.* Vagrant/.*}}
43
- end
44
- end