serverspec 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/appveyor.yml +57 -0
- data/lib/serverspec/type/x509_certificate.rb +2 -1
- data/lib/serverspec/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51a46c02b1c7f60b7e35efc57f8a968721370e01
|
4
|
+
data.tar.gz: 1738e038951d12f1d483c1ebd39ca63ae588060c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a1bc938a3a9898b9a0bdf2554163efecdc3b1b36c539301cb1008f6b1aaeb662446753da3fce6c10e94c6e4dc13d5f9aadab1a8c9e6ff8df41c7574c3a5dfa
|
7
|
+
data.tar.gz: 2770e612044e1dc7f7bde454273ea8f70b906c04fa0ad347f54c4cbad776881992cb35c2b9a8a4c8b592c9949646e24db3e2bdddd6958f07dd5f0da01095c974
|
data/.travis.yml
CHANGED
@@ -12,3 +12,8 @@ before_install:
|
|
12
12
|
script:
|
13
13
|
- bundle exec rake spec
|
14
14
|
|
15
|
+
sudo: false
|
16
|
+
cache: bundler
|
17
|
+
notifications:
|
18
|
+
slack:
|
19
|
+
secure: X1umGErES0zd+LXX1EqZZxrPZv2YOzbCNxiLLiSGmJLlZAEtlSkMPyr+M00Lrs2DFhn4blwKPm+5YCBvU7f9F4K5GthSl0qZYNpNX/lGNn6EGeBnzJ8rFVgwXPUv1rvrJq0NjeSGni3yAK69K/uX6QohGojAI3iI28/EbJ+uYQM=
|
data/appveyor.yml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
version: "{build}"
|
2
|
+
|
3
|
+
os: Windows Server 2012
|
4
|
+
platform:
|
5
|
+
- x64
|
6
|
+
|
7
|
+
environment:
|
8
|
+
bundle_gemfile: integration-test/Gemfile.winrm
|
9
|
+
bundler_url: https://rubygems.org/downloads/bundler-1.9.9.gem
|
10
|
+
|
11
|
+
matrix:
|
12
|
+
- ruby_version: "193"
|
13
|
+
- ruby_version: "200"
|
14
|
+
- ruby_version: "21"
|
15
|
+
- ruby_version: "22"
|
16
|
+
|
17
|
+
matrix:
|
18
|
+
allow_failures:
|
19
|
+
- ruby_version: "22" # waiting for net-ssh update
|
20
|
+
|
21
|
+
clone_depth: 5
|
22
|
+
|
23
|
+
cache:
|
24
|
+
- C:\Ruby193\lib\ruby\gems\1.9.1
|
25
|
+
- C:\Ruby193\bin
|
26
|
+
- C:\Ruby200\lib\ruby\gems\2.0.0
|
27
|
+
- C:\Ruby200\bin
|
28
|
+
- C:\Ruby21\lib\ruby\gems\2.1.0
|
29
|
+
- C:\Ruby21\bin
|
30
|
+
- C:\Ruby22\lib\ruby\gems\2.2.0
|
31
|
+
- C:\Ruby22\bin
|
32
|
+
|
33
|
+
install:
|
34
|
+
- git submodule update --init --recursive
|
35
|
+
- ps: Enable-PSRemoting -Force
|
36
|
+
- ps: Set-ExecutionPolicy RemoteSigned
|
37
|
+
- winrm quickconfig -q
|
38
|
+
- winrm set winrm/config/client @{TrustedHosts="*"}
|
39
|
+
- winrm set winrm/config/client/auth @{Basic="true"}
|
40
|
+
- winrm set winrm/config/service/auth @{Basic="true"}
|
41
|
+
- winrm set winrm/config/service @{AllowUnencrypted="true"}
|
42
|
+
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
43
|
+
- echo %PATH%
|
44
|
+
- ruby --version
|
45
|
+
- gem --version
|
46
|
+
- appveyor DownloadFile -Url %bundler_url% -FileName bundler.gem
|
47
|
+
- gem install --local bundler.gem --no-ri --no-rdoc ## appveyor often stops `gem install bundler`..?
|
48
|
+
|
49
|
+
build_script:
|
50
|
+
- ruby -rfileutils -e 'FileUtils.rm_r(File.join(Gem.dir, "cache", "bundler")) if Dir.exists?(File.join(Gem.dir, "cache", "bundler"))'
|
51
|
+
- bundle install --jobs 3 --retry 3
|
52
|
+
- net user
|
53
|
+
- net localgroup
|
54
|
+
|
55
|
+
test_script:
|
56
|
+
- net user appveyor %WINDOWS_PASSWORD% # set by webui
|
57
|
+
- bundle exec rspec -fd --backtrace -r .\integration-test\winrm\spec_helper.rb .\integration-test\winrm
|
@@ -68,7 +68,8 @@ module Serverspec::Type
|
|
68
68
|
def parse_dates_str_to_map(dates_str)
|
69
69
|
dates_str.split("\n").inject({}) do |res,line|
|
70
70
|
kv_arr = line.split '='
|
71
|
-
|
71
|
+
time = Time.strptime(kv_arr[1],'%b %e %T %Y %Z') rescue Time.parse(kv_arr[1] || '')
|
72
|
+
res.merge({ kv_arr[0].to_sym => time })
|
72
73
|
end
|
73
74
|
end
|
74
75
|
end
|
data/lib/serverspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.17.
|
4
|
+
version: 2.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- README.md
|
113
113
|
- Rakefile
|
114
114
|
- WINDOWS_SUPPORT.md
|
115
|
+
- appveyor.yml
|
115
116
|
- bin/serverspec-init
|
116
117
|
- lib/serverspec.rb
|
117
118
|
- lib/serverspec/commands/base.rb
|