r10k 3.12.0 → 3.12.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: f378346234a9e8a8d92b3acb64735f88ca6b8e8edd60aa33adad9a09d7efd537
4
- data.tar.gz: 1b94403eb2e5cb420939d85b73ec299c709418afabb45705f70b1cfb8606a1f5
3
+ metadata.gz: 5500f864c81a0b1ff5f48461bca9de375450f452028a93d381ec65eac3b35865
4
+ data.tar.gz: 1d675799b9bf1df2ee328780bc90ed4e79c02bf7706a166dd40f5af952e9610a
5
5
  SHA512:
6
- metadata.gz: a3eda38f3fc6e79ea62082c7c71bd65383089dce82e87dc6473c1f278f1560239f3e2189df28ef23a9ce8e47f3446cdd63e8794344ee62895914353bdcdec6ee
7
- data.tar.gz: 0dc89955ede8226bf59c7cd4f8e03d9a89688700f5767d0578884fce97643c937f3363dd0d965404fd2b900128b181874dfb129952d64891a3700516239a2af6
6
+ metadata.gz: cc75dcceceb3b368c6ee9dd1773a92530e67a59b1e35b52e3d8205d3dffb6b1b7d4b927edbe58bc828d9a1782d1052254464ca7c0556ea6099c5975811ddad1a
7
+ data.tar.gz: 12ecfa266d5c7cafc1a6656bb54d5429ecb030c2b89af8d61a2dcd6587f8bc1ff6f94221a4f185d9e463a96df652d2434adec0c59a78288bc44dda087c67ca12
data/CHANGELOG.mkd CHANGED
@@ -4,6 +4,12 @@ CHANGELOG
4
4
  Unreleased
5
5
  ----------
6
6
 
7
+ 3.12.1
8
+ ------
9
+
10
+ - Fix requiring individual R10K::Actions without having already required 'r10k'. [#1223](https://github.com/puppetlabs/r10k/issues/1223)
11
+ - Fix evaluation of Puppetfiles that include local modules. [#1224](https://github.com/puppetlabs/r10k/pull/1224)
12
+
7
13
  3.12.0
8
14
  ------
9
15
 
@@ -1,5 +1,5 @@
1
- require 'r10k/util/setopts'
2
1
  require 'r10k/logging'
2
+ require 'r10k/util/setopts'
3
3
 
4
4
  module R10K
5
5
  module Action
@@ -1,8 +1,12 @@
1
+ require 'r10k/logging'
2
+
1
3
  module R10K
2
4
  module Action
3
5
  module Deploy
4
6
  module DeployHelpers
5
7
 
8
+ include R10K::Logging
9
+
6
10
  # Ensure that a config file has been found (and presumably loaded) and exit
7
11
  # with a helpful error if it hasn't.
8
12
  #
@@ -1,6 +1,6 @@
1
- require 'r10k/deployment'
2
1
  require 'r10k/action/base'
3
2
  require 'r10k/action/deploy/deploy_helpers'
3
+ require 'r10k/deployment'
4
4
 
5
5
  module R10K
6
6
  module Action
@@ -1,10 +1,9 @@
1
- require 'r10k/util/setopts'
2
- require 'r10k/util/cleaner'
3
- require 'r10k/deployment'
4
- require 'r10k/logging'
5
- require 'r10k/action/visitor'
6
1
  require 'r10k/action/base'
7
2
  require 'r10k/action/deploy/deploy_helpers'
3
+ require 'r10k/action/visitor'
4
+ require 'r10k/deployment'
5
+ require 'r10k/util/setopts'
6
+
8
7
  require 'json'
9
8
 
10
9
  module R10K
@@ -13,6 +12,7 @@ module R10K
13
12
  class Environment < R10K::Action::Base
14
13
 
15
14
  include R10K::Action::Deploy::DeployHelpers
15
+ include R10K::Action::Visitor
16
16
 
17
17
  # Deprecated
18
18
  attr_reader :force
@@ -81,8 +81,6 @@ module R10K
81
81
  @visit_ok
82
82
  end
83
83
 
84
- include R10K::Action::Visitor
85
-
86
84
  private
87
85
 
88
86
  def read_purge_allowlist (whitelist, allowlist)
@@ -1,7 +1,7 @@
1
- require 'r10k/deployment'
2
- require 'r10k/action/visitor'
3
1
  require 'r10k/action/base'
4
2
  require 'r10k/action/deploy/deploy_helpers'
3
+ require 'r10k/action/visitor'
4
+ require 'r10k/deployment'
5
5
 
6
6
  module R10K
7
7
  module Action
@@ -9,6 +9,7 @@ module R10K
9
9
  class Module < R10K::Action::Base
10
10
 
11
11
  include R10K::Action::Deploy::DeployHelpers
12
+ include R10K::Action::Visitor
12
13
 
13
14
  # Deprecated
14
15
  attr_reader :force
@@ -69,8 +70,6 @@ module R10K
69
70
  @visit_ok
70
71
  end
71
72
 
72
- include R10K::Action::Visitor
73
-
74
73
  private
75
74
 
76
75
  def visit_deployment(deployment)
@@ -1,4 +1,5 @@
1
1
  require 'r10k/errors/formatting'
2
+ require 'r10k/logging'
2
3
 
3
4
  module R10K
4
5
  module Action
@@ -13,6 +14,8 @@ module R10K
13
14
  # @api private
14
15
  module Visitor
15
16
 
17
+ include R10K::Logging
18
+
16
19
  # Dispatch to the type specific visitor method
17
20
  #
18
21
  # @param type [Symbol] The object type to dispatch for
@@ -11,10 +11,14 @@ class R10K::Module::Local < R10K::Module::Base
11
11
  args.is_a?(Hash) && (args[:local] || args[:type].to_s == 'local')
12
12
  end
13
13
 
14
- def version
14
+ def self.statically_defined_version(*)
15
15
  "0.0.0"
16
16
  end
17
17
 
18
+ def version
19
+ self.class.statically_defined_version
20
+ end
21
+
18
22
  def properties
19
23
  {
20
24
  :expected => "0.0.0 (local)",
@@ -1,5 +1,9 @@
1
+ require 'r10k/errors'
1
2
  require 'r10k/logging'
2
3
  require 'r10k/module'
4
+ require 'r10k/module_loader/puppetfile/dsl'
5
+
6
+ require 'pathname'
3
7
 
4
8
  module R10K
5
9
  module ModuleLoader
@@ -1,3 +1,5 @@
1
+ require 'r10k/logging'
2
+
1
3
  require 'fileutils'
2
4
 
3
5
  module R10K
@@ -9,6 +11,8 @@ module R10K
9
11
  # {#desired_contents}
10
12
  module Purgeable
11
13
 
14
+ include R10K::Logging
15
+
12
16
  HIDDEN_FILE = /\.[^.]+/
13
17
 
14
18
  FN_MATCH_OPTS = File::FNM_PATHNAME | File::FNM_DOTMATCH
@@ -1,3 +1,5 @@
1
+ require 'r10k/logging'
2
+
1
3
  module R10K
2
4
  module Util
3
5
 
@@ -1,3 +1,4 @@
1
+ require 'r10k/logging'
1
2
  require 'r10k/util/platform'
2
3
 
3
4
  module R10K
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 = '3.12.0'
5
+ VERSION = '3.12.1'
6
6
  end
@@ -7,3 +7,4 @@ mod 'bar', git: 'this/remote', tag: 'v1.2.3'
7
7
  mod 'baz', git: 'this/remote', commit: '123abc456'
8
8
  mod 'fizz', git: 'this/remote', ref: '1234567890abcdef1234567890abcdef12345678'
9
9
  mod 'buzz', git: 'this/remote', ref: 'refs/heads/main'
10
+ mod 'canary', local: true
@@ -7,3 +7,4 @@ mod 'bar', git: 'this/remote', tag: 'v1.2.3'
7
7
  mod 'baz', git: 'this/remote', commit: '123abc456'
8
8
  mod 'fizz', git: 'this/remote', ref: '1234567890abcdef1234567890abcdef12345678'
9
9
  mod 'buzz', git: 'this/remote', ref: 'refs/heads/main'
10
+ mod 'canary', local: true
@@ -366,6 +366,7 @@ describe R10K::ModuleLoader::Puppetfile do
366
366
  expect(metadata['baz']).to eq('123abc456')
367
367
  expect(metadata['fizz']).to eq('1234567890abcdef1234567890abcdef12345678')
368
368
  expect(metadata['buzz']).to eq(nil)
369
+ expect(metadata['canary']).to eq('0.0.0')
369
370
  end
370
371
 
371
372
  it 'does not load module implementations for static versioned' do
@@ -381,6 +382,7 @@ describe R10K::ModuleLoader::Puppetfile do
381
382
  expect(modules['baz']).to be_a_kind_of(R10K::Module::Definition)
382
383
  expect(modules['fizz']).to be_a_kind_of(R10K::Module::Definition)
383
384
  expect(modules['buzz']).to be_a_kind_of(R10K::Module::Git)
385
+ expect(modules['canary']).to be_a_kind_of(R10K::Module::Definition)
384
386
  end
385
387
 
386
388
  it 'loads module implementations whose static versions are different' do
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: 3.12.0
4
+ version: 3.12.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: 2021-09-16 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2