specinfra 2.82.13 → 2.82.18

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
- SHA1:
3
- metadata.gz: 4091da838326377ef94b07ae9b26011de7769fb9
4
- data.tar.gz: 4157f26e7591567eece6b67067e1aa1fb3da32f7
2
+ SHA256:
3
+ metadata.gz: cd4b036255cf5aafd4a11a9e48572fb9a37dd3b3eb1164b0709c7c2cf9fbd845
4
+ data.tar.gz: e1d9485748df7c5f3795fcb33b897b061406accaa6586d701b325d3dd1c358aa
5
5
  SHA512:
6
- metadata.gz: 21aa8c43ffd5c01fe64a4c380b4729d6c93511277196925db37e9c836d8c1a3354c588c10affbbb34693d51761e4a5ca6d2f89a16d261f2cfbcdb9b41a08cd48
7
- data.tar.gz: db8d758cd7964e6af9a70792d78ccaec01d63f395e371ccb3a7c8e888c00bfb56e321411760b174e66c458b48d55b775f9d7ec1739563b8047428a060362bc41
6
+ metadata.gz: cd4efcf6f4a73749f41ec0e9a53376809ee9db4965524ccc3f0eefc5f7ab952c0644ea85df1124524b193a80e8c9d23461c497929d3864f0198c9aa28914c03d
7
+ data.tar.gz: 87069e6caf693b955ee1fffb46d5fd6d2172895ca6d7bd40283f67aa397ada2a2b503e2885cca720cd7f1026ec4f77706ffcb28bb59870ac9928c8ece35a9c17
@@ -5,9 +5,10 @@ function IsPortListening
5
5
  $networkIPs = (Get-WmiObject Win32_NetworkAdapterConfiguration | ? {$_.IPEnabled}) | %{ $_.IPAddress[0] }
6
6
  [array] $networkIPs += "0.0.0.0"
7
7
  [array] $networkIPs += "127.0.0.1"
8
+ [array] $networkIPs += "[::1]"
8
9
  foreach ($ipaddress in $networkIPs)
9
10
  {
10
- $matchExpression = ("$ipaddress" + ":" + $portNumber)
11
+ $matchExpression = ("$ipaddress" + ":" + $portNumber + ".*LISTENING")
11
12
  if ($protocol) { $matchExpression = ($protocol.toUpper() + "\s+$matchExpression") }
12
13
  if ($netstatOutput -match $matchExpression) { return $true }
13
14
  }
@@ -73,10 +73,16 @@ module Specinfra
73
73
  end
74
74
 
75
75
  def create_ssh
76
+ options = get_config(:ssh_options)
77
+
78
+ if !Net::SSH::VALID_OPTIONS.include?(:strict_host_key_checking)
79
+ options.delete(:strict_host_key_checking)
80
+ end
81
+
76
82
  Net::SSH.start(
77
83
  get_config(:host),
78
- get_config(:ssh_options)[:user],
79
- get_config(:ssh_options)
84
+ options[:user],
85
+ options
80
86
  )
81
87
  end
82
88
 
@@ -34,6 +34,10 @@ class Specinfra::Command::Darwin::Base::File < Specinfra::Command::Base::File
34
34
  def get_mode(file)
35
35
  "stat -f%Lp #{escape(file)}"
36
36
  end
37
+
38
+ def get_size(file)
39
+ "stat -f %z #{escape(file)}"
40
+ end
37
41
 
38
42
  def get_owner_user(file)
39
43
  "stat -f %Su #{escape(file)}"
@@ -32,7 +32,7 @@ module Specinfra
32
32
 
33
33
  def parse_system_product_name(ret)
34
34
  product_name = case ret
35
- when /.*VMware Virtual Platform/
35
+ when /.*(VMware Virtual Platform|VMware7,1)/
36
36
  'vmware'
37
37
  when /.*VirtualBox/
38
38
  'vbox'
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.13"
2
+ VERSION = "2.82.18"
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.82.13
4
+ version: 2.82.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-01 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -613,7 +613,7 @@ homepage: https://github.com/mizzy/specinfra
613
613
  licenses:
614
614
  - MIT
615
615
  metadata: {}
616
- post_install_message:
616
+ post_install_message:
617
617
  rdoc_options: []
618
618
  require_paths:
619
619
  - lib
@@ -628,9 +628,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
628
628
  - !ruby/object:Gem::Version
629
629
  version: '0'
630
630
  requirements: []
631
- rubyforge_project:
632
- rubygems_version: 2.2.2
633
- signing_key:
631
+ rubygems_version: 3.1.2
632
+ signing_key:
634
633
  specification_version: 4
635
634
  summary: Common layer for serverspec and itamae
636
635
  test_files: