rspec-puppetlabs-facts 7.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c9604755f5b0c8d5f0c7ec35ad6121fad76852e551328fd8485aec30ed0470dc
4
+ data.tar.gz: '08a3d3c6d42f8e1048c2da23883c88d37f4fc5a1bf78572ff00574e28e5502d7'
5
+ SHA512:
6
+ metadata.gz: cb90459065e1a3a425214eeca6d8e86c5c48f890d16db43b4fcdfbe80c661b1d19218c58b855489c2c5a8d24b76604fc89801340a4ac7a48a3e98b98761244c2
7
+ data.tar.gz: 1eba9f66e92d9d8e0d636b88581bb7d66b0d4a1c8c40339c0cc9a7dd30e726af5a25f9c4fe35c346578bd61b7f4153f151c2f204cf1af9333a2d7da7b5cbf2a6
data/.changelog.yml ADDED
@@ -0,0 +1,20 @@
1
+ ---
2
+ file_name: CHANGELOG.md
3
+ excluded_labels:
4
+ - maintenance
5
+ - dependencies
6
+ - skip-changelog
7
+ - github_actions
8
+ sections:
9
+ changed:
10
+ - backwards-incompatible
11
+ added:
12
+ - feature
13
+ - enhancement
14
+ fixed:
15
+ - bug
16
+ - bugfix
17
+ - documentation
18
+ skip_entries_without_label: false
19
+ show_unreleased: true
20
+ check_for_updates: false
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ # raise PRs for gem updates
4
+ - package-ecosystem: bundler
5
+ directory: "/"
6
+ schedule:
7
+ interval: daily
8
+ time: "13:00"
9
+ open-pull-requests-limit: 10
10
+
11
+ # Maintain dependencies for GitHub Actions
12
+ - package-ecosystem: github-actions
13
+ directory: "/"
14
+ schedule:
15
+ interval: daily
16
+ time: "13:00"
17
+ open-pull-requests-limit: 10
@@ -0,0 +1,51 @@
1
+ name: "ci"
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
+ branches: ["main"]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ spec:
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ ruby_version: ["3.2", "4.0"]
19
+ include:
20
+ - puppet_gem_version: "~> 8.0"
21
+ ruby_version: "3.2"
22
+ - puppet_gem_version: "~> 9.0"
23
+ ruby_version: "4.0"
24
+ name: "spec (ruby ${{ matrix.ruby_version }})"
25
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
26
+ secrets: inherit
27
+ with:
28
+ rake_task: 'spec check_leftovers'
29
+ ruby_version: ${{ matrix.ruby_version }}
30
+ puppet_gem_version: ${{ matrix.puppet_gem_version }}
31
+
32
+ acceptance:
33
+ needs: "spec"
34
+ strategy:
35
+ fail-fast: false
36
+ matrix:
37
+ os: ["ubuntu-latest", "windows-latest"]
38
+ ruby_version: ["3.2", "4.0"]
39
+ include:
40
+ - puppet_gem_version: "~> 8.0"
41
+ ruby_version: "3.2"
42
+ - puppet_gem_version: "~> 9.0"
43
+ ruby_version: "4.0"
44
+ name: "acceptance (ruby ${{ matrix.ruby_version }} | ${{ matrix.os }})"
45
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main"
46
+ secrets: inherit
47
+ with:
48
+ ruby_version: ${{ matrix.ruby_version }}
49
+ puppet_version: ${{ matrix.puppet_gem_version }}
50
+ rake_task: 'acceptance:local'
51
+ runs_on: ${{ matrix.os }}
@@ -0,0 +1,20 @@
1
+ name: "release"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+
11
+ permissions:
12
+ contents: write
13
+ packages: write
14
+
15
+ jobs:
16
+ release:
17
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
18
+ with:
19
+ target: "${{ github.event.inputs.target }}"
20
+ secrets: "inherit"
@@ -0,0 +1,24 @@
1
+ name: "Release Prep"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+ version:
11
+ description: "Version of gem to be released."
12
+ required: true
13
+
14
+ permissions:
15
+ contents: write
16
+ pull-requests: write
17
+
18
+ jobs:
19
+ release_prep:
20
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
21
+ with:
22
+ target: "${{ github.event.inputs.target }}"
23
+ version: "${{ github.event.inputs.version }}"
24
+ secrets: "inherit"
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ *.gem
2
+ *.swp
3
+ Gemfile.lock
4
+ .vagrant/
5
+ .bundle/
6
+ coverage/
7
+ .idea
8
+ doc
9
+ .yardoc
10
+ vendor/
11
+ .vendor/
12
+ pkg/
data/.rspec ADDED
@@ -0,0 +1,4 @@
1
+ --format
2
+ d
3
+ --colour
4
+ --backtrace
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ inherit_from: .rubocop_todo.yml
3
+
4
+ inherit_gem:
5
+ voxpupuli-rubocop: rubocop.yml
6
+
7
+ Layout/LineLength:
8
+ Enabled: false
9
+
10
+ Style/IfUnlessModifier:
11
+ Enabled: false
12
+
13
+ # To match the gem name
14
+ Naming/FileName:
15
+ Exclude:
16
+ - 'lib/rspec-puppetlabs-facts.rb'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,94 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --no-auto-gen-timestamp`
3
+ # using RuboCop version 1.79.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: 29
10
+ # Configuration parameters: Prefixes, AllowedPatterns.
11
+ # Prefixes: when, with, without
12
+ RSpec/ContextWording:
13
+ Exclude:
14
+ - 'spec/unit/rspec_puppetlabs_facts_spec.rb'
15
+
16
+ # Offense count: 6
17
+ # Configuration parameters: CountAsOne.
18
+ RSpec/ExampleLength:
19
+ Max: 13
20
+
21
+ # Offense count: 1
22
+ RSpec/ExpectInHook:
23
+ Exclude:
24
+ - 'spec/unit/rspec_puppetlabs_facts_spec.rb'
25
+
26
+ # Acceptance specs describe commands, not a class, as in pdk-private.
27
+ RSpec/DescribeClass:
28
+ Exclude:
29
+ - 'spec/acceptance/**/*_spec.rb'
30
+
31
+ # Offense count: 4
32
+ RSpec/LeakyConstantDeclaration:
33
+ Exclude:
34
+ - 'spec/unit/rspec_puppetlabs_facts_spec.rb'
35
+
36
+ # Offense count: 7
37
+ # Configuration parameters: .
38
+ # SupportedStyles: have_received, receive
39
+ RSpec/MessageSpies:
40
+ EnforcedStyle: receive
41
+
42
+ # Offense count: 48
43
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
44
+ # SupportedStyles: always, named_only
45
+ RSpec/NamedSubject:
46
+ Exclude:
47
+ - 'spec/acceptance/**/*_spec.rb'
48
+ - 'spec/unit/rspec_puppetlabs_facts_spec.rb'
49
+
50
+ # Offense count: 13
51
+ # Configuration parameters: AllowedGroups.
52
+ RSpec/NestedGroups:
53
+ Max: 6
54
+
55
+ # Offense count: 1
56
+ RSpec/StubbedMock:
57
+ Exclude:
58
+ - 'spec/unit/rspec_puppetlabs_facts_spec.rb'
59
+
60
+ # Offense count: 1
61
+ Style/MixinUsage:
62
+ Exclude:
63
+ - 'spec/spec_helper.rb'
64
+
65
+ # Offense count: 1
66
+ # This cop supports unsafe autocorrection (--autocorrect-all).
67
+ # Configuration parameters: EnforcedStyle.
68
+ # SupportedStyles: literals, strict
69
+ Style/MutableConstant:
70
+ Exclude:
71
+ - 'lib/rspec-puppetlabs-facts.rb'
72
+
73
+ # Offense count: 1
74
+ # This cop supports unsafe autocorrection (--autocorrect-all).
75
+ # Configuration parameters: Methods.
76
+ Style/RedundantArgument:
77
+ Exclude:
78
+ - 'lib/rspec-puppetlabs-facts.rb'
79
+
80
+ # Offense count: 1
81
+ # This cop supports unsafe autocorrection (--autocorrect-all).
82
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
83
+ # AllowedMethods: present?, blank?, presence, try, try!
84
+ Style/SafeNavigation:
85
+ Exclude:
86
+ - 'lib/rspec-puppetlabs-facts.rb'
87
+
88
+ # Offense count: 2
89
+ # This cop supports unsafe autocorrection (--autocorrect-all).
90
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
91
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
92
+ Style/SpecialGlobalVars:
93
+ Exclude:
94
+ - 'lib/rspec-puppetlabs-facts.rb'
data/CHANGELOG.md ADDED
@@ -0,0 +1,274 @@
1
+ <!-- markdownlint-disable MD024 -->
2
+ # Changelog
3
+
4
+ All notable changes to this project will be documented in this file.
5
+
6
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
7
+
8
+ ## [v7.0.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/v7.0.0) - 2026-11-25
9
+
10
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/6.3.1...v7.0.0)
11
+
12
+ ### Changed
13
+
14
+ - (CAT-2955) Rename to rspec-puppetlabs-facts and use facter and puppetlabs-facterdb [#3](https://github.com/puppetlabs/rspec-puppetlabs-facts/pull/3) ([david22swan](https://github.com/david22swan))
15
+
16
+ ## [6.3.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/6.3.1) - 2026-09-28
17
+
18
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/6.3.0...6.3.1)
19
+
20
+ ## [6.3.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/6.3.0) - 2026-09-28
21
+
22
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/6.2.0...6.3.0)
23
+
24
+ ## [6.2.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/6.2.0) - 2026-05-01
25
+
26
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/6.1.0...6.2.0)
27
+
28
+ ## [6.1.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/6.1.0) - 2026-02-19
29
+
30
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/6.0.0...6.1.0)
31
+
32
+ ## [6.0.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/6.0.0) - 2025-09-27
33
+
34
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/5.4.0...6.0.0)
35
+
36
+ ## [5.4.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/5.4.0) - 2025-06-11
37
+
38
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/5.3.1...5.4.0)
39
+
40
+ ## [5.3.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/5.3.1) - 2025-04-29
41
+
42
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/5.3.0...5.3.1)
43
+
44
+ ## [5.3.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/5.3.0) - 2025-04-28
45
+
46
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/5.2.0...5.3.0)
47
+
48
+ ## [5.2.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/5.2.0) - 2024-10-30
49
+
50
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/5.1.0...5.2.0)
51
+
52
+ ## [5.1.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/5.1.0) - 2024-08-13
53
+
54
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/5.0.0...5.1.0)
55
+
56
+ ## [5.0.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/5.0.0) - 2024-07-08
57
+
58
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/4.0.0...5.0.0)
59
+
60
+ ## [4.0.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/4.0.0) - 2024-06-10
61
+
62
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/3.0.0...4.0.0)
63
+
64
+ ## [3.0.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/3.0.0) - 2024-03-23
65
+
66
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/2.0.5...3.0.0)
67
+
68
+ ## [2.0.5](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/2.0.5) - 2022-04-22
69
+
70
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/2.0.4...2.0.5)
71
+
72
+ ## [2.0.4](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/2.0.4) - 2022-04-22
73
+
74
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/2.0.3...2.0.4)
75
+
76
+ ## [2.0.3](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/2.0.3) - 2021-09-22
77
+
78
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/2.0.2...2.0.3)
79
+
80
+ ## [2.0.2](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/2.0.2) - 2021-07-21
81
+
82
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/2.0.1...2.0.2)
83
+
84
+ ## [2.0.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/2.0.1) - 2021-01-09
85
+
86
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/2.0.0...2.0.1)
87
+
88
+ ## [2.0.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/2.0.0) - 2020-08-05
89
+
90
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.9.4...2.0.0)
91
+
92
+ ## [1.9.4](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.9.4) - 2019-03-22
93
+
94
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.9.2...1.9.4)
95
+
96
+ ## [1.9.2](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.9.2) - 2019-03-22
97
+
98
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.9.3...1.9.2)
99
+
100
+ ## [1.9.3](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.9.3) - 2019-03-22
101
+
102
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/v1.9.2...1.9.3)
103
+
104
+ ## [v1.9.2](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/v1.9.2) - 2018-10-24
105
+
106
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.9.1...v1.9.2)
107
+
108
+ ## [1.9.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.9.1) - 2018-10-24
109
+
110
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.9.0...1.9.1)
111
+
112
+ ## [1.9.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.9.0) - 2018-02-01
113
+
114
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.8.0...1.9.0)
115
+
116
+ ## [1.8.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.8.0) - 2017-06-23
117
+
118
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.7.1...1.8.0)
119
+
120
+ ## [1.7.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.7.1) - 2017-01-04
121
+
122
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.7.0...1.7.1)
123
+
124
+ ## [1.7.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.7.0) - 2016-09-16
125
+
126
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.6.1...1.7.0)
127
+
128
+ ## [1.6.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.6.1) - 2016-05-19
129
+
130
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.6.0...1.6.1)
131
+
132
+ ## [1.6.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.6.0) - 2016-05-17
133
+
134
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.5.0...1.6.0)
135
+
136
+ ## [1.5.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.5.0) - 2016-03-29
137
+
138
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.4.1...1.5.0)
139
+
140
+ ## [1.4.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.4.1) - 2016-02-04
141
+
142
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.4.0...1.4.1)
143
+
144
+ ## [1.4.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.4.0) - 2016-02-04
145
+
146
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.3.0...1.4.0)
147
+
148
+ ## [1.3.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.3.0) - 2015-11-12
149
+
150
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.1.1...1.3.0)
151
+
152
+ ## [1.1.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.1.1) - 2015-09-15
153
+
154
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.1.0...1.1.1)
155
+
156
+ ## [1.1.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.1.0) - 2015-09-09
157
+
158
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.0.3...1.1.0)
159
+
160
+ ## [1.0.3](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.0.3) - 2015-09-03
161
+
162
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.0.2...1.0.3)
163
+
164
+ ## [1.0.2](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.0.2) - 2015-08-31
165
+
166
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/1.0.0...1.0.2)
167
+
168
+ ## [1.0.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/1.0.0) - 2015-08-27
169
+
170
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.12.0...1.0.0)
171
+
172
+ ## [0.12.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.12.0) - 2015-08-10
173
+
174
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.11.0...0.12.0)
175
+
176
+ ## [0.11.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.11.0) - 2015-06-16
177
+
178
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.10.0...0.11.0)
179
+
180
+ ## [0.10.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.10.0) - 2015-05-27
181
+
182
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.9.0...0.10.0)
183
+
184
+ ## [0.9.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.9.0) - 2015-05-26
185
+
186
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.8.0...0.9.0)
187
+
188
+ ## [0.8.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.8.0) - 2015-04-27
189
+
190
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.7.0...0.8.0)
191
+
192
+ ## [0.7.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.7.0) - 2015-04-26
193
+
194
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.6.0...0.7.0)
195
+
196
+ ## [0.6.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.6.0) - 2015-03-15
197
+
198
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.5.0...0.6.0)
199
+
200
+ ## [0.5.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.5.0) - 2015-03-06
201
+
202
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.4.1...0.5.0)
203
+
204
+ ## [0.4.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.4.1) - 2015-02-22
205
+
206
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.4.0...0.4.1)
207
+
208
+ ## [0.4.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.4.0) - 2015-01-23
209
+
210
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.3.3...0.4.0)
211
+
212
+ ## [0.3.3](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.3.3) - 2015-01-05
213
+
214
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.3.2...0.3.3)
215
+
216
+ ## [0.3.2](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.3.2) - 2015-01-04
217
+
218
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.3.1...0.3.2)
219
+
220
+ ## [0.3.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.3.1) - 2015-01-03
221
+
222
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.3.0...0.3.1)
223
+
224
+ ## [0.3.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.3.0) - 2015-01-02
225
+
226
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.2.5...0.3.0)
227
+
228
+ ## [0.2.5](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.2.5) - 2014-12-20
229
+
230
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.2.4...0.2.5)
231
+
232
+ ## [0.2.4](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.2.4) - 2014-12-20
233
+
234
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.2.3...0.2.4)
235
+
236
+ ## [0.2.3](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.2.3) - 2014-12-20
237
+
238
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.2.2...0.2.3)
239
+
240
+ ## [0.2.2](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.2.2) - 2014-12-19
241
+
242
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.2.1...0.2.2)
243
+
244
+ ## [0.2.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.2.1) - 2014-12-19
245
+
246
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.2.0...0.2.1)
247
+
248
+ ## [0.2.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.2.0) - 2014-12-15
249
+
250
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.1.5...0.2.0)
251
+
252
+ ## [0.1.5](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.1.5) - 2014-12-12
253
+
254
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.1.4...0.1.5)
255
+
256
+ ## [0.1.4](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.1.4) - 2014-12-12
257
+
258
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.1.3...0.1.4)
259
+
260
+ ## [0.1.3](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.1.3) - 2014-12-12
261
+
262
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.1.2...0.1.3)
263
+
264
+ ## [0.1.2](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.1.2) - 2014-12-12
265
+
266
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.1.1...0.1.2)
267
+
268
+ ## [0.1.1](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.1.1) - 2014-12-12
269
+
270
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/0.1.0...0.1.1)
271
+
272
+ ## [0.1.0](https://github.com/puppetlabs/rspec-puppetlabs-facts/tree/0.1.0) - 2014-12-12
273
+
274
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppetlabs-facts/compare/c1c95739ecb6310be7d2a1f85a307dc7e148dce3...0.1.0)
data/Gemfile ADDED
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Defaults to puppetcore regardless of PUPPET_FORGE_TOKEN/network state.
4
+ # Opt out: bundle config set gemsource.public true
5
+ gemsource_default = ENV['GEM_SOURCE'] || 'https://rubygems.org'
6
+ gemsource_public_opt_out = Bundler.settings['gemsource.public']
7
+ gemsource_puppetcore = if gemsource_public_opt_out
8
+ gemsource_default
9
+ else
10
+ 'https://rubygems-puppetcore.puppet.com'
11
+ end
12
+ source gemsource_default
13
+
14
+ unless ENV['PUPPET_FORGE_TOKEN'] || ENV['BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM'] ||
15
+ Bundler.settings['gemsource.airgapped'] || gemsource_public_opt_out
16
+ Bundler.ui.warn <<~WARNING
17
+ No puppetcore credentials detected.
18
+ On an airgapped install, run `bundle config set gemsource.airgapped true` to suppress this warning.
19
+ To use public gems instead, run `bundle config set gemsource.public true`.
20
+ WARNING
21
+ end
22
+
23
+ def location_for(place_or_constraint, fake_constraint = nil, opts = {})
24
+ git_url_regex = /\A(?<url>(?:https?|git)[:@][^#]*)(?:#(?<branch>.*))?/
25
+ file_url_regex = %r{\Afile://(?<path>.*)}
26
+
27
+ if place_or_constraint && (git_url = place_or_constraint.match(git_url_regex))
28
+ # Git source: ignore :source, keep fake_constraint
29
+ [fake_constraint, { git: git_url[:url], branch: git_url[:branch], require: false }].compact
30
+ elsif place_or_constraint && (file_url = place_or_constraint.match(file_url_regex))
31
+ # File source: ignore :source, keep fake_constraint or default >= 0
32
+ [fake_constraint || '>= 0', { path: File.expand_path(file_url[:path]), require: false }]
33
+ else
34
+ # Plain version constraint: merge opts (including :source if provided)
35
+ [place_or_constraint, { require: false }.merge(opts)]
36
+ end
37
+ end
38
+
39
+ # Works around a bundler multi_json/puppet resolution bug - see pdk-templates/docs/adr/0001.
40
+ # Public opt-out pins to the last public puppet release line (8.10.x).
41
+ def puppet_floor_version(puppetcore_source)
42
+ return '~> 8.10' if puppetcore_source == 'https://rubygems.org'
43
+
44
+ ruby_version = Gem::Version.new(RUBY_VERSION.dup)
45
+ return '~> 9.0' if Gem::Requirement.create('>= 3.4.0').satisfied_by?(ruby_version)
46
+ return '~> 8.17' if Gem::Requirement.create('>= 3.1.0').satisfied_by?(ruby_version)
47
+
48
+ nil # puppet 8+ requires ruby >= 3.1; leave older rubies unconstrained
49
+ end
50
+
51
+ gemspec
52
+
53
+ gem 'base64' if RUBY_VERSION >= '3.4'
54
+ gem 'facter', *location_for(ENV.fetch('FACTER_GEM_VERSION', '>= 4'), nil, { source: gemsource_puppetcore })
55
+ gem 'puppet', *location_for(ENV.fetch('PUPPET_GEM_VERSION', puppet_floor_version(gemsource_puppetcore)), nil, { source: gemsource_puppetcore })
56
+ gem 'syslog', '~> 0.3' if RUBY_VERSION >= '3.4'
57
+
58
+ group :acceptance do
59
+ gem 'serverspec'
60
+ end