specinfra 2.34.4 → 2.34.5

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: 7b39e8162d8a1998f500dc54e2ece37c74f1ef63
4
- data.tar.gz: 26c6f08f3073e338f9b739d5c282ea3510043e41
3
+ metadata.gz: d8054c5ab30dcfb9ac19f5bdd7cc59b9498740bc
4
+ data.tar.gz: 9a7fa2c786996cee9688d2b5a00f87c0b073ee75
5
5
  SHA512:
6
- metadata.gz: b28b077d51bbe41c04c7122c601fcaf824ef85eba268bd003d2bc1de338bf09d7a73587e7a4a1b824b37e74aa9cd02f12135d62e612d283d0e245a7a3ef38280
7
- data.tar.gz: 517620e73e1547107b6baa840bc50b7bb3cdb84864a05d14fc1c2ae5db403829cfdb4d6bc8c3c09d8c1628d68810890c72ec78e87c45e13a1f386cc740cbc946
6
+ metadata.gz: 8bf761b1651b9b7988a56fa9ecb56c441702260ef0133f1cfc0d04fd0f6ff1c3d9e9833d9aec84e02e24f683b5a5e37b12ea4f6b943313295b322096fcb51eb5
7
+ data.tar.gz: 43f76a008961233d893ff7c3c4b00b5d561fe304b1addd0dbe0259afb23beca80ba06233c5a7e9aab8eb36aba4de950f257738e8edae6891f023bc8e67b80005
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
@@ -39,6 +39,14 @@ class Specinfra::Command::Windows::Base::File < Specinfra::Command::Windows::Bas
39
39
  %Q!Get-Content("#{file}") | Out-String!
40
40
  end
41
41
 
42
+ def get_md5sum(file)
43
+ <<-EOT
44
+ $md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
45
+ $sum = [System.BitConverter]::ToString($md5.ComputeHash([System.IO.File]::ReadAllBytes("#{file}")))
46
+ echo $sum.ToLower().Replace("-","")
47
+ EOT
48
+ end
49
+
42
50
  def check_is_accessible_by_user(file, user, access)
43
51
  case access
44
52
  when 'r'
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.34.4"
2
+ VERSION = "2.34.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.34.4
4
+ version: 2.34.5
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-05-25 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -109,6 +109,7 @@ files:
109
109
  - LICENSE.txt
110
110
  - README.md
111
111
  - Rakefile
112
+ - appveyor.yml
112
113
  - examples/multiple_backends.rb
113
114
  - lib/specinfra.rb
114
115
  - lib/specinfra/backend.rb
@@ -494,3 +495,4 @@ test_files:
494
495
  - spec/helper/set_spec.rb
495
496
  - spec/host_inventory/cpu_spec.rb
496
497
  - spec/spec_helper.rb
498
+ has_rdoc: