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 +4 -4
- data/Puppetfile +1 -1
- data/lib/bolt/module_installer.rb +1 -1
- data/lib/bolt/module_installer/specs/forge_spec.rb +5 -4
- data/lib/bolt/module_installer/specs/git_spec.rb +4 -3
- data/lib/bolt/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 956382104b8c11e17fdafa4349b50ec3d7c5ce6b03eaa57ce429bbfad768f8d3
|
4
|
+
data.tar.gz: dd838e10c07c8f0f87266ff5edf3af4f5595fab45e6aab0ebf82e381226d3897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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'
|
@@ -11,7 +11,7 @@ module Bolt
|
|
11
11
|
class ModuleInstaller
|
12
12
|
class Specs
|
13
13
|
class ForgeSpec
|
14
|
-
NAME_REGEX = %r{\A[a-
|
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'
|
37
|
-
"lowercase
|
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-
|
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'
|
40
|
-
"
|
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]
|
data/lib/bolt/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
200
|
+
version: '6.20'
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: puppetfile-resolver
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|