mixlib-install 3.12.11 → 3.12.19

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: fe13831f6e3d7b294b7e1882f3ce89650a827683efafcd59950ecf6021d05142
4
- data.tar.gz: b123da4632d197b6adf060d5c2ee8287c58bc48134259634bcebeddd7753c06c
3
+ metadata.gz: 19d5dda94374a1b0fe5e627f460c40dece9c0b2309dfda3fcb9a9ade5f62465c
4
+ data.tar.gz: 673be23ef2a7b4f34cc308a9995ff8a731b65ff958b8336bacdea3e1be516ce7
5
5
  SHA512:
6
- metadata.gz: b6d552bafb38bdd3095798ebf1d87b8dfe904e4531a5a67f111dc0ed7eede36afb68ce8ad28c17f0b8099ebf00a926b7c86869e7513d4ce49d8f61b092c2975e
7
- data.tar.gz: 427f67b3eb3e4c9051eb81e614840bab0f57393152b00fd44af46c5858bdcd4c1deafa11b1a05948ad7fdc4840ced78934493782ece7faf801b76a1b91640c46
6
+ metadata.gz: 3444cbf76a4eae7dcd9345d082dd362124180df65059ea225d85dd6544665a129a23bd3c95b97da39fd0427de8896d7a081e518e4589cb12afe0629966180123
7
+ data.tar.gz: 17fca79670b37d4f2983d387acd022e9576ee29d7220e61b52bb65d53d0d71342fb5106f4dc51e64dce7ea99524700056d4d87bf9c71980824ea56d7645eeb1b
data/Gemfile CHANGED
@@ -7,15 +7,16 @@ gem "chef-utils", "= 16.6.14" if RUBY_VERSION < "2.6.0"
7
7
  group :test do
8
8
  gem "rake"
9
9
  gem "rspec"
10
- gem "vcr"
11
10
  gem "webrick"
12
11
  gem "webmock", "~> 3.4"
13
- gem "aruba", "~> 0.14"
14
- gem "cucumber", "~> 1.3.20"
15
- if RUBY_VERSION < "2.5.0"
12
+ gem "contracts", "~> 0.16.0" # this entry can go away when ruby < 3 support is gone
13
+ if RUBY_VERSION < "2.6.0"
16
14
  gem "climate_control", "= 0.1.0"
15
+ gem "vcr", "= 6.0.0"
16
+ gem "mixlib-shellout", "= 3.2.5"
17
17
  else
18
18
  gem "climate_control", "~> 1.0"
19
+ gem "vcr"
19
20
  end
20
21
  end
21
22
 
data/Rakefile CHANGED
@@ -48,4 +48,4 @@ task :console do
48
48
  IRB.start
49
49
  end
50
50
 
51
- task default: %w{style unit functional}
51
+ task default: %w{unit functional}
@@ -14,7 +14,7 @@
14
14
  # $filetype: Type of the file downloaded.
15
15
  ############
16
16
 
17
- filename=`echo $download_url | sed -e 's/^.*\///' | sed -e 's/?.*//'`
17
+ filename=`echo $download_url | sed -e 's/?.*//' | sed -e 's/^.*\///'`
18
18
  filetype=`echo $filename | sed -e 's/^.*\.//'`
19
19
 
20
20
  # use either $tmp_dir, the provided directory (-d) or the provided filename (-f)
@@ -15,7 +15,7 @@ if test "x$version" = "x" -a "x$CI" != "xtrue"; then
15
15
  echo "You are installing a package without a version pin. If you are installing"
16
16
  echo "on production servers via an automated process this is DANGEROUS and you will"
17
17
  echo "be upgraded without warning on new releases, even to new major releases."
18
- echo "Letting the version float is only appropriate in desktop, test, development or"
18
+ echo "Letting the version float is only appropriate in test, development or"
19
19
  echo "CI/CD environments."
20
20
  echo
21
21
  echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
@@ -59,13 +59,18 @@ elif test -f "/etc/system-release"; then
59
59
  platform=`sed 's/^\(.\+\) release.\+/\1/' /etc/system-release | tr '[A-Z]' '[a-z]'`
60
60
  platform_version=`sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/system-release | tr '[A-Z]' '[a-z]'`
61
61
  case $platform in amazon*) # sh compat method of checking for a substring
62
- platform="el"
63
-
64
62
  . /etc/os-release
65
63
  platform_version=$VERSION_ID
66
- if test "$platform_version" = "2"; then
64
+
65
+ if test "$platform_version" = "2022"; then
66
+ platform="amazon"
67
+ platform_version="2022"
68
+ elif test "$platform_version" = "2"; then
69
+ platform="el"
67
70
  platform_version="7"
68
71
  else
72
+ platform="el"
73
+
69
74
  # VERSION_ID will match YYYY.MM for Amazon Linux AMIs
70
75
  platform_version="6"
71
76
  fi
@@ -233,7 +233,7 @@ Must be one of: #{SUPPORTED_SHELL_TYPES.join(", ")}
233
233
  def validate_platform_options
234
234
  unless all_or_none?(platform_info.values)
235
235
  errors << <<-EOS
236
- Must provide platform, platform version and architecture when specifying any platform details
236
+ Must provide platform (-p), platform version (-l) and architecture (-a) when specifying any platform details
237
237
  EOS
238
238
  end
239
239
  end
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "3.12.11"
3
+ VERSION = "3.12.19"
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.11
4
+ version: 3.12.19
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: 2021-03-17 00:00:00.000000000 Z
12
+ date: 2022-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-shellout