bolt 2.33.1 → 2.33.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bolt might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf27b6c8b1a7e3cfb2eb61617bd7ab4927161c577df4915d959182fd8bce7eaf
4
- data.tar.gz: '05578a39ce18d1d63bf9455c8890e1e328bdcb3f52dacc3d6d5047251bca833e'
3
+ metadata.gz: 956382104b8c11e17fdafa4349b50ec3d7c5ce6b03eaa57ce429bbfad768f8d3
4
+ data.tar.gz: dd838e10c07c8f0f87266ff5edf3af4f5595fab45e6aab0ebf82e381226d3897
5
5
  SHA512:
6
- metadata.gz: 11b3fad81f576fa435b570b15ee7cbab14b7c099b4b179770eb20dbc7f2a2db9b2d2de6c4a52eb09021a9794d13c4da704eb3a2ed362cfd50ab1946e7ef5998d
7
- data.tar.gz: 300b9fa2214a66d239218b7a8c12518a97c2cf2fafd401c860a3ff9cdd439355608b30d72d5a82f157eea842a25a7c5bc9d484dd9f616837ebfe4beff26c0795
6
+ metadata.gz: 6c2b97a1c268d0fd93f1086efe623c740b74d9d1318596b9a74720e0e944455e244bfc2be2d02ba18634ed543a6ad87f6f27b88dc19189b22cd8fa495b75de02
7
+ data.tar.gz: cff4bdac98aad6247866f989f9f3814dd11497fd73d90b08ecf15824ef0ee2b36c73fffeb296ecb8a6cae19eb2e71ec7b834dfe461fdbadd06d46b05b560a758
data/Puppetfile CHANGED
@@ -7,7 +7,7 @@ moduledir File.join(File.dirname(__FILE__), 'modules')
7
7
  # Core modules used by 'apply'
8
8
  mod 'puppetlabs-service', '1.3.0'
9
9
  mod 'puppetlabs-puppet_agent', '4.2.0'
10
- mod 'puppetlabs-facts', '1.1.0'
10
+ mod 'puppetlabs-facts', '1.2.0'
11
11
 
12
12
  # Core types and providers for Puppet 6
13
13
  mod 'puppetlabs-augeas_core', '1.1.1'
@@ -63,7 +63,7 @@ module Bolt
63
63
 
64
64
  data = Bolt::Util.read_yaml_hash(config_path, 'project')
65
65
  data['modules'] ||= []
66
- data['modules'] << name
66
+ data['modules'] << name.tr('-', '/')
67
67
 
68
68
  begin
69
69
  File.write(config_path, data.to_yaml)
@@ -11,7 +11,7 @@ module Bolt
11
11
  class ModuleInstaller
12
12
  class Specs
13
13
  class ForgeSpec
14
- NAME_REGEX = %r{\A[a-z][a-z0-9_]*[-/](?<name>[a-z][a-z0-9_]*)\z}.freeze
14
+ NAME_REGEX = %r{\A[a-zA-Z0-9]+[-/](?<name>[a-z][a-z0-9_]*)\z}.freeze
15
15
  REQUIRED_KEYS = Set.new(%w[name]).freeze
16
16
  KNOWN_KEYS = Set.new(%w[name version_requirement]).freeze
17
17
 
@@ -33,8 +33,9 @@ module Bolt
33
33
  unless (match = name.match(NAME_REGEX))
34
34
  raise Bolt::ValidationError,
35
35
  "Invalid name for Forge module specification: #{name}. Name must match "\
36
- "'owner/name', must start with a lowercase letter, and may only include "\
37
- "lowercase letters, digits, and underscores."
36
+ "'owner/name'. Owner segment may only include letters or digits. Name "\
37
+ "segment must start with a lowercase letter and may only include lowercase "\
38
+ "letters, digits, and underscores."
38
39
  end
39
40
 
40
41
  [name.tr('-', '/'), match[:name]]
@@ -54,7 +55,7 @@ module Bolt
54
55
  #
55
56
  def satisfied_by?(mod)
56
57
  @type == mod.type &&
57
- @full_name == mod.full_name &&
58
+ @full_name.downcase == mod.full_name.downcase &&
58
59
  !mod.version.nil? &&
59
60
  @semantic_version.cover?(mod.version)
60
61
  end
@@ -11,7 +11,7 @@ module Bolt
11
11
  class ModuleInstaller
12
12
  class Specs
13
13
  class GitSpec
14
- NAME_REGEX = %r{\A(?:[a-z][a-z0-9_]*[-/])?(?<name>[a-z][a-z0-9_]*)\z}.freeze
14
+ NAME_REGEX = %r{\A(?:[a-zA-Z0-9]+[-/])?(?<name>[a-z][a-z0-9_]*)\z}.freeze
15
15
  REQUIRED_KEYS = Set.new(%w[git ref]).freeze
16
16
 
17
17
  attr_reader :git, :ref, :type
@@ -36,8 +36,9 @@ module Bolt
36
36
  unless (match = name.match(NAME_REGEX))
37
37
  raise Bolt::ValidationError,
38
38
  "Invalid name for Git module specification: #{name}. Name must match "\
39
- "'name' or 'owner/name', must start with a lowercase letter, and may "\
40
- "only include lowercase letters, digits, and underscores."
39
+ "'name' or 'owner/name'. Owner segment may only include letters or digits. "\
40
+ "Name segment must start with a lowercase letter and may only include "\
41
+ "lowercase letters, digits, and underscores."
41
42
  end
42
43
 
43
44
  match[:name]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bolt
4
- VERSION = '2.33.1'
4
+ VERSION = '2.33.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.33.1
4
+ version: 2.33.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-02 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -185,9 +185,9 @@ dependencies:
185
185
  - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: 6.18.0
188
- - - "<="
188
+ - - "<"
189
189
  - !ruby/object:Gem::Version
190
- version: '6.19'
190
+ version: '6.20'
191
191
  type: :runtime
192
192
  prerelease: false
193
193
  version_requirements: !ruby/object:Gem::Requirement
@@ -195,9 +195,9 @@ dependencies:
195
195
  - - ">="
196
196
  - !ruby/object:Gem::Version
197
197
  version: 6.18.0
198
- - - "<="
198
+ - - "<"
199
199
  - !ruby/object:Gem::Version
200
- version: '6.19'
200
+ version: '6.20'
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: puppetfile-resolver
203
203
  requirement: !ruby/object:Gem::Requirement