puppetlabs_spec_helper 2.11.0 → 2.12.0
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 45bf89e508fd4e7455ff251a5aa2743007ffe4f3
|
4
|
+
data.tar.gz: 9152f0a0445f9ddeb10555e35ab1b5e29f138aff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1446edba63e86631ea5cc121440e92834ea150a59df692d445d3c4225b10d8141a0e662acb457b44e4ce3c7892e1342dbdd4b8b6436117bbd67dd1fd25d2809b
|
7
|
+
data.tar.gz: 6ab7060e156d08fbaf6e15e54fa3d670c39ae05d0ab8bb844014e41d03fbb88d1b08d55141b2265e1995b6597175b9f05f02460557b0975568eae62b9c616542
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,19 @@
|
|
3
3
|
All significant changes to this repo will be summarized in this file.
|
4
4
|
|
5
5
|
|
6
|
+
## [v2.12.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.12.0) (2018-11-08)
|
7
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.11.0...v2.12.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- Added tasks to rspec pattern. [\#261](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/261) ([dylanratcliffe](https://github.com/dylanratcliffe))
|
12
|
+
- \(PDK-1100\) Use PDK to build module packages [\#260](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/260) ([rodjek](https://github.com/rodjek))
|
13
|
+
|
14
|
+
**Fixed bugs:**
|
15
|
+
|
16
|
+
- \(bugfix\) ignore bundle directory, for symlinks [\#263](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/263) ([tphoney](https://github.com/tphoney))
|
17
|
+
- \(MODULES-7273\) - Raise error when fixture ref invalid [\#262](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/262) ([eimlav](https://github.com/eimlav))
|
18
|
+
|
6
19
|
## [v2.11.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.11.0) (2018-09-26)
|
7
20
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.10.0...v2.11.0)
|
8
21
|
|
@@ -14,6 +27,10 @@ All significant changes to this repo will be summarized in this file.
|
|
14
27
|
|
15
28
|
- Fix example conversion from mocha to rspec mocks. [\#257](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/257) ([vStone](https://github.com/vStone))
|
16
29
|
|
30
|
+
**Merged pull requests:**
|
31
|
+
|
32
|
+
- \(MODULES-7858\) - 2.11.0 Release Prep [\#259](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/259) ([pmcmaw](https://github.com/pmcmaw))
|
33
|
+
|
17
34
|
## [v2.10.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.10.0) (2018-08-30)
|
18
35
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.1...v2.10.0)
|
19
36
|
|
@@ -6,6 +6,7 @@ require 'pathname'
|
|
6
6
|
require 'puppetlabs_spec_helper/version'
|
7
7
|
require 'puppetlabs_spec_helper/tasks/beaker'
|
8
8
|
require 'puppetlabs_spec_helper/tasks/fixtures'
|
9
|
+
require 'English'
|
9
10
|
|
10
11
|
# optional gems
|
11
12
|
begin
|
@@ -24,7 +25,7 @@ end
|
|
24
25
|
|
25
26
|
task default: [:help]
|
26
27
|
|
27
|
-
pattern = 'spec/{aliases,classes,defines,
|
28
|
+
pattern = 'spec/{aliases,classes,defines,functions,hosts,integration,plans,tasks,type_aliases,types,unit}/**/*_spec.rb'
|
28
29
|
|
29
30
|
RSpec::Core::RakeTask.new(:spec_standalone) do |t, args|
|
30
31
|
t.rspec_opts = ['--color']
|
@@ -103,14 +104,39 @@ end
|
|
103
104
|
|
104
105
|
desc 'Build puppet module package'
|
105
106
|
task :build do
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
107
|
+
if Gem::Specification.find_by_name('puppet').version < Gem::Version.new('6.0.0')
|
108
|
+
Rake::Task['build:pmt'].invoke
|
109
|
+
else
|
110
|
+
Rake::Task['build:pdk'].invoke
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
namespace :build do
|
115
|
+
desc 'Build Puppet module package with PMT (Puppet < 6.0.0 only)'
|
116
|
+
task :pmt do
|
110
117
|
require 'puppet/face'
|
118
|
+
|
111
119
|
pmod = Puppet::Face['module', :current]
|
112
120
|
pmod.build('./')
|
113
121
|
end
|
122
|
+
|
123
|
+
desc 'Build Puppet module with PDK'
|
124
|
+
task :pdk do
|
125
|
+
begin
|
126
|
+
require 'pdk/module/build'
|
127
|
+
|
128
|
+
path = PDK::Module::Build.invoke(:force => true, :'target-dir' => File.join(Dir.pwd, 'pkg'))
|
129
|
+
puts "Module built: #{path}"
|
130
|
+
rescue LoadError
|
131
|
+
_ = `pdk --version`
|
132
|
+
unless $CHILD_STATUS.success?
|
133
|
+
$stderr.puts 'Unable to build module. Please install PDK or add the `pdk` gem to your Gemfile.'
|
134
|
+
abort
|
135
|
+
end
|
136
|
+
|
137
|
+
system('pdk build --force')
|
138
|
+
end
|
139
|
+
end
|
114
140
|
end
|
115
141
|
|
116
142
|
desc 'Clean a built module package'
|
@@ -166,7 +166,8 @@ module PuppetlabsSpecHelper::Tasks::FixtureHelpers
|
|
166
166
|
else
|
167
167
|
raise "Unfortunately #{scm} is not supported yet"
|
168
168
|
end
|
169
|
-
system("#{scm} #{args.flatten.join ' '}", chdir: target)
|
169
|
+
result = system("#{scm} #{args.flatten.join ' '}", chdir: target)
|
170
|
+
raise "Invalid ref #{ref} for #{target}" unless result
|
170
171
|
end
|
171
172
|
|
172
173
|
def valid_repo?(scm, target, remote)
|
@@ -254,7 +255,7 @@ module PuppetlabsSpecHelper::Tasks::FixtureHelpers
|
|
254
255
|
dir.each_child(true) do |child|
|
255
256
|
if child.symlink?
|
256
257
|
results << child
|
257
|
-
elsif child.directory? && child.basename.to_s
|
258
|
+
elsif child.directory? && child.basename.to_s !~ %r{(^\.git$|^\.?bundle$)}
|
258
259
|
results.concat(check_directory_for_symlinks(child))
|
259
260
|
end
|
260
261
|
end
|
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: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mocha
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.
|
223
|
+
rubygems_version: 2.6.14.1
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: Standard tasks and configuration for module spec tests.
|