puppetlabs_spec_helper 2.6.2 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,119 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2021-02-09 10:30:38 +0000 using RuboCop version 0.57.2.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
12
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
13
+ Layout/EndAlignment:
14
+ Exclude:
15
+ - 'spec/watchr.rb'
16
+
17
+ # Offense count: 4
18
+ # Configuration parameters: AllowSafeAssignment.
19
+ Lint/AssignmentInCondition:
20
+ Exclude:
21
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
22
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb'
23
+ - 'lib/puppetlabs_spec_helper/rake_tasks.rb'
24
+
25
+ # Offense count: 7
26
+ Lint/HandleExceptions:
27
+ Exclude:
28
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
29
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
30
+ - 'lib/puppetlabs_spec_helper/rake_tasks.rb'
31
+
32
+ # Offense count: 1
33
+ Lint/UselessAssignment:
34
+ Exclude:
35
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
36
+
37
+ # Offense count: 2
38
+ # Configuration parameters: CustomTransform, IgnoreMethods.
39
+ RSpec/FilePath:
40
+ Exclude:
41
+ - 'spec/unit/puppetlabs_spec_helper/tasks/beaker_spec.rb'
42
+ - 'spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb'
43
+
44
+ # Offense count: 3
45
+ # Configuration parameters: AssignmentOnly.
46
+ RSpec/InstanceVariable:
47
+ Exclude:
48
+ - 'spec/acceptance/smoke_spec.rb'
49
+
50
+ # Offense count: 6
51
+ # Configuration parameters: AggregateFailuresByDefault.
52
+ RSpec/MultipleExpectations:
53
+ Max: 3
54
+
55
+ # Offense count: 18
56
+ RSpec/NamedSubject:
57
+ Exclude:
58
+ - 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
59
+ - 'spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb'
60
+
61
+ # Offense count: 2
62
+ # Configuration parameters: IgnoreSymbolicNames.
63
+ RSpec/VerifiedDoubles:
64
+ Exclude:
65
+ - 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
66
+
67
+ # Offense count: 2
68
+ Security/Eval:
69
+ Exclude:
70
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
71
+
72
+ # Offense count: 4
73
+ # Cop supports --auto-correct.
74
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
75
+ # SupportedStyles: nested, compact
76
+ Style/ClassAndModuleChildren:
77
+ Exclude:
78
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
79
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
80
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
81
+
82
+ # Offense count: 14
83
+ Style/Documentation:
84
+ Exclude:
85
+ - 'spec/**/*'
86
+ - 'test/**/*'
87
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
88
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
89
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
90
+ - 'lib/puppetlabs_spec_helper/tasks/beaker.rb'
91
+ - 'lib/puppetlabs_spec_helper/tasks/check_symlinks.rb'
92
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
93
+
94
+ # Offense count: 1
95
+ Style/DoubleNegation:
96
+ Exclude:
97
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
98
+
99
+ # Offense count: 6
100
+ # Configuration parameters: AllowedVariables.
101
+ Style/GlobalVars:
102
+ Exclude:
103
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
104
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
105
+
106
+ # Offense count: 1
107
+ # Configuration parameters: MinBodyLength.
108
+ Style/GuardClause:
109
+ Exclude:
110
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
111
+
112
+ # Offense count: 1
113
+ # Cop supports --auto-correct.
114
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
115
+ # SupportedStyles: predicate, comparison
116
+ Style/NumericPredicate:
117
+ Exclude:
118
+ - 'spec/**/*'
119
+ - 'lib/puppetlabs_spec_helper/tasks/beaker.rb'
data/.travis.yml CHANGED
@@ -1,22 +1,23 @@
1
- sudo: false
1
+ os: linux
2
+ dist: xenial
2
3
  language: ruby
3
4
  cache: bundler
4
- before_install:
5
- # https://github.com/bundler/bundler/issues/3558
6
- gem update bundler
7
- script: bundle exec rake spec
8
- matrix:
5
+ before_install: bundle -v
6
+ script: bundle exec rake
7
+ jobs:
9
8
  fast_finish: true
10
9
  include:
11
- - rvm: 2.3.1
12
- env: PUPPET_GEM_VERSION='~> 4.0'
13
- - rvm: 2.1
14
- env: PUPPET_GEM_VERSION='~> 4.0'
15
- - rvm: 2.1
16
- env: PUPPET_GEM_VERSION='~> 3.0'
17
- - rvm: 2.0
18
- env: PUPPET_GEM_VERSION='~> 3.0'
19
- - rvm: 1.9.3
20
- env: PUPPET_GEM_VERSION='~> 3.0'
10
+ - rvm: '2.7'
11
+ env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#main'
12
+ - rvm: '2.7'
13
+ env: PUPPET_GEM_VERSION='~> 7.0' COVERAGE=yes
14
+ - rvm: '2.6'
15
+ env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
16
+ - rvm: '2.5'
17
+ env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
18
+ - rvm: '2.4'
19
+ env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
20
+ - rvm: '2.4'
21
+ env: PUPPET_GEM_VERSION='~> 5.0' COVERAGE=yes
21
22
  notifications:
22
23
  email: false
data/CHANGELOG.md CHANGED
@@ -1,6 +1,252 @@
1
- # Change log
2
- All notable changes to this project will be documented in this file.
3
- This project adheres to [Semantic Versioning](http://semver.org/).
1
+ # Changelog
2
+
3
+ All significant changes to this repo will be summarized in this file.
4
+
5
+
6
+ ## [v4.0.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v4.0.1) (2021-08-23)
7
+
8
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v4.0.0...v4.0.1)
9
+
10
+ **Fixed bugs:**
11
+
12
+ - \(PDK-1717\) Add guard clause to module path dir enum loop [\#342](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/342) ([sanfrancrisko](https://github.com/sanfrancrisko))
13
+
14
+ **Merged pull requests:**
15
+
16
+ - Release prep for v4.0.0 [\#341](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/341) ([da-ar](https://github.com/da-ar))
17
+
18
+ ## [v4.0.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v4.0.0) (2021-07-26)
19
+
20
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v3.0.0...v4.0.0)
21
+
22
+ **Implemented enhancements:**
23
+
24
+ - Use Rubocop's Github Actions formatter if possible [\#340](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/340) ([ekohl](https://github.com/ekohl))
25
+ - Remove beaker integration [\#338](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/338) ([ekohl](https://github.com/ekohl))
26
+
27
+ **Merged pull requests:**
28
+
29
+ - Upgrade to GitHub-native Dependabot [\#336](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/336) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
30
+ - \(IAC-1452\) - removal of Inappropriate Terminology [\#335](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/335) ([david22swan](https://github.com/david22swan))
31
+ - Add gemspec required\_ruby\_version [\#334](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/334) ([alexjfisher](https://github.com/alexjfisher))
32
+
33
+ ## [v3.0.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v3.0.0) (2021-02-10)
34
+
35
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.16.0...v3.0.0)
36
+
37
+ **Implemented enhancements:**
38
+
39
+ - dropping rubies before 2.4 [\#332](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/332) ([DavidS](https://github.com/DavidS))
40
+ - Remove i18n/gettext task [\#331](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/331) ([DavidS](https://github.com/DavidS))
41
+ - Restructure PuppetLint rake tasks so they can be configurable [\#330](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/330) ([nmaludy](https://github.com/nmaludy))
42
+
43
+ **Merged pull requests:**
44
+
45
+ - Release prep for v3.0.0 [\#333](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/333) ([DavidS](https://github.com/DavidS))
46
+
47
+ ## [v2.16.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.16.0) (2021-01-18)
48
+
49
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.15.0...v2.16.0)
50
+
51
+ **Implemented enhancements:**
52
+
53
+ - Add a check task [\#327](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/327) ([ekohl](https://github.com/ekohl))
54
+ - Update fixtures from forge when the module version doesn't match; fix git \< 2.7 compatibility [\#269](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/269) ([nabertrand](https://github.com/nabertrand))
55
+ - Add all spec/lib directories from fixtures to LOAD\_PATH [\#233](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/233) ([nabertrand](https://github.com/nabertrand))
56
+
57
+ **Merged pull requests:**
58
+
59
+ - Release prep for v2.16.0 [\#329](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/329) ([DavidS](https://github.com/DavidS))
60
+ - Update pathspec requirement from ~\> 0.2.1 to \>= 0.2.1, \< 1.1.0 [\#328](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/328) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
61
+ - Update rubocop requirement from = 0.49 to 0.57.2; prepare for future move to 1.3.1 [\#322](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/322) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
62
+
63
+ ## [v2.15.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.15.0) (2020-06-12)
64
+
65
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.1...v2.15.0)
66
+
67
+ **Implemented enhancements:**
68
+
69
+ - Add Ruby 2.6/Puppet6 to CI matrix [\#311](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/311) ([bastelfreak](https://github.com/bastelfreak))
70
+ - \(GH-297\) Don't allow git refs with forward slashes [\#299](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/299) ([glennsarti](https://github.com/glennsarti))
71
+ - Accept `:tag` for consistency with r10k [\#296](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/296) ([binford2k](https://github.com/binford2k))
72
+ - \(maint\) migrate the changelog task from pdk-templates [\#278](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/278) ([DavidS](https://github.com/DavidS))
73
+
74
+ **Fixed bugs:**
75
+
76
+ - \(MAINT\) Fix initialize of Gettext call [\#292](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/292) ([ThoughtCrhyme](https://github.com/ThoughtCrhyme))
77
+
78
+ **Merged pull requests:**
79
+
80
+ - \(IAC-885\) - Release Prep 2.15.0 [\#318](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/318) ([pmcmaw](https://github.com/pmcmaw))
81
+ - \(IAC-859\) Update all the gems and ruby to 2.7 [\#316](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/316) ([DavidS](https://github.com/DavidS))
82
+ - Support git fixture branches containing slashes [\#297](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/297) ([trevor-vaughan](https://github.com/trevor-vaughan))
83
+ - \(maint\) Require pdk/util in build:pdk rake task [\#295](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/295) ([rodjek](https://github.com/rodjek))
84
+ - Ignore plans folder and any subfolder [\#294](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/294) ([cyberious](https://github.com/cyberious))
85
+ - \(maint\) add codeowners file [\#293](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/293) ([tphoney](https://github.com/tphoney))
86
+ - \(MAINT\) Removes old rubies and puppet versions [\#290](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/290) ([logicminds](https://github.com/logicminds))
87
+ - Remove coveralls docs [\#289](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/289) ([DavidS](https://github.com/DavidS))
88
+ - Download forge modules in parallel [\#284](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/284) ([logicminds](https://github.com/logicminds))
89
+
90
+ ## [v2.14.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.1) (2019-03-26)
91
+
92
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.0...v2.14.1)
93
+
94
+ **Fixed bugs:**
95
+
96
+ - Revert "\(feat\) dont load the beaker if litmus is there" [\#286](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/286) ([pmcmaw](https://github.com/pmcmaw))
97
+
98
+ **Merged pull requests:**
99
+
100
+ - \(MODULES-8778\) - Release Prep 2.14.1 [\#287](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/287) ([pmcmaw](https://github.com/pmcmaw))
101
+
102
+ ## [v2.14.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.0) (2019-03-25)
103
+
104
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.1...v2.14.0)
105
+
106
+ **Implemented enhancements:**
107
+
108
+ - \(feat\) dont load the beaker if litmus is there [\#281](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/281) ([tphoney](https://github.com/tphoney))
109
+ - \(maint\) load rake tasks from optional libraries [\#279](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/279) ([DavidS](https://github.com/DavidS))
110
+ - Document how to set default values for fixture loading [\#277](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/277) ([Felixoid](https://github.com/Felixoid))
111
+
112
+ **Fixed bugs:**
113
+
114
+ - Remove `--color` from everywhere, use RSpec default detection instead [\#280](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/280) ([DavidS](https://github.com/DavidS))
115
+
116
+ **Merged pull requests:**
117
+
118
+ - \(MODULES-8771\) - Release Prep 2.14.0 [\#282](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/282) ([pmcmaw](https://github.com/pmcmaw))
119
+
120
+ ## [v2.13.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.1) (2019-01-15)
121
+
122
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.0...v2.13.1)
123
+
124
+ **Fixed bugs:**
125
+
126
+ - Revert "\(MODULES-8242\) - Fix CI\_SPEC\_OPTIONS failing" [\#275](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/275) ([rodjek](https://github.com/rodjek))
127
+
128
+ **Merged pull requests:**
129
+
130
+ - Release Prep 2.13.1 [\#276](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/276) ([bmjen](https://github.com/bmjen))
131
+
132
+ ## [v2.13.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.0) (2019-01-11)
133
+
134
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.12.0...v2.13.0)
135
+
136
+ **Implemented enhancements:**
137
+
138
+ - \(PDK-1199\) Honour .{pdk,git}ignore in check:symlinks rake task [\#267](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/267) ([rodjek](https://github.com/rodjek))
139
+ - \(PDK-1137\) Determine module name from metadata when possible [\#265](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/265) ([rodjek](https://github.com/rodjek))
140
+
141
+ **Fixed bugs:**
142
+
143
+ - \(MODULES-8242\) - Fix CI\_SPEC\_OPTIONS failing [\#268](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/268) ([stamm](https://github.com/stamm))
144
+ - \(PDK-997\) Remove Dir.chdir call from check:test\_file task [\#266](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/266) ([rodjek](https://github.com/rodjek))
145
+
146
+ **Merged pull requests:**
147
+
148
+ - \(MODULES-8448\) - Release Prep 2.13.0 [\#273](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/273) ([pmcmaw](https://github.com/pmcmaw))
149
+ - \(maint\) - Resolving bundler ruby version failure, updating tests to include puppet 6 [\#271](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/271) ([pmcmaw](https://github.com/pmcmaw))
150
+ - \(MAINT\) Add Plans Path Exclusion [\#270](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/270) ([RandomNoun7](https://github.com/RandomNoun7))
151
+
152
+ ## [v2.12.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.12.0) (2018-11-08)
153
+
154
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.11.0...v2.12.0)
155
+
156
+ **Implemented enhancements:**
157
+
158
+ - Added tasks to rspec pattern. [\#261](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/261) ([dylanratcliffe](https://github.com/dylanratcliffe))
159
+ - \(PDK-1100\) Use PDK to build module packages [\#260](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/260) ([rodjek](https://github.com/rodjek))
160
+
161
+ **Fixed bugs:**
162
+
163
+ - \(bugfix\) ignore bundle directory, for symlinks [\#263](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/263) ([tphoney](https://github.com/tphoney))
164
+ - \(MODULES-7273\) - Raise error when fixture ref invalid [\#262](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/262) ([eimlav](https://github.com/eimlav))
165
+
166
+ **Merged pull requests:**
167
+
168
+ - 2.12.0 Release Prep [\#264](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/264) ([tphoney](https://github.com/tphoney))
169
+
170
+ ## [v2.11.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.11.0) (2018-09-26)
171
+
172
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.10.0...v2.11.0)
173
+
174
+ **Implemented enhancements:**
175
+
176
+ - \(MODULES-7856\) Allow optional repositories based on puppet version [\#258](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/258) ([joshcooper](https://github.com/joshcooper))
177
+
178
+ **Fixed bugs:**
179
+
180
+ - Fix example conversion from mocha to rspec mocks. [\#257](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/257) ([vStone](https://github.com/vStone))
181
+
182
+ **Merged pull requests:**
183
+
184
+ - \(MODULES-7858\) - 2.11.0 Release Prep [\#259](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/259) ([pmcmaw](https://github.com/pmcmaw))
185
+
186
+ ## [v2.10.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.10.0) (2018-08-30)
187
+
188
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.1...v2.10.0)
189
+
190
+ **Implemented enhancements:**
191
+
192
+ - \(feat\) add puppet lint fix task [\#255](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/255) ([tphoney](https://github.com/tphoney))
193
+ - add support to override the allowed test tiers [\#253](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/253) ([b4ldr](https://github.com/b4ldr))
194
+
195
+ **Merged pull requests:**
196
+
197
+ - \(maint\) - Release prep for 2.10.0 [\#256](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/256) ([tphoney](https://github.com/tphoney))
198
+ - Update documentation for older Puppet versions [\#254](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/254) ([op-ct](https://github.com/op-ct))
199
+ - update README [\#252](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/252) ([b4ldr](https://github.com/b4ldr))
200
+
201
+ ## [v2.9.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.1) (2018-06-20)
202
+
203
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.0...v2.9.1)
204
+
205
+ **Fixed bugs:**
206
+
207
+ - \(PDK-1031\) Remove thread-unsafe Dir.chdir usage [\#249](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/249) ([rodjek](https://github.com/rodjek))
208
+ - \(PDK-1033\) Use `--unshallow` when fetching a ref [\#247](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/247) ([DavidS](https://github.com/DavidS))
209
+
210
+ **Merged pull requests:**
211
+
212
+ - \(maint\) - Release prep for 2.9.1 [\#251](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/251) ([pmcmaw](https://github.com/pmcmaw))
213
+
214
+ ## [v2.9.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.0) (2018-06-18)
215
+
216
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...v2.9.0)
217
+
218
+ **Implemented enhancements:**
219
+
220
+ - \(maint\) adding ruby code coverage setup and rake task [\#245](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/245) ([tphoney](https://github.com/tphoney))
221
+
222
+ **Merged pull requests:**
223
+
224
+ - Release prep 2.9.0 [\#248](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/248) ([DavidS](https://github.com/DavidS))
225
+ - Stable development structure for this gem [\#246](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/246) ([cardil](https://github.com/cardil))
226
+
227
+ # Previous Changes
228
+
229
+ ## [2.8.0]
230
+ ### Summary
231
+ This feature release adds a new rake task `parallel_spec_standalone` which is a parallel version of `spec_standalone`
232
+
233
+ ### Added
234
+ - `parallel_spec_standalone` rake task
235
+ - `spec_clean_symlinks` rake task to just clean symlink fixtures, not all fixtures
236
+ - Leave downloaded fixtures on test failure to speed up test runs.
237
+ - Update already-existing fixtures instead of doing nothing to them.
238
+
239
+ ## [2.7.0]
240
+ ### Summary
241
+ Feature release to begin moving away from mocha as a testing (specifically, mocking) framework for modules.
242
+
243
+ ### Added
244
+ - spec/plans/**/*_spec.rb to spec discovery pattern
245
+ - [mocha as default](README.md#mock_with) test framework unless explicitly set by a module
246
+
247
+ ### Fixed
248
+ - parsing for test tiers in beaker rake task
249
+ - module_spec_helper compatibility with mocha 1.5.0
4
250
 
5
251
  ## [2.6.2]
6
252
  ### Summary
@@ -62,7 +308,7 @@ Cleanups and fixes around fixture handling.
62
308
  Adds a `spec_list_json` rake task
63
309
 
64
310
  ### Added
65
- - `spec_list_json` rake task to output a module's spec tests as a JSON document
311
+ - `spec_list_json` rake task to output a module's spec tests as a JSON document
66
312
 
67
313
  ## [2.3.0]
68
314
  ### Added
@@ -430,7 +676,9 @@ compatible yet.
430
676
  ### Added
431
677
  * Initial release
432
678
 
433
- [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.2...master
679
+ [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...main
680
+ [2.8.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.7.0...v2.8.0
681
+ [2.7.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.2...v2.7.0
434
682
  [2.6.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.1...v2.6.2
435
683
  [2.6.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.1...v2.6.1
436
684
  [2.5.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.0...v2.5.1
@@ -474,3 +722,6 @@ compatible yet.
474
722
  [0.3.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.2.0...0.3.0
475
723
  [0.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.1.0...0.2.0
476
724
  [0.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.0.0...0.1.0
725
+
726
+
727
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/CODEOWNERS ADDED
@@ -0,0 +1,2 @@
1
+ # Default owners.
2
+ * @puppetlabs/pdk @puppetlabs/modules
data/Gemfile CHANGED
@@ -1,22 +1,42 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
4
+
5
+ def location_for(place_or_version, fake_version = nil)
6
+ git_url_regex = %r{\A(?<url>(?:https?|git)[:@][^#]*)(?:#(?<branch>.*))?}
7
+ file_url_regex = %r{\Afile://(?<path>.*)}
8
+
9
+ if place_or_version && (git_url = place_or_version.match(git_url_regex))
10
+ [fake_version, { git: git_url[:url], branch: git_url[:branch], require: false }].compact
11
+ elsif place_or_version && (file_url = place_or_version.match(file_url_regex))
12
+ ['>= 0', { path: File.expand_path(file_url[:path]), require: false }]
13
+ else
14
+ [place_or_version, { require: false }]
15
+ end
16
+ end
2
17
 
3
18
  # Specify the global dependencies in puppetlabs_spec_helper.gemspec
4
19
  # Note that only ruby 1.9 compatible dependencies may go there, everything else needs to be documented and pulled in manually, and optionally by everyone who wants to use the extended features.
5
20
  gemspec
6
21
 
22
+ def infer_puppet_version
23
+ # Infer the Puppet Gem version based on the Ruby Version
24
+ ruby_ver = Gem::Version.new(RUBY_VERSION.dup)
25
+ return '~> 7.0' if ruby_ver >= Gem::Version.new('2.7.0')
26
+ return '~> 6.0' if ruby_ver >= Gem::Version.new('2.5.0')
27
+ '~> 5.0'
28
+ end
29
+
7
30
  group :development do
8
- gem "puppet", ENV['PUPPET_GEM_VERSION'] || ENV['PUPPET_VERSION'] || '~> 4.0'
9
- if RUBY_VERSION =~ /^1\./
10
- gem 'rubocop', '0.41.2'
11
- else
12
- gem 'rubocop'
13
- gem 'rubocop-rspec', '~> 1.6' if RUBY_VERSION >= '2.3.0'
31
+ gem 'codecov'
32
+ gem 'github_changelog_generator' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.0')
33
+ gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'] || ENV['PUPPET_VERSION'] || infer_puppet_version)
34
+ gem 'simplecov', '~> 0'
35
+ gem 'simplecov-console'
36
+ if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.4')
37
+ gem 'rubocop', '0.57.2'
38
+ gem 'rubocop-rspec'
14
39
  end
15
40
  end
16
41
 
17
- # json_pure 2.0.2 added a requirement on ruby >= 2. We pin to json_pure 2.0.1
18
- # if using ruby 1.x
19
- gem 'json_pure', '<=2.0.1', :require => false if RUBY_VERSION =~ /^1\./
20
- gem 'rack', '~> 1'
21
-
22
42
  # vim:filetype=ruby