vagrant-serverspec 1.1.1 → 1.2

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: 1ba6180c0b237a150fe5d84c5a406e3942e25873
4
- data.tar.gz: a8074fa8d60e2f7802585d5b1a4f6e3d8a30e32e
3
+ metadata.gz: 57204d1d8fb236c49d49df0faf38e220f0678f31
4
+ data.tar.gz: 05e3709aa15d9976e98e5f056e5531fc3182ffd1
5
5
  SHA512:
6
- metadata.gz: f5053db2589ec5454e372f0c92b4e4efd5b6f30828101de0254f6f4d41881c8a7e8acc79e2ea7fab62bb3599a79fb00d190e4f92db5bff2d65c66c7ae0e3e2b1
7
- data.tar.gz: 6ac597a7709d06f7c65faa3318c34934d70960f563e4d5bae85a15604e3bc72918a704e1ddd0a7d4e7a844f156171f2db7c3ee2e032af8105569c64db6b3a114
6
+ metadata.gz: 4d48d4a935352e481fd189dab8c2cc5fc84888e21ac46904cd0e53ac50d6d3ef99cf7a913aa80e4bc63c9548ae5cf58f34f1fa7163c2fc69f212af08f9f33e7e
7
+ data.tar.gz: 38147000f3642bd699f10e2e8029420900fbf092a524d3936aae911f5992d9d1f673e0ecb5c1489c375fc1895a4a055e7d16687c6b27d0d804116321a4562944
@@ -0,0 +1,6 @@
1
+ ### Supported Release - 1.2.0
2
+ ***
3
+
4
+ * Updated .gemspec to the recommended winrm version 2.x
5
+ * Updated WinRM::Connection instead of WinRM::WebService
6
+ * Updated `WINDOWS_README.md`
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # vagrant-serverspec
1
+ ### Vagrant-Serverspec
2
+ ***
3
+
2
4
  [![Gem Version](https://badge.fury.io/rb/vagrant-serverspec.svg)](http://badge.fury.io/rb/vagrant-serverspec)
3
5
 
4
6
  > **vagrant-serverspec is a [vagrant][vagrant] plugin that implements
@@ -1,4 +1,5 @@
1
- # vagrant-serverspec Windows readme
1
+ ### Vagrant-ServerSpec Windows Readme
2
+ ***
2
3
 
3
4
  vagrant-serverspec is a [vagrant](http://vagrantup.com) plugin that implements
4
5
  [serverspec](http://serverspec.org) as a provisioner.
@@ -49,11 +50,14 @@ For now possible examples is commented in this file.
49
50
  #set :backend, :winrm
50
51
  #set :os, :family => 'windows'
51
52
 
52
- #user = 'vagrant'
53
- #pass = 'vagrant'
54
- #endpoint = "http://#{ENV['TARGET_HOST']}:5985/wsman"
55
- #winrm = ::WinRM::WinRMWebService.new(endpoint, :ssl, :user => user, :pass => pass, :basic_auth_only => true)
56
- #winrm.set_timeout 300 # 5 minutes max timeout for any operation
53
+ #opts = {
54
+ # endpoint: "http://#{ENV['TARGET_HOST']}:5985/wsman",
55
+ # user: 'vagrant',
56
+ # password: 'vagrant',
57
+ # transport: :ssl,
58
+ # operation_timeout: 300 # 5 minutes max timeout for any operation
59
+ # }
60
+ # winrm = ::WinRM::Connection.new(opts)
57
61
  #Specinfra.configuration.winrm = winrm
58
62
  ```
59
63
 
@@ -15,12 +15,15 @@ module VagrantPlugins
15
15
  winrm_info = VagrantPlugins::CommunicatorWinRM::Helper.winrm_info(@machine)
16
16
  set :backend, :winrm
17
17
  set :os, :family => 'windows'
18
- user = machine.config.winrm.username
19
- pass = machine.config.winrm.password
20
- endpoint = "http://#{winrm_info[:host]}:#{winrm_info[:port]}/wsman"
21
18
 
22
- winrm = ::WinRM::WinRMWebService.new(endpoint, :ssl, :user => user, :pass => pass, :basic_auth_only => true)
23
- winrm.set_timeout machine.config.winrm.timeout
19
+ opts = {
20
+ endpoint: "http://#{winrm_info[:host]}:#{winrm_info[:port]}/wsman",
21
+ user: machine.config.winrm.username,
22
+ password: machine.config.winrm.password,
23
+ transport: :ssl,
24
+ operation_timeout: machine.config.winrm.timeout
25
+ }
26
+ winrm = ::WinRM::Connection.new(opts)
24
27
  Specinfra.configuration.winrm = winrm
25
28
  else
26
29
  set :backend, :ssh
@@ -101,3 +104,4 @@ module VagrantPlugins
101
104
  end
102
105
  end
103
106
  end
107
+
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module ServerSpec
3
- VERSION = '1.1.1'
3
+ VERSION = '1.2'
4
4
  end
5
5
  end
@@ -16,11 +16,12 @@ Gem::Specification.new do |gem|
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ['lib']
18
18
 
19
- gem.add_runtime_dependency 'serverspec', '~> 2.7', '>= 2.7.0'
20
- gem.add_runtime_dependency 'winrm', '~> 1.1', '>= 1.1.0'
19
+ gem.add_runtime_dependency 'serverspec', '~> 2.30', '>= 2.30'
20
+
21
+ #add onlly dependencies for winrm without nokogiri
22
+ gem.add_runtime_dependency 'winrm', '~> 2.1', '>= 2.1'
21
23
  gem.add_runtime_dependency 'os', '~> 0.9.6'
22
- #gem.add_runtime_dependency 'highline', '~> 1.6', '>= 1.6.20'
23
-
24
+
24
25
  gem.add_development_dependency 'bundler', '~> 1.6', '>= 1.6.2'
25
26
  gem.add_development_dependency 'rake', '~> 10.3', '>= 10.3.2'
26
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Voorhis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: serverspec
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '2.7'
19
+ version: '2.30'
20
20
  - - '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 2.7.0
22
+ version: '2.30'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '2.7'
29
+ version: '2.30'
30
30
  - - '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 2.7.0
32
+ version: '2.30'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: winrm
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ~>
38
38
  - !ruby/object:Gem::Version
39
- version: '1.1'
39
+ version: '2.1'
40
40
  - - '>='
41
41
  - !ruby/object:Gem::Version
42
- version: 1.1.0
42
+ version: '2.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ~>
48
48
  - !ruby/object:Gem::Version
49
- version: '1.1'
49
+ version: '2.1'
50
50
  - - '>='
51
51
  - !ruby/object:Gem::Version
52
- version: 1.1.0
52
+ version: '2.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: os
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -113,6 +113,7 @@ extensions: []
113
113
  extra_rdoc_files: []
114
114
  files:
115
115
  - .gitignore
116
+ - CHANGELOG.md
116
117
  - Gemfile
117
118
  - LICENSE
118
119
  - README.md
@@ -159,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
160
  version: '0'
160
161
  requirements: []
161
162
  rubyforge_project:
162
- rubygems_version: 2.0.14
163
+ rubygems_version: 2.0.14.1
163
164
  signing_key:
164
165
  specification_version: 4
165
166
  summary: A Vagrant plugin that executes serverspec