mixlib-install 3.12.5 → 3.12.7

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
  SHA256:
3
- metadata.gz: fb233e51e18e929105c7c97d7f1ca060e4dc02bb31c96fe593bdcda077e7f57a
4
- data.tar.gz: 874ef20231f17e3bf00a0b5f9a8f6ad6c428793be44a897edb1b878449cdf86e
3
+ metadata.gz: 601807500297868555334b6b675f76e7f47e82b06508c25034b7104c8d2d6310
4
+ data.tar.gz: 505719449732303c18b2b6c1ca892f61bcc9c2bfb249e3b10f7073f0db675e68
5
5
  SHA512:
6
- metadata.gz: 267808104df5f1e62d9a11b067ed53f75bf540465b5a1a5065d76dacb7618ba20acc381616a19d287d8dcbc996b2ee94fe53ca5e8f7856512abad827ad69a3c5
7
- data.tar.gz: 123e1017d5c41f2a02be2723e8cacda065363ef5bd6f3af858e46c38a0099ead3bf7b8d2a687dbd4206e4986d0798d19f76014f5fc53c096b66a956b956ac793
6
+ metadata.gz: 28787830d0a413c5698fd7889562f9210d8ab3f6ae9d94274f02c015280ce6e1914413e18a89036306d7f5e3ac12fd24a9401b891fde2c7de8f33a98183e4bc3
7
+ data.tar.gz: 0d3ec51ff6c6dbaa499eba0cf95ffd9e66881381543b6cabe257539901ad2e1cf3ca895768729d2cadc7bd8a250f9925ecfe15e88bc59f7355469ee105a6f194
data/Gemfile CHANGED
@@ -2,6 +2,8 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
+ gem "chef-utils", "= 16.6.14" if RUBY_VERSION < "2.6.0"
6
+
5
7
  group :docs do
6
8
  gem "github-markup"
7
9
  gem "redcarpet"
@@ -184,7 +184,7 @@ module Mixlib
184
184
  # to disallow unsigned powershell scripts. This changes it for just this
185
185
  # powershell session, which allows this to run even if the execution policy
186
186
  # is set higher.
187
- Mixlib::ShellOut.new("powershell.exe -file #{File.join(d, "detect_platform.ps1")}", :env => { "PSExecutionPolicyPreference" => "Bypass" }).run_command
187
+ Mixlib::ShellOut.new("powershell.exe -NoProfile -file #{File.join(d, "detect_platform.ps1")}", :env => { "PSExecutionPolicyPreference" => "Bypass" }).run_command
188
188
  end
189
189
  else
190
190
  Mixlib::ShellOut.new(detect_platform_sh).run_command
@@ -79,14 +79,14 @@ function Get-WebContentOnFullNet {
79
79
  $wc.Headers.Add("user-agent", "<%= user_agent_string %>")
80
80
  $proxy.Address = $env:http_proxy
81
81
  $bypassList = $env:no_proxy
82
-
82
+
83
83
 
84
84
  if($bypassList -ne $null){
85
-
85
+
86
86
  $bypassList = $bypassList.split(",")
87
87
  $proxy.BypassList = $byPassList
88
88
  }
89
-
89
+
90
90
  $wc.Proxy = $proxy
91
91
 
92
92
  if ([string]::IsNullOrEmpty($filepath)) {
@@ -180,9 +180,16 @@ function Get-WMIQuery {
180
180
  param ($class)
181
181
 
182
182
  if(Get-Command -Name Get-CimInstance -ErrorAction SilentlyContinue) {
183
- Get-CimInstance $class
183
+ try{
184
+ $classObject = Get-CimInstance $class
185
+ # If the Get-CimInstance command exists but fails due to security settings, try Get-WmiObject.
186
+ }
187
+ catch {
188
+ $classObject = Get-WmiObject $class
189
+ }
184
190
  }
185
191
  else {
186
- Get-WmiObject $class
192
+ $classObject = Get-WmiObject $class
187
193
  }
194
+ return $classObject
188
195
  }
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "3.12.5"
3
+ VERSION = "3.12.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.5
4
+ version: 3.12.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-02 00:00:00.000000000 Z
12
+ date: 2021-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-shellout
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.0.3
120
+ rubygems_version: 3.1.4
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: A library for interacting with Chef Software Inc's software distribution