puppetlabs_spec_helper 2.14.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +15 -0
- data/.rubocop.yml +23 -6
- data/.rubocop_todo.yml +18 -18
- data/.travis.yml +14 -26
- data/CHANGELOG.md +87 -2
- data/CODEOWNERS +2 -0
- data/Gemfile +28 -10
- data/HISTORY.md +1 -1
- data/README.md +11 -34
- data/Rakefile +1 -1
- data/lib/puppetlabs_spec_helper/module_spec_helper.rb +10 -0
- data/lib/puppetlabs_spec_helper/puppet_spec_helper.rb +4 -2
- data/lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb +2 -0
- data/lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb +7 -2
- data/lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb +4 -2
- data/lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb +5 -2
- data/lib/puppetlabs_spec_helper/puppetlabs_spec_helper.rb +2 -0
- data/lib/puppetlabs_spec_helper/rake_tasks.rb +131 -78
- data/lib/puppetlabs_spec_helper/tasks/check_symlinks.rb +4 -1
- data/lib/puppetlabs_spec_helper/tasks/fixtures.rb +161 -91
- data/lib/puppetlabs_spec_helper/version.rb +3 -1
- data/puppet_spec_helper.rb +2 -0
- data/puppetlabs_spec_helper.gemspec +8 -7
- data/puppetlabs_spec_helper.rb +2 -0
- metadata +61 -50
- data/lib/puppetlabs_spec_helper/tasks/beaker.rb +0 -112
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f934201ede34e89f4c04e3cfa7b952e6e31b883163c06138833f3d1ec631d33d
|
4
|
+
data.tar.gz: 69202a2e69af3b92d9fe44298916005791d52f227d0151826dee267d8f3a10dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962d07bc1fd4b324754d124e4c30619e238e342a18032ae210aa26531c61be9d4ecd7572e88e564ae4533d01c58a1abf9d907f0c89f8d3f59f2b136140913969
|
7
|
+
data.tar.gz: 452342796faa97b4d2b4cb4a16c06476358233de3e4ea7cf6d2f52f1c066807b6387bc4488072c4d424640db6706cf4f9047a4daf8740dd6c9c32016a865d721
|
@@ -0,0 +1,15 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: daily
|
7
|
+
time: "13:00"
|
8
|
+
open-pull-requests-limit: 10
|
9
|
+
ignore:
|
10
|
+
- dependency-name: rubocop
|
11
|
+
versions:
|
12
|
+
- "> 0.49, < 1"
|
13
|
+
- dependency-name: rubocop
|
14
|
+
versions:
|
15
|
+
- ">= 1.a, < 2"
|
data/.rubocop.yml
CHANGED
@@ -2,7 +2,9 @@ require: rubocop-rspec
|
|
2
2
|
inherit_from: .rubocop_todo.yml
|
3
3
|
|
4
4
|
AllCops:
|
5
|
-
TargetRubyVersion:
|
5
|
+
TargetRubyVersion: 2.4
|
6
|
+
# let dependabot find the rough spots for us
|
7
|
+
NewCops: enable
|
6
8
|
Exclude:
|
7
9
|
# binstubs, and other utilities
|
8
10
|
- bin/**/*
|
@@ -14,10 +16,6 @@ AllCops:
|
|
14
16
|
- package-testing/vendor/**/*
|
15
17
|
- package-testing/vendor/**/.*
|
16
18
|
|
17
|
-
Layout/IndentHeredoc:
|
18
|
-
Description: The `squiggly` style would be preferable, but is only available from ruby 2.3. We'll enable this when we can.
|
19
|
-
Enabled: False
|
20
|
-
|
21
19
|
# Metrics, excludes complexity and sizing metrics for now, as ruby's defaults are very strict
|
22
20
|
Metrics/AbcSize:
|
23
21
|
Enabled: False
|
@@ -128,7 +126,11 @@ Style/TrailingCommaInArguments:
|
|
128
126
|
Description: Prefer always trailing comma on multiline argument lists. This makes diffs, and re-ordering nicer.
|
129
127
|
EnforcedStyleForMultiline: comma
|
130
128
|
|
131
|
-
Style/
|
129
|
+
Style/TrailingCommaInArrayLiteral:
|
130
|
+
Description: Prefer always trailing comma on multiline literals. This makes diffs, and re-ordering nicer.
|
131
|
+
EnforcedStyleForMultiline: comma
|
132
|
+
|
133
|
+
Style/TrailingCommaInHashLiteral:
|
132
134
|
Description: Prefer always trailing comma on multiline literals. This makes diffs, and re-ordering nicer.
|
133
135
|
EnforcedStyleForMultiline: comma
|
134
136
|
|
@@ -136,3 +138,18 @@ Style/SymbolArray:
|
|
136
138
|
Description: Using percent style obscures symbolic intent of array's contents.
|
137
139
|
Enabled: true
|
138
140
|
EnforcedStyle: brackets
|
141
|
+
|
142
|
+
# Enforce LF line endings, even when on Windows
|
143
|
+
Layout/EndOfLine:
|
144
|
+
EnforcedStyle: lf
|
145
|
+
|
146
|
+
Style/AccessModifierDeclarations:
|
147
|
+
EnforcedStyle: inline
|
148
|
+
|
149
|
+
RSpec/ContextWording:
|
150
|
+
Prefixes:
|
151
|
+
- and
|
152
|
+
- but
|
153
|
+
- when
|
154
|
+
- with
|
155
|
+
- without
|
data/.rubocop_todo.yml
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2021-02-09 10:30:38 +0000 using RuboCop version 0.57.2.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
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
|
+
|
9
17
|
# Offense count: 4
|
10
18
|
# Configuration parameters: AllowSafeAssignment.
|
11
19
|
Lint/AssignmentInCondition:
|
@@ -14,26 +22,16 @@ Lint/AssignmentInCondition:
|
|
14
22
|
- 'lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb'
|
15
23
|
- 'lib/puppetlabs_spec_helper/rake_tasks.rb'
|
16
24
|
|
17
|
-
# Offense count:
|
18
|
-
# Cop supports --auto-correct.
|
19
|
-
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
|
20
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
21
|
-
Lint/EndAlignment:
|
22
|
-
Exclude:
|
23
|
-
- 'lib/puppetlabs_spec_helper/rake_tasks.rb'
|
24
|
-
- 'spec/watchr.rb'
|
25
|
-
|
26
|
-
# Offense count: 4
|
25
|
+
# Offense count: 7
|
27
26
|
Lint/HandleExceptions:
|
28
27
|
Exclude:
|
29
28
|
- 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
|
30
29
|
- 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
|
31
30
|
- 'lib/puppetlabs_spec_helper/rake_tasks.rb'
|
32
31
|
|
33
|
-
# Offense count:
|
32
|
+
# Offense count: 1
|
34
33
|
Lint/UselessAssignment:
|
35
34
|
Exclude:
|
36
|
-
- 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
|
37
35
|
- 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
|
38
36
|
|
39
37
|
# Offense count: 2
|
@@ -50,10 +48,11 @@ RSpec/InstanceVariable:
|
|
50
48
|
- 'spec/acceptance/smoke_spec.rb'
|
51
49
|
|
52
50
|
# Offense count: 6
|
51
|
+
# Configuration parameters: AggregateFailuresByDefault.
|
53
52
|
RSpec/MultipleExpectations:
|
54
53
|
Max: 3
|
55
54
|
|
56
|
-
# Offense count:
|
55
|
+
# Offense count: 18
|
57
56
|
RSpec/NamedSubject:
|
58
57
|
Exclude:
|
59
58
|
- 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
|
@@ -71,7 +70,8 @@ Security/Eval:
|
|
71
70
|
- 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
|
72
71
|
|
73
72
|
# Offense count: 4
|
74
|
-
#
|
73
|
+
# Cop supports --auto-correct.
|
74
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
75
75
|
# SupportedStyles: nested, compact
|
76
76
|
Style/ClassAndModuleChildren:
|
77
77
|
Exclude:
|
@@ -79,7 +79,7 @@ Style/ClassAndModuleChildren:
|
|
79
79
|
- 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
|
80
80
|
- 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
|
81
81
|
|
82
|
-
# Offense count:
|
82
|
+
# Offense count: 14
|
83
83
|
Style/Documentation:
|
84
84
|
Exclude:
|
85
85
|
- 'spec/**/*'
|
@@ -88,8 +88,8 @@ Style/Documentation:
|
|
88
88
|
- 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
|
89
89
|
- 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
|
90
90
|
- 'lib/puppetlabs_spec_helper/tasks/beaker.rb'
|
91
|
-
- 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
|
92
91
|
- 'lib/puppetlabs_spec_helper/tasks/check_symlinks.rb'
|
92
|
+
- 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
|
93
93
|
|
94
94
|
# Offense count: 1
|
95
95
|
Style/DoubleNegation:
|
@@ -111,7 +111,7 @@ Style/GuardClause:
|
|
111
111
|
|
112
112
|
# Offense count: 1
|
113
113
|
# Cop supports --auto-correct.
|
114
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle
|
114
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
115
115
|
# SupportedStyles: predicate, comparison
|
116
116
|
Style/NumericPredicate:
|
117
117
|
Exclude:
|
data/.travis.yml
CHANGED
@@ -1,35 +1,23 @@
|
|
1
|
-
|
1
|
+
os: linux
|
2
|
+
dist: xenial
|
2
3
|
language: ruby
|
3
4
|
cache: bundler
|
4
|
-
before_install:
|
5
|
-
|
6
|
-
|
7
|
-
matrix:
|
5
|
+
before_install: bundle -v
|
6
|
+
script: bundle exec rake
|
7
|
+
jobs:
|
8
8
|
fast_finish: true
|
9
9
|
include:
|
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
|
10
16
|
- rvm: '2.5'
|
11
|
-
env: PUPPET_GEM_VERSION='~> 6.0'
|
17
|
+
env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
|
12
18
|
- rvm: '2.4'
|
13
|
-
env: PUPPET_GEM_VERSION='~> 6.0'
|
14
|
-
- rvm: '2.3'
|
15
|
-
env: PUPPET_GEM_VERSION='~> 6.0'
|
19
|
+
env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
|
16
20
|
- rvm: '2.4'
|
17
|
-
env: PUPPET_GEM_VERSION='~> 5.0'
|
18
|
-
- rvm: '2.3'
|
19
|
-
env: PUPPET_GEM_VERSION='~> 5.0'
|
20
|
-
- rvm: '2.1'
|
21
|
-
env: PUPPET_GEM_VERSION='~> 5.0'
|
22
|
-
- rvm: '2.4'
|
23
|
-
env: PUPPET_GEM_VERSION='~> 4.0'
|
24
|
-
- rvm: '2.3'
|
25
|
-
env: PUPPET_GEM_VERSION='~> 4.0'
|
26
|
-
- rvm: '2.1'
|
27
|
-
env: PUPPET_GEM_VERSION='~> 4.0'
|
28
|
-
- rvm: '2.1'
|
29
|
-
env: PUPPET_GEM_VERSION='~> 3.0'
|
30
|
-
- rvm: '2.0'
|
31
|
-
env: PUPPET_GEM_VERSION='~> 3.0'
|
32
|
-
- rvm: '1.9'
|
33
|
-
env: PUPPET_GEM_VERSION='~> 3.0'
|
21
|
+
env: PUPPET_GEM_VERSION='~> 5.0' COVERAGE=yes
|
34
22
|
notifications:
|
35
23
|
email: false
|
data/CHANGELOG.md
CHANGED
@@ -3,14 +3,92 @@
|
|
3
3
|
All significant changes to this repo will be summarized in this file.
|
4
4
|
|
5
5
|
|
6
|
+
## [v4.0.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v4.0.0) (2021-07-26)
|
7
|
+
|
8
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v3.0.0...v4.0.0)
|
9
|
+
|
10
|
+
**Implemented enhancements:**
|
11
|
+
|
12
|
+
- Use Rubocop's Github Actions formatter if possible [\#340](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/340) ([ekohl](https://github.com/ekohl))
|
13
|
+
- Remove beaker integration [\#338](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/338) ([ekohl](https://github.com/ekohl))
|
14
|
+
|
15
|
+
**Merged pull requests:**
|
16
|
+
|
17
|
+
- Upgrade to GitHub-native Dependabot [\#336](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/336) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
18
|
+
- \(IAC-1452\) - removal of Inappropriate Terminology [\#335](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/335) ([david22swan](https://github.com/david22swan))
|
19
|
+
- Add gemspec required\_ruby\_version [\#334](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/334) ([alexjfisher](https://github.com/alexjfisher))
|
20
|
+
|
21
|
+
## [v3.0.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v3.0.0) (2021-02-10)
|
22
|
+
|
23
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.16.0...v3.0.0)
|
24
|
+
|
25
|
+
**Implemented enhancements:**
|
26
|
+
|
27
|
+
- dropping rubies before 2.4 [\#332](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/332) ([DavidS](https://github.com/DavidS))
|
28
|
+
- Remove i18n/gettext task [\#331](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/331) ([DavidS](https://github.com/DavidS))
|
29
|
+
- Restructure PuppetLint rake tasks so they can be configurable [\#330](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/330) ([nmaludy](https://github.com/nmaludy))
|
30
|
+
|
31
|
+
**Merged pull requests:**
|
32
|
+
|
33
|
+
- Release prep for v3.0.0 [\#333](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/333) ([DavidS](https://github.com/DavidS))
|
34
|
+
|
35
|
+
## [v2.16.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.16.0) (2021-01-18)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.15.0...v2.16.0)
|
38
|
+
|
39
|
+
**Implemented enhancements:**
|
40
|
+
|
41
|
+
- Add a check task [\#327](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/327) ([ekohl](https://github.com/ekohl))
|
42
|
+
- 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))
|
43
|
+
- 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))
|
44
|
+
|
45
|
+
**Merged pull requests:**
|
46
|
+
|
47
|
+
- Release prep for v2.16.0 [\#329](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/329) ([DavidS](https://github.com/DavidS))
|
48
|
+
- 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))
|
49
|
+
- 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))
|
50
|
+
|
51
|
+
## [v2.15.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.15.0) (2020-06-12)
|
52
|
+
|
53
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.1...v2.15.0)
|
54
|
+
|
55
|
+
**Implemented enhancements:**
|
56
|
+
|
57
|
+
- Add Ruby 2.6/Puppet6 to CI matrix [\#311](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/311) ([bastelfreak](https://github.com/bastelfreak))
|
58
|
+
- \(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))
|
59
|
+
- Accept `:tag` for consistency with r10k [\#296](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/296) ([binford2k](https://github.com/binford2k))
|
60
|
+
- \(maint\) migrate the changelog task from pdk-templates [\#278](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/278) ([DavidS](https://github.com/DavidS))
|
61
|
+
|
62
|
+
**Fixed bugs:**
|
63
|
+
|
64
|
+
- \(MAINT\) Fix initialize of Gettext call [\#292](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/292) ([ThoughtCrhyme](https://github.com/ThoughtCrhyme))
|
65
|
+
|
66
|
+
**Merged pull requests:**
|
67
|
+
|
68
|
+
- \(IAC-885\) - Release Prep 2.15.0 [\#318](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/318) ([pmcmaw](https://github.com/pmcmaw))
|
69
|
+
- \(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))
|
70
|
+
- Support git fixture branches containing slashes [\#297](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/297) ([trevor-vaughan](https://github.com/trevor-vaughan))
|
71
|
+
- \(maint\) Require pdk/util in build:pdk rake task [\#295](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/295) ([rodjek](https://github.com/rodjek))
|
72
|
+
- Ignore plans folder and any subfolder [\#294](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/294) ([cyberious](https://github.com/cyberious))
|
73
|
+
- \(maint\) add codeowners file [\#293](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/293) ([tphoney](https://github.com/tphoney))
|
74
|
+
- \(MAINT\) Removes old rubies and puppet versions [\#290](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/290) ([logicminds](https://github.com/logicminds))
|
75
|
+
- Remove coveralls docs [\#289](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/289) ([DavidS](https://github.com/DavidS))
|
76
|
+
- Download forge modules in parallel [\#284](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/284) ([logicminds](https://github.com/logicminds))
|
77
|
+
|
6
78
|
## [v2.14.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.1) (2019-03-26)
|
79
|
+
|
7
80
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.0...v2.14.1)
|
8
81
|
|
9
82
|
**Fixed bugs:**
|
10
83
|
|
11
84
|
- 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))
|
12
85
|
|
86
|
+
**Merged pull requests:**
|
87
|
+
|
88
|
+
- \(MODULES-8778\) - Release Prep 2.14.1 [\#287](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/287) ([pmcmaw](https://github.com/pmcmaw))
|
89
|
+
|
13
90
|
## [v2.14.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.0) (2019-03-25)
|
91
|
+
|
14
92
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.1...v2.14.0)
|
15
93
|
|
16
94
|
**Implemented enhancements:**
|
@@ -28,6 +106,7 @@ All significant changes to this repo will be summarized in this file.
|
|
28
106
|
- \(MODULES-8771\) - Release Prep 2.14.0 [\#282](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/282) ([pmcmaw](https://github.com/pmcmaw))
|
29
107
|
|
30
108
|
## [v2.13.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.1) (2019-01-15)
|
109
|
+
|
31
110
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.0...v2.13.1)
|
32
111
|
|
33
112
|
**Fixed bugs:**
|
@@ -39,6 +118,7 @@ All significant changes to this repo will be summarized in this file.
|
|
39
118
|
- Release Prep 2.13.1 [\#276](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/276) ([bmjen](https://github.com/bmjen))
|
40
119
|
|
41
120
|
## [v2.13.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.0) (2019-01-11)
|
121
|
+
|
42
122
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.12.0...v2.13.0)
|
43
123
|
|
44
124
|
**Implemented enhancements:**
|
@@ -58,6 +138,7 @@ All significant changes to this repo will be summarized in this file.
|
|
58
138
|
- \(MAINT\) Add Plans Path Exclusion [\#270](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/270) ([RandomNoun7](https://github.com/RandomNoun7))
|
59
139
|
|
60
140
|
## [v2.12.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.12.0) (2018-11-08)
|
141
|
+
|
61
142
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.11.0...v2.12.0)
|
62
143
|
|
63
144
|
**Implemented enhancements:**
|
@@ -75,6 +156,7 @@ All significant changes to this repo will be summarized in this file.
|
|
75
156
|
- 2.12.0 Release Prep [\#264](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/264) ([tphoney](https://github.com/tphoney))
|
76
157
|
|
77
158
|
## [v2.11.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.11.0) (2018-09-26)
|
159
|
+
|
78
160
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.10.0...v2.11.0)
|
79
161
|
|
80
162
|
**Implemented enhancements:**
|
@@ -90,6 +172,7 @@ All significant changes to this repo will be summarized in this file.
|
|
90
172
|
- \(MODULES-7858\) - 2.11.0 Release Prep [\#259](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/259) ([pmcmaw](https://github.com/pmcmaw))
|
91
173
|
|
92
174
|
## [v2.10.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.10.0) (2018-08-30)
|
175
|
+
|
93
176
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.1...v2.10.0)
|
94
177
|
|
95
178
|
**Implemented enhancements:**
|
@@ -104,6 +187,7 @@ All significant changes to this repo will be summarized in this file.
|
|
104
187
|
- update README [\#252](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/252) ([b4ldr](https://github.com/b4ldr))
|
105
188
|
|
106
189
|
## [v2.9.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.1) (2018-06-20)
|
190
|
+
|
107
191
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.0...v2.9.1)
|
108
192
|
|
109
193
|
**Fixed bugs:**
|
@@ -116,6 +200,7 @@ All significant changes to this repo will be summarized in this file.
|
|
116
200
|
- \(maint\) - Release prep for 2.9.1 [\#251](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/251) ([pmcmaw](https://github.com/pmcmaw))
|
117
201
|
|
118
202
|
## [v2.9.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.0) (2018-06-18)
|
203
|
+
|
119
204
|
[Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...v2.9.0)
|
120
205
|
|
121
206
|
**Implemented enhancements:**
|
@@ -579,7 +664,7 @@ compatible yet.
|
|
579
664
|
### Added
|
580
665
|
* Initial release
|
581
666
|
|
582
|
-
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...
|
667
|
+
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...main
|
583
668
|
[2.8.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.7.0...v2.8.0
|
584
669
|
[2.7.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.2...v2.7.0
|
585
670
|
[2.6.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.1...v2.6.2
|
@@ -627,4 +712,4 @@ compatible yet.
|
|
627
712
|
[0.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.0.0...0.1.0
|
628
713
|
|
629
714
|
|
630
|
-
\* *This
|
715
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/CODEOWNERS
ADDED
data/Gemfile
CHANGED
@@ -1,24 +1,42 @@
|
|
1
|
-
|
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
31
|
gem 'codecov'
|
9
32
|
gem 'github_changelog_generator' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.0')
|
10
|
-
gem 'puppet', ENV['PUPPET_GEM_VERSION'] || ENV['PUPPET_VERSION'] ||
|
33
|
+
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'] || ENV['PUPPET_VERSION'] || infer_puppet_version)
|
11
34
|
gem 'simplecov', '~> 0'
|
12
35
|
gem 'simplecov-console'
|
13
|
-
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.
|
14
|
-
gem 'rubocop', '
|
15
|
-
gem 'rubocop-rspec'
|
36
|
+
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.4')
|
37
|
+
gem 'rubocop', '0.57.2'
|
38
|
+
gem 'rubocop-rspec'
|
16
39
|
end
|
17
40
|
end
|
18
41
|
|
19
|
-
# json_pure 2.0.2 added a requirement on ruby >= 2. We pin to json_pure 2.0.1
|
20
|
-
# if using ruby 1.x
|
21
|
-
gem 'json_pure', '<=2.0.1' if RUBY_VERSION =~ %r{^1\.}
|
22
|
-
gem 'rack', '~> 1'
|
23
|
-
|
24
42
|
# vim:filetype=ruby
|