puppetlabs_spec_helper 2.7.0 → 3.0.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.
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,209 @@
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
+ ## [v3.0.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v3.0.0) (2021-02-10)
7
+
8
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.16.0...v3.0.0)
9
+
10
+ **Implemented enhancements:**
11
+
12
+ - dropping rubies before 2.4 [\#332](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/332) ([DavidS](https://github.com/DavidS))
13
+ - Remove i18n/gettext task [\#331](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/331) ([DavidS](https://github.com/DavidS))
14
+ - Restructure PuppetLint rake tasks so they can be configurable [\#330](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/330) ([nmaludy](https://github.com/nmaludy))
15
+
16
+ ## [v2.16.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.16.0) (2021-01-18)
17
+
18
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.15.0...v2.16.0)
19
+
20
+ **Implemented enhancements:**
21
+
22
+ - Add a check task [\#327](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/327) ([ekohl](https://github.com/ekohl))
23
+ - 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))
24
+ - 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))
25
+
26
+ **Merged pull requests:**
27
+
28
+ - Release prep for v2.16.0 [\#329](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/329) ([DavidS](https://github.com/DavidS))
29
+ - 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))
30
+ - 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))
31
+
32
+ ## [v2.15.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.15.0) (2020-06-12)
33
+
34
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.1...v2.15.0)
35
+
36
+ **Implemented enhancements:**
37
+
38
+ - Add Ruby 2.6/Puppet6 to CI matrix [\#311](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/311) ([bastelfreak](https://github.com/bastelfreak))
39
+ - \(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))
40
+ - Accept `:tag` for consistency with r10k [\#296](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/296) ([binford2k](https://github.com/binford2k))
41
+ - \(maint\) migrate the changelog task from pdk-templates [\#278](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/278) ([DavidS](https://github.com/DavidS))
42
+
43
+ **Fixed bugs:**
44
+
45
+ - \(MAINT\) Fix initialize of Gettext call [\#292](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/292) ([ThoughtCrhyme](https://github.com/ThoughtCrhyme))
46
+
47
+ **Merged pull requests:**
48
+
49
+ - \(IAC-885\) - Release Prep 2.15.0 [\#318](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/318) ([pmcmaw](https://github.com/pmcmaw))
50
+ - \(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))
51
+ - Support git fixture branches containing slashes [\#297](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/297) ([trevor-vaughan](https://github.com/trevor-vaughan))
52
+ - \(maint\) Require pdk/util in build:pdk rake task [\#295](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/295) ([rodjek](https://github.com/rodjek))
53
+ - Ignore plans folder and any subfolder [\#294](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/294) ([cyberious](https://github.com/cyberious))
54
+ - \(maint\) add codeowners file [\#293](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/293) ([tphoney](https://github.com/tphoney))
55
+ - \(MAINT\) Removes old rubies and puppet versions [\#290](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/290) ([logicminds](https://github.com/logicminds))
56
+ - Remove coveralls docs [\#289](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/289) ([DavidS](https://github.com/DavidS))
57
+ - Download forge modules in parallel [\#284](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/284) ([logicminds](https://github.com/logicminds))
58
+
59
+ ## [v2.14.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.1) (2019-03-26)
60
+
61
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.0...v2.14.1)
62
+
63
+ **Fixed bugs:**
64
+
65
+ - 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))
66
+
67
+ **Merged pull requests:**
68
+
69
+ - \(MODULES-8778\) - Release Prep 2.14.1 [\#287](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/287) ([pmcmaw](https://github.com/pmcmaw))
70
+
71
+ ## [v2.14.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.0) (2019-03-25)
72
+
73
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.1...v2.14.0)
74
+
75
+ **Implemented enhancements:**
76
+
77
+ - \(feat\) dont load the beaker if litmus is there [\#281](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/281) ([tphoney](https://github.com/tphoney))
78
+ - \(maint\) load rake tasks from optional libraries [\#279](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/279) ([DavidS](https://github.com/DavidS))
79
+ - Document how to set default values for fixture loading [\#277](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/277) ([Felixoid](https://github.com/Felixoid))
80
+
81
+ **Fixed bugs:**
82
+
83
+ - Remove `--color` from everywhere, use RSpec default detection instead [\#280](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/280) ([DavidS](https://github.com/DavidS))
84
+
85
+ **Merged pull requests:**
86
+
87
+ - \(MODULES-8771\) - Release Prep 2.14.0 [\#282](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/282) ([pmcmaw](https://github.com/pmcmaw))
88
+
89
+ ## [v2.13.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.1) (2019-01-15)
90
+
91
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.0...v2.13.1)
92
+
93
+ **Fixed bugs:**
94
+
95
+ - Revert "\(MODULES-8242\) - Fix CI\_SPEC\_OPTIONS failing" [\#275](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/275) ([rodjek](https://github.com/rodjek))
96
+
97
+ **Merged pull requests:**
98
+
99
+ - Release Prep 2.13.1 [\#276](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/276) ([bmjen](https://github.com/bmjen))
100
+
101
+ ## [v2.13.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.0) (2019-01-11)
102
+
103
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.12.0...v2.13.0)
104
+
105
+ **Implemented enhancements:**
106
+
107
+ - \(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))
108
+ - \(PDK-1137\) Determine module name from metadata when possible [\#265](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/265) ([rodjek](https://github.com/rodjek))
109
+
110
+ **Fixed bugs:**
111
+
112
+ - \(MODULES-8242\) - Fix CI\_SPEC\_OPTIONS failing [\#268](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/268) ([stamm](https://github.com/stamm))
113
+ - \(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))
114
+
115
+ **Merged pull requests:**
116
+
117
+ - \(MODULES-8448\) - Release Prep 2.13.0 [\#273](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/273) ([pmcmaw](https://github.com/pmcmaw))
118
+ - \(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))
119
+ - \(MAINT\) Add Plans Path Exclusion [\#270](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/270) ([RandomNoun7](https://github.com/RandomNoun7))
120
+
121
+ ## [v2.12.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.12.0) (2018-11-08)
122
+
123
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.11.0...v2.12.0)
124
+
125
+ **Implemented enhancements:**
126
+
127
+ - Added tasks to rspec pattern. [\#261](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/261) ([dylanratcliffe](https://github.com/dylanratcliffe))
128
+ - \(PDK-1100\) Use PDK to build module packages [\#260](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/260) ([rodjek](https://github.com/rodjek))
129
+
130
+ **Fixed bugs:**
131
+
132
+ - \(bugfix\) ignore bundle directory, for symlinks [\#263](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/263) ([tphoney](https://github.com/tphoney))
133
+ - \(MODULES-7273\) - Raise error when fixture ref invalid [\#262](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/262) ([eimlav](https://github.com/eimlav))
134
+
135
+ **Merged pull requests:**
136
+
137
+ - 2.12.0 Release Prep [\#264](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/264) ([tphoney](https://github.com/tphoney))
138
+
139
+ ## [v2.11.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.11.0) (2018-09-26)
140
+
141
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.10.0...v2.11.0)
142
+
143
+ **Implemented enhancements:**
144
+
145
+ - \(MODULES-7856\) Allow optional repositories based on puppet version [\#258](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/258) ([joshcooper](https://github.com/joshcooper))
146
+
147
+ **Fixed bugs:**
148
+
149
+ - Fix example conversion from mocha to rspec mocks. [\#257](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/257) ([vStone](https://github.com/vStone))
150
+
151
+ **Merged pull requests:**
152
+
153
+ - \(MODULES-7858\) - 2.11.0 Release Prep [\#259](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/259) ([pmcmaw](https://github.com/pmcmaw))
154
+
155
+ ## [v2.10.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.10.0) (2018-08-30)
156
+
157
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.1...v2.10.0)
158
+
159
+ **Implemented enhancements:**
160
+
161
+ - \(feat\) add puppet lint fix task [\#255](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/255) ([tphoney](https://github.com/tphoney))
162
+ - add support to override the allowed test tiers [\#253](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/253) ([b4ldr](https://github.com/b4ldr))
163
+
164
+ **Merged pull requests:**
165
+
166
+ - \(maint\) - Release prep for 2.10.0 [\#256](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/256) ([tphoney](https://github.com/tphoney))
167
+ - Update documentation for older Puppet versions [\#254](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/254) ([op-ct](https://github.com/op-ct))
168
+ - update README [\#252](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/252) ([b4ldr](https://github.com/b4ldr))
169
+
170
+ ## [v2.9.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.1) (2018-06-20)
171
+
172
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.0...v2.9.1)
173
+
174
+ **Fixed bugs:**
175
+
176
+ - \(PDK-1031\) Remove thread-unsafe Dir.chdir usage [\#249](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/249) ([rodjek](https://github.com/rodjek))
177
+ - \(PDK-1033\) Use `--unshallow` when fetching a ref [\#247](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/247) ([DavidS](https://github.com/DavidS))
178
+
179
+ **Merged pull requests:**
180
+
181
+ - \(maint\) - Release prep for 2.9.1 [\#251](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/251) ([pmcmaw](https://github.com/pmcmaw))
182
+
183
+ ## [v2.9.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.0) (2018-06-18)
184
+
185
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...v2.9.0)
186
+
187
+ **Implemented enhancements:**
188
+
189
+ - \(maint\) adding ruby code coverage setup and rake task [\#245](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/245) ([tphoney](https://github.com/tphoney))
190
+
191
+ **Merged pull requests:**
192
+
193
+ - Release prep 2.9.0 [\#248](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/248) ([DavidS](https://github.com/DavidS))
194
+ - Stable development structure for this gem [\#246](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/246) ([cardil](https://github.com/cardil))
195
+
196
+ # Previous Changes
197
+
198
+ ## [2.8.0]
199
+ ### Summary
200
+ This feature release adds a new rake task `parallel_spec_standalone` which is a parallel version of `spec_standalone`
201
+
202
+ ### Added
203
+ - `parallel_spec_standalone` rake task
204
+ - `spec_clean_symlinks` rake task to just clean symlink fixtures, not all fixtures
205
+ - Leave downloaded fixtures on test failure to speed up test runs.
206
+ - Update already-existing fixtures instead of doing nothing to them.
4
207
 
5
208
  ## [2.7.0]
6
209
  ### Summary
@@ -74,7 +277,7 @@ Cleanups and fixes around fixture handling.
74
277
  Adds a `spec_list_json` rake task
75
278
 
76
279
  ### Added
77
- - `spec_list_json` rake task to output a module's spec tests as a JSON document
280
+ - `spec_list_json` rake task to output a module's spec tests as a JSON document
78
281
 
79
282
  ## [2.3.0]
80
283
  ### Added
@@ -442,7 +645,8 @@ compatible yet.
442
645
  ### Added
443
646
  * Initial release
444
647
 
445
- [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.7.0...master
648
+ [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...master
649
+ [2.8.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.7.0...v2.8.0
446
650
  [2.7.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.2...v2.7.0
447
651
  [2.6.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.1...v2.6.2
448
652
  [2.6.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.1...v2.6.1
@@ -487,3 +691,6 @@ compatible yet.
487
691
  [0.3.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.2.0...0.3.0
488
692
  [0.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.1.0...0.2.0
489
693
  [0.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.0.0...0.1.0
694
+
695
+
696
+ \* *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