puppetlabs_spec_helper 7.0.3 → 7.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b43b9b0bc503cc22827d130ea6b8b38c8f47ddc411fa01d475358bf1b3d84662
|
|
4
|
+
data.tar.gz: fae07b2e2c37f912afdec1e701a44ff97765558b33e25525ba1a5aaa8d69b343
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1405267c761ea07175994796430a21dbedec7d85ef4f8fdfe68c0d5f6b8653d03a32d094e35b519905532a6f82148823ca1c627af2aaff5bd099f69ac87bd067
|
|
7
|
+
data.tar.gz: e6a2cd716e27ba64e551e831be688db045edf9999f655ad9fbce793fb563f769523a62bff104bab6cfb38c635b35a6255b8484d0cc3c9a36aca4c532897093b8
|
|
@@ -107,7 +107,7 @@ module PuppetlabsSpecHelper
|
|
|
107
107
|
|
|
108
108
|
fixtures = fixtures['fixtures']
|
|
109
109
|
|
|
110
|
-
fixtures['symlinks'] = auto_symlink
|
|
110
|
+
fixtures['symlinks'] = fixtures['symlinks'].nil? ? auto_symlink : auto_symlink.merge!(fixtures['symlinks'])
|
|
111
111
|
|
|
112
112
|
result = {}
|
|
113
113
|
if fixtures.include?(category) && !fixtures[category].nil?
|
|
@@ -151,7 +151,7 @@ module PuppetlabsSpecHelper
|
|
|
151
151
|
return hash unless hash['scm'] == 'git'
|
|
152
152
|
|
|
153
153
|
# 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']
|
|
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']&.include?('/')
|
|
155
155
|
|
|
156
156
|
hash
|
|
157
157
|
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.4
|
|
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-08 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
|