r10k 4.0.0 → 4.0.1

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: e3243dd00fc7260b6cbbb51f070418886dfd76ad16befc18d0511185d17d4fae
4
- data.tar.gz: dc8dcfe9644c9dabfd4532cc8b5a91064d57a5c8377fb38932aaf0aab1d0d6ef
3
+ metadata.gz: 05d094f24e1da891308bda6d4589351f1c2e1ba16b1efd8c97c5611414df0ee8
4
+ data.tar.gz: eaa7e2f7843cbb445a4619fdd30c923a289838a5884c07a19c4da4f2f5912293
5
5
  SHA512:
6
- metadata.gz: 22a3158bc9c7c65caf1c437d9d855c4586c14ac836730121826d1eaaa326e4237e74675818fb6e71430523b416f318e9f757106fba9b8c3e83b6cfbe2a2144e3
7
- data.tar.gz: 3d51941a78ec8e651c4657222a5f7f27b169b5b3811d472948c55f5b00e47244b2807aa6037182241a5c9b14a8df43748102d787e0218a2d8bacf2d17ae32fd9
6
+ metadata.gz: afa0f4daefb75c0b8c954b27b94a53f634616d7339e18d55f96ad19b26b3e486feee0b8bf41ee2801b516451412b0d5ea8d7a81444adb03909b364b243cca121
7
+ data.tar.gz: b49551e056b22522ffc8c7778559059830aec6278cec7b37e7f4fc990be57f547a2922306e79a3b24f9bf5d8b887d8cb6c75bafcd357bb632a04ca6d8683ea14
@@ -29,7 +29,7 @@ jobs:
29
29
  - run: gem install bundler
30
30
  - uses: actions/checkout@v3
31
31
  - name: Set up QEMU
32
- uses: docker/setup-qemu-action@v2
32
+ uses: docker/setup-qemu-action@v3
33
33
  - name: Set up Docker Buildx
34
34
  uses: docker/setup-buildx-action@v2
35
35
  - name: Build container
data/CHANGELOG.mkd CHANGED
@@ -4,6 +4,10 @@ CHANGELOG
4
4
  Unreleased
5
5
  ----------
6
6
 
7
+ 4.0.1
8
+ -----
9
+
10
+ - shellgit: Ensure the passed filepath to diff-index is interpreted as filepath [#1367](https://github.com/puppetlabs/r10k/pull/1367)
7
11
 
8
12
  4.0.0
9
13
  -----
data/README.mkd CHANGED
@@ -78,7 +78,7 @@ a git repository using Bundler for dependencies:
78
78
 
79
79
  ### Arch Linux
80
80
 
81
- Arch Linux provides a [system package](https://archlinux.org/packages/community/any/r10k/) for r10k.
81
+ Arch Linux provides a [system package](https://archlinux.org/packages/extra/any/r10k/) for r10k.
82
82
  This is built against the [system Ruby](https://archlinux.org/packages/extra/x86_64/ruby/) (which is Ruby 3.0.2 as of 2021-08-03).
83
83
  This package is maintained by [Tim Meusel](https://github.com/bastelfreak).
84
84
 
@@ -6,7 +6,7 @@ test_name 'RK-110 - C88671 - Specify a bad proxy to r10k'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  r10k_fqp = get_r10k_fqp(master)
11
11
 
12
12
  #Verification
@@ -6,7 +6,7 @@ test_name 'RK-110 - C87652 - Specify the proxy in the r10k.yaml'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
11
11
  r10k_fqp = get_r10k_fqp(master)
12
12
 
@@ -6,7 +6,7 @@ test_name 'RK-110 - C87651 - Specify a proxy in an environment variable'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  r10k_fqp = get_r10k_fqp(master)
11
11
 
12
12
  case master_platform
@@ -10,12 +10,12 @@ confine(:to, :platform => ['el', 'ubuntu', 'sles'])
10
10
 
11
11
  if ENV['GIT_PROVIDER'] == 'shellgit'
12
12
  skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
13
- elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
13
+ elsif fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
14
14
  skip_test('This version of EL is not supported by this test case!')
15
15
  end
16
16
 
17
17
  #Init
18
- master_platform = fact_on(master, 'osfamily')
18
+ master_platform = fact_on(master, 'os.family')
19
19
  master_certname = on(master, puppet('config', 'print', 'certname')).stdout.rstrip
20
20
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
21
21
  r10k_fqp = get_r10k_fqp(master)
@@ -87,7 +87,7 @@ step 'Remove "git" Package from System'
87
87
  if master_platform == 'RedHat'
88
88
  on(master, 'yum remove -y git')
89
89
  elsif master_platform == 'Debian'
90
- if fact_on(master, "operatingsystemmajrelease") == '10.04'
90
+ if fact_on(master, "os.release.major") == '10.04'
91
91
  on(master, 'apt-get remove -y git-core')
92
92
  else
93
93
  on(master, 'apt-get remove -y git')
@@ -8,12 +8,12 @@ confine(:to, :platform => ['el', 'ubuntu', 'sles'])
8
8
 
9
9
  if ENV['GIT_PROVIDER'] == 'shellgit'
10
10
  skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
11
- elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
11
+ elsif fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
12
12
  skip_test('This version of EL is not supported by this test case!')
13
13
  end
14
14
 
15
15
  #Init
16
- master_platform = fact_on(master, 'osfamily')
16
+ master_platform = fact_on(master, 'os.family')
17
17
  master_certname = on(master, puppet('config', 'print', 'certname')).stdout.rstrip
18
18
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
19
19
  r10k_fqp = get_r10k_fqp(master)
@@ -86,7 +86,7 @@ step 'Remove "git" Package from System'
86
86
  if master_platform == 'RedHat'
87
87
  on(master, 'yum remove -y git')
88
88
  elsif master_platform == 'Debian'
89
- if fact_on(master, "operatingsystemmajrelease") == '10.04'
89
+ if fact_on(master, "os.release.major") == '10.04'
90
90
  on(master, 'apt-get remove -y git-core')
91
91
  else
92
92
  on(master, 'apt-get remove -y git')
@@ -5,7 +5,7 @@ test_name 'CODEMGMT-92 - C59235 - Single Git Source Using "GIT" Transport Protoc
5
5
 
6
6
  confine(:to, :platform => 'el')
7
7
 
8
- if fact_on(master, "operatingsystemmajrelease").to_i < 6
8
+ if fact_on(master, "os.release.major").to_i < 6 || fact_on(master, "os.release.major").to_i > 8
9
9
  skip_test('This version of EL is not supported by this test case!')
10
10
  end
11
11
 
@@ -2,7 +2,7 @@ require 'git_utils'
2
2
  require 'r10k_utils'
3
3
  test_name 'CODEMGMT-86 - C59265 - Attempt to Deploy Environment to Disk with Insufficient Free Space'
4
4
 
5
- if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
5
+ if fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
6
6
  skip_test('This version of EL is not supported by this test case!')
7
7
  end
8
8
 
@@ -3,7 +3,7 @@ require 'r10k_utils'
3
3
  require 'master_manipulator'
4
4
  test_name 'CODEMGMT-62 - C59239 - Single Environment with 10,000 Files'
5
5
 
6
- if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
6
+ if fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
7
7
  skip_test('This version of EL is not supported by this test case!')
8
8
  end
9
9
 
@@ -3,7 +3,7 @@ require 'r10k_utils'
3
3
  require 'master_manipulator'
4
4
  test_name 'CODEMGMT-62 - C59242 - Single Environment with Large Binary Files'
5
5
 
6
- if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
6
+ if fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
7
7
  skip_test('This version of EL is not supported by this test case!')
8
8
  end
9
9
 
@@ -101,7 +101,7 @@ class R10K::Git::ShellGit::WorkingRepository < R10K::Git::ShellGit::BaseReposito
101
101
  logger.debug(_("Found local modifications in %{file_path}" % {file_path: File.join(@path, file)}))
102
102
 
103
103
  # Do this in a block so that the extra subprocess only gets invoked when needed.
104
- logger.debug1 { git(['diff-index', '-p', 'HEAD', file], :path => @path.to_s, :raise_on_fail => false).stdout }
104
+ logger.debug1 { git(['diff-index', '-p', 'HEAD', '--', file], :path => @path.to_s, :raise_on_fail => false).stdout }
105
105
  end
106
106
 
107
107
  return dirty_files.size > 0
data/lib/r10k/version.rb CHANGED
@@ -2,5 +2,5 @@ module R10K
2
2
  # When updating to a new major (X) or minor (Y) version, include `#major` or
3
3
  # `#minor` (respectively) in your commit message to trigger the appropriate
4
4
  # release. Otherwise, a new patch (Z) version will be released.
5
- VERSION = '4.0.0'
5
+ VERSION = '4.0.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r10k
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2