puppetlabs_spec_helper 7.0.3 → 7.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31c8702551fea69d8d2c2efc698502009e1cf45a4eca99d1acec24f784659557
|
4
|
+
data.tar.gz: e172b4758e13ea487c14468acc3d8cefc5990f0600d91dc26317e7d0a796f458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15ab4f799250b555811ac76b6e6e3e0040711a97776c4d0184cb995a5a7a4d0d32740d88d428cbef0cb4b943e929f50cfb3af0650e9ccfdbebb739d2a6b3f969
|
7
|
+
data.tar.gz: 14c7d0cdf46724507f7c8b1d5ad07fbde6c05055c5c10ba66ccb0efc43ed18d222fca74f48be6086062b0c3b19670e26ed3310f445832c6feeb5f677df8db784
|
@@ -106,8 +106,7 @@ module PuppetlabsSpecHelper
|
|
106
106
|
end
|
107
107
|
|
108
108
|
fixtures = fixtures['fixtures']
|
109
|
-
|
110
|
-
fixtures['symlinks'] = auto_symlink if fixtures['symlinks'].nil?
|
109
|
+
fixtures['symlinks'] = fixtures['symlinks'].nil? || fixtures['symlinks'].empty? ? auto_symlink : auto_symlink.merge!(fixtures['symlinks'])
|
111
110
|
|
112
111
|
result = {}
|
113
112
|
if fixtures.include?(category) && !fixtures[category].nil?
|
@@ -151,7 +150,7 @@ module PuppetlabsSpecHelper
|
|
151
150
|
return hash unless hash['scm'] == 'git'
|
152
151
|
|
153
152
|
# Forward slashes in the ref aren't allowed. And is probably a branch name.
|
154
|
-
raise ArgumentError, "The ref for #{hash['target']} is invalid (Contains a forward slash). If this is a branch name, please use the 'branch' setting instead." if hash['ref']
|
153
|
+
raise ArgumentError, "The ref for #{hash['target']} is invalid (Contains a forward slash). If this is a branch name, please use the 'branch' setting instead." if hash['ref']&.include?('/')
|
155
154
|
|
156
155
|
hash
|
157
156
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -13,13 +13,6 @@ if ENV['COVERAGE'] == 'yes'
|
|
13
13
|
SimpleCov::Formatter::Console
|
14
14
|
]
|
15
15
|
|
16
|
-
begin
|
17
|
-
require 'codecov'
|
18
|
-
SimpleCov.formatters << SimpleCov::Formatter::Codecov
|
19
|
-
rescue LoadError
|
20
|
-
# continue without codecov, we could warn here but we want to avoid if possible
|
21
|
-
end
|
22
|
-
|
23
16
|
SimpleCov.start do
|
24
17
|
track_files 'lib/**/*.rb'
|
25
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppetlabs_spec_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mocha
|
@@ -65,14 +65,14 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '4.0'
|
69
69
|
type: :runtime
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '4.0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: rspec-github
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|