facterdb 1.21.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/release.yml +3 -3
- data/.github/workflows/test.yml +28 -5
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +239 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +1 -5
- data/README.md +124 -122
- data/Rakefile +56 -51
- data/facterdb.gemspec +7 -7
- data/facts/4.1/centos-7-x86_64.facts +582 -0
- data/facts/4.1/debian-10-x86_64.facts +519 -0
- data/facts/4.2/debian-12-i386.facts +593 -0
- data/facts/4.2/debian-12-x86_64.facts +593 -0
- data/facts/4.2/fedora-38-x86_64.facts +656 -0
- data/facts/4.3/almalinux-8-x86_64.facts +551 -0
- data/facts/4.3/almalinux-9-x86_64.facts +525 -0
- data/facts/4.3/centos-7-x86_64.facts +592 -0
- data/facts/4.3/debian-10-x86_64.facts +526 -0
- data/facts/4.3/debian-11-x86_64.facts +521 -0
- data/facts/4.3/debian-12-i386.facts +593 -0
- data/facts/4.3/debian-12-x86_64.facts +593 -0
- data/facts/4.3/fedora-36-x86_64.facts +507 -0
- data/facts/4.3/fedora-37-x86_64.facts +512 -0
- data/facts/4.3/fedora-38-x86_64.facts +656 -0
- data/facts/4.3/opensuse-15-x86_64.facts +533 -0
- data/facts/4.3/redhat-8-x86_64.facts +526 -0
- data/facts/4.3/rocky-8-x86_64.facts +545 -0
- data/facts/4.3/rocky-9-x86_64.facts +626 -0
- data/facts/4.3/sles-12-x86_64.facts +908 -0
- data/facts/4.3/ubuntu-18.04-x86_64.facts +557 -0
- data/facts/4.3/ubuntu-20.04-x86_64.facts +647 -0
- data/facts/4.3/ubuntu-22.04-x86_64.facts +655 -0
- data/facts/4.3/windows-10-x86_64.facts +182 -0
- data/facts/4.3/windows-11-x86_64.facts +182 -0
- data/facts/4.3/windows-2012 r2-x86_64.facts +179 -0
- data/facts/4.3/windows-2012-x86_64.facts +179 -0
- data/facts/4.3/windows-2016-core-x86_64.facts +181 -0
- data/facts/4.3/windows-2016-x86_64.facts +181 -0
- data/facts/4.3/windows-2019-core-x86_64.facts +181 -0
- data/facts/4.3/windows-2019-x86_64.facts +181 -0
- data/facts/4.3/windows-2022-core-x86_64.facts +183 -0
- data/facts/4.3/windows-2022-x86_64.facts +183 -0
- data/facts/4.4/almalinux-8-x86_64.facts +551 -0
- data/facts/4.4/almalinux-9-x86_64.facts +525 -0
- data/facts/4.4/centos-7-x86_64.facts +592 -0
- data/facts/4.4/debian-10-x86_64.facts +526 -0
- data/facts/4.4/debian-11-x86_64.facts +521 -0
- data/facts/4.4/debian-12-i386.facts +593 -0
- data/facts/4.4/debian-12-x86_64.facts +593 -0
- data/facts/4.4/fedora-36-x86_64.facts +507 -0
- data/facts/4.4/fedora-37-x86_64.facts +512 -0
- data/facts/4.4/fedora-38-x86_64.facts +656 -0
- data/facts/4.4/opensuse-15-x86_64.facts +514 -0
- data/facts/4.4/redhat-8-x86_64.facts +526 -0
- data/facts/4.4/rocky-8-x86_64.facts +545 -0
- data/facts/4.4/rocky-9-x86_64.facts +626 -0
- data/facts/4.4/sles-12-x86_64.facts +908 -0
- data/facts/4.4/ubuntu-18.04-x86_64.facts +557 -0
- data/facts/4.4/ubuntu-20.04-x86_64.facts +647 -0
- data/facts/4.4/ubuntu-22.04-x86_64.facts +655 -0
- data/facts/4.4/windows-10-x86_64.facts +182 -0
- data/facts/4.4/windows-11-x86_64.facts +186 -0
- data/facts/4.4/windows-2012 r2-x86_64.facts +179 -0
- data/facts/4.4/windows-2012-x86_64.facts +179 -0
- data/facts/4.4/windows-2016-core-x86_64.facts +181 -0
- data/facts/4.4/windows-2016-x86_64.facts +181 -0
- data/facts/4.4/windows-2019-core-x86_64.facts +181 -0
- data/facts/4.4/windows-2019-x86_64.facts +181 -0
- data/facts/4.4/windows-2022-core-x86_64.facts +183 -0
- data/facts/4.4/windows-2022-x86_64.facts +183 -0
- data/facts/Gemfile +3 -7
- data/facts/Vagrantfile +313 -298
- data/facts/get_facts.sh +67 -9
- data/lib/facterdb/bin.rb +1 -1
- data/lib/facterdb/version.rb +1 -1
- data/lib/facterdb.rb +40 -32
- data/rakelib/rhel_alts.rake +8 -14
- data/spec/facterdb_spec.rb +37 -37
- data/spec/facts_spec.rb +13 -7
- metadata +84 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 064fc9f55c20e14820ef7ae63c273ebd3b12b8db7590f1f22987fb28f69c6479
|
4
|
+
data.tar.gz: 11779b051bc32a2a176dbe1f48a8dbaa266cb5a1f818867b9adece142164759f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93bce49fa6eb30353697e027f1b798cef99238a402842660cdbc9e998f62aa89294c287595b938bd89509b09cea0679a2638527aac3aa4c1fecbf74e5dedbdae
|
7
|
+
data.tar.gz: a64b89e9cb5077e53fd18815f142638915ff79c98e12c92c58343bcd3bec40532326c2474ba653fcd62f597f7c07580787b467d8341dd244706915f83a310c35
|
@@ -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
|
@@ -10,11 +10,11 @@ jobs:
|
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
if: github.repository == 'voxpupuli/facterdb'
|
12
12
|
steps:
|
13
|
-
- uses: actions/checkout@
|
14
|
-
- name: Install Ruby 3.
|
13
|
+
- uses: actions/checkout@v4
|
14
|
+
- name: Install Ruby 3.2
|
15
15
|
uses: ruby/setup-ruby@v1
|
16
16
|
with:
|
17
|
-
ruby-version: '3.
|
17
|
+
ruby-version: '3.2'
|
18
18
|
env:
|
19
19
|
BUNDLE_WITHOUT: release
|
20
20
|
- name: Build gem
|
data/.github/workflows/test.yml
CHANGED
@@ -1,24 +1,38 @@
|
|
1
1
|
name: Test
|
2
2
|
|
3
3
|
on:
|
4
|
-
|
5
|
-
|
4
|
+
pull_request: {}
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
6
8
|
|
7
9
|
jobs:
|
10
|
+
rubocop:
|
11
|
+
env:
|
12
|
+
BUNDLE_WITHOUT: release
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v4
|
16
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: "3.2"
|
20
|
+
bundler-cache: true
|
21
|
+
- name: Run Rubocop
|
22
|
+
run: bundle exec rake rubocop
|
23
|
+
|
8
24
|
test:
|
9
25
|
runs-on: ubuntu-latest
|
10
26
|
strategy:
|
11
27
|
fail-fast: false
|
12
28
|
matrix:
|
13
29
|
ruby:
|
14
|
-
- '2.5'
|
15
|
-
- '2.6'
|
16
30
|
- '2.7'
|
17
31
|
- '3.0'
|
18
32
|
- '3.1'
|
19
33
|
- '3.2'
|
20
34
|
steps:
|
21
|
-
- uses: actions/checkout@
|
35
|
+
- uses: actions/checkout@v4
|
22
36
|
- name: Install Ruby ${{ matrix.ruby }}
|
23
37
|
uses: ruby/setup-ruby@v1
|
24
38
|
with:
|
@@ -30,3 +44,12 @@ jobs:
|
|
30
44
|
run: bundle exec rake spec
|
31
45
|
- name: Build gem
|
32
46
|
run: gem build *.gemspec
|
47
|
+
|
48
|
+
tests:
|
49
|
+
needs:
|
50
|
+
- rubocop
|
51
|
+
- test
|
52
|
+
runs-on: ubuntu-latest
|
53
|
+
name: Test suite
|
54
|
+
steps:
|
55
|
+
- run: echo Test suite completed
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2023-06-21 07:47:32 UTC using RuboCop version 1.50.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: 2
|
10
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
11
|
+
# Configuration parameters: AllowSafeAssignment.
|
12
|
+
Lint/AssignmentInCondition:
|
13
|
+
Exclude:
|
14
|
+
- 'Gemfile'
|
15
|
+
- 'facts/Gemfile'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
19
|
+
Lint/DuplicateBranch:
|
20
|
+
Exclude:
|
21
|
+
- 'Rakefile'
|
22
|
+
|
23
|
+
# Offense count: 1
|
24
|
+
# Configuration parameters: AllowComments, AllowNil.
|
25
|
+
Lint/SuppressedException:
|
26
|
+
Exclude:
|
27
|
+
- 'Rakefile'
|
28
|
+
|
29
|
+
# Offense count: 3
|
30
|
+
Lint/UselessAssignment:
|
31
|
+
Exclude:
|
32
|
+
- 'spec/facts_spec.rb'
|
33
|
+
|
34
|
+
# Offense count: 2
|
35
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
36
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
37
|
+
Naming/MethodParameterName:
|
38
|
+
Exclude:
|
39
|
+
- 'Rakefile'
|
40
|
+
- 'lib/facterdb.rb'
|
41
|
+
|
42
|
+
# Offense count: 1
|
43
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
44
|
+
Performance/MapCompact:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/facterdb.rb'
|
47
|
+
|
48
|
+
# Offense count: 7
|
49
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
50
|
+
Performance/StringInclude:
|
51
|
+
Exclude:
|
52
|
+
- 'Rakefile'
|
53
|
+
|
54
|
+
# Offense count: 3
|
55
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
56
|
+
# Prefixes: when, with, without
|
57
|
+
RSpec/ContextWording:
|
58
|
+
Exclude:
|
59
|
+
- 'spec/facterdb_spec.rb'
|
60
|
+
|
61
|
+
# Offense count: 1
|
62
|
+
# Configuration parameters: IgnoredMetadata.
|
63
|
+
RSpec/DescribeClass:
|
64
|
+
Exclude:
|
65
|
+
- '**/spec/features/**/*'
|
66
|
+
- '**/spec/requests/**/*'
|
67
|
+
- '**/spec/routing/**/*'
|
68
|
+
- '**/spec/system/**/*'
|
69
|
+
- '**/spec/views/**/*'
|
70
|
+
- 'spec/facts_spec.rb'
|
71
|
+
|
72
|
+
# Offense count: 12
|
73
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
74
|
+
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
75
|
+
# SupportedStyles: described_class, explicit
|
76
|
+
RSpec/DescribedClass:
|
77
|
+
Exclude:
|
78
|
+
- 'spec/facterdb_spec.rb'
|
79
|
+
|
80
|
+
# Offense count: 3
|
81
|
+
# Configuration parameters: CountAsOne.
|
82
|
+
RSpec/ExampleLength:
|
83
|
+
Max: 9
|
84
|
+
|
85
|
+
# Offense count: 1
|
86
|
+
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
87
|
+
# Include: **/*_spec*rb*, **/spec/**/*
|
88
|
+
RSpec/FilePath:
|
89
|
+
Exclude:
|
90
|
+
- 'spec/facterdb_spec.rb'
|
91
|
+
|
92
|
+
# Offense count: 4
|
93
|
+
# Configuration parameters: Max.
|
94
|
+
RSpec/IndexedLet:
|
95
|
+
Exclude:
|
96
|
+
- 'spec/facterdb_spec.rb'
|
97
|
+
|
98
|
+
# Offense count: 4
|
99
|
+
RSpec/MultipleExpectations:
|
100
|
+
Max: 7
|
101
|
+
|
102
|
+
# Offense count: 11
|
103
|
+
# Configuration parameters: AllowSubject.
|
104
|
+
RSpec/MultipleMemoizedHelpers:
|
105
|
+
Max: 6
|
106
|
+
|
107
|
+
# Offense count: 11
|
108
|
+
# Configuration parameters: AllowedGroups.
|
109
|
+
RSpec/NestedGroups:
|
110
|
+
Max: 4
|
111
|
+
|
112
|
+
# Offense count: 2
|
113
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
114
|
+
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
115
|
+
# SupportedStyles: inflected, explicit
|
116
|
+
RSpec/PredicateMatcher:
|
117
|
+
Exclude:
|
118
|
+
- 'spec/facterdb_spec.rb'
|
119
|
+
|
120
|
+
# Offense count: 2
|
121
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
122
|
+
# Configuration parameters: MinBranchesCount.
|
123
|
+
Style/CaseLikeIf:
|
124
|
+
Exclude:
|
125
|
+
- 'Rakefile'
|
126
|
+
- 'lib/facterdb.rb'
|
127
|
+
|
128
|
+
# Offense count: 2
|
129
|
+
# Configuration parameters: AllowedConstants.
|
130
|
+
Style/Documentation:
|
131
|
+
Exclude:
|
132
|
+
- 'spec/**/*'
|
133
|
+
- 'test/**/*'
|
134
|
+
- 'lib/facterdb.rb'
|
135
|
+
- 'lib/facterdb/bin.rb'
|
136
|
+
|
137
|
+
# Offense count: 13
|
138
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
139
|
+
# Configuration parameters: EnforcedStyle.
|
140
|
+
# SupportedStyles: always, always_true, never
|
141
|
+
Style/FrozenStringLiteralComment:
|
142
|
+
Exclude:
|
143
|
+
- 'Gemfile'
|
144
|
+
- 'Rakefile'
|
145
|
+
- 'bin/facterdb'
|
146
|
+
- 'facterdb.gemspec'
|
147
|
+
- 'facts/Gemfile'
|
148
|
+
- 'facts/Vagrantfile'
|
149
|
+
- 'lib/facterdb.rb'
|
150
|
+
- 'lib/facterdb/bin.rb'
|
151
|
+
- 'lib/facterdb/version.rb'
|
152
|
+
- 'rakelib/rhel_alts.rake'
|
153
|
+
- 'spec/facterdb_spec.rb'
|
154
|
+
- 'spec/facts_spec.rb'
|
155
|
+
- 'spec/spec_helper.rb'
|
156
|
+
|
157
|
+
# Offense count: 1
|
158
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
159
|
+
# Configuration parameters: AllowedReceivers.
|
160
|
+
# AllowedReceivers: Thread.current
|
161
|
+
Style/HashEachMethods:
|
162
|
+
Exclude:
|
163
|
+
- 'spec/facts_spec.rb'
|
164
|
+
|
165
|
+
# Offense count: 1
|
166
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
167
|
+
Style/HashTransformKeys:
|
168
|
+
Exclude:
|
169
|
+
- 'lib/facterdb.rb'
|
170
|
+
|
171
|
+
# Offense count: 1
|
172
|
+
# This cop supports safe autocorrection (--autocorrect).
|
173
|
+
Style/IfUnlessModifier:
|
174
|
+
Exclude:
|
175
|
+
- 'lib/facterdb.rb'
|
176
|
+
|
177
|
+
# Offense count: 1
|
178
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
179
|
+
Style/MapToHash:
|
180
|
+
Exclude:
|
181
|
+
- 'lib/facterdb.rb'
|
182
|
+
|
183
|
+
# Offense count: 1
|
184
|
+
Style/MixinUsage:
|
185
|
+
Exclude:
|
186
|
+
- 'spec/spec_helper.rb'
|
187
|
+
|
188
|
+
# Offense count: 2
|
189
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
190
|
+
# Configuration parameters: EnforcedStyle.
|
191
|
+
# SupportedStyles: literals, strict
|
192
|
+
Style/MutableConstant:
|
193
|
+
Exclude:
|
194
|
+
- 'facts/Vagrantfile'
|
195
|
+
- 'lib/facterdb/version.rb'
|
196
|
+
|
197
|
+
# Offense count: 1
|
198
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
199
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
200
|
+
# SupportedStyles: predicate, comparison
|
201
|
+
Style/NumericPredicate:
|
202
|
+
Exclude:
|
203
|
+
- 'spec/**/*'
|
204
|
+
- 'Rakefile'
|
205
|
+
|
206
|
+
# Offense count: 1
|
207
|
+
# Configuration parameters: AllowedMethods.
|
208
|
+
# AllowedMethods: respond_to_missing?
|
209
|
+
Style/OptionalBooleanParameter:
|
210
|
+
Exclude:
|
211
|
+
- 'lib/facterdb.rb'
|
212
|
+
|
213
|
+
# Offense count: 1
|
214
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
215
|
+
Style/SlicingWithRange:
|
216
|
+
Exclude:
|
217
|
+
- 'Rakefile'
|
218
|
+
|
219
|
+
# Offense count: 1
|
220
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
221
|
+
# Configuration parameters: Mode.
|
222
|
+
Style/StringConcatenation:
|
223
|
+
Exclude:
|
224
|
+
- 'lib/facterdb.rb'
|
225
|
+
|
226
|
+
# Offense count: 1
|
227
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
228
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
229
|
+
# AllowedMethods: define_method
|
230
|
+
Style/SymbolProc:
|
231
|
+
Exclude:
|
232
|
+
- 'Rakefile'
|
233
|
+
|
234
|
+
# Offense count: 4
|
235
|
+
# This cop supports safe autocorrection (--autocorrect).
|
236
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
237
|
+
# URISchemes: http, https
|
238
|
+
Layout/LineLength:
|
239
|
+
Max: 179
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.22.0](https://rubygems.org/gems/facterdb/versions/1.22.0) (2023-11-13)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/1.21.0...1.22.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- fedora38 facts [\#287](https://github.com/voxpupuli/facterdb/pull/287) ([hbrown-uiowa](https://github.com/hbrown-uiowa))
|
10
|
+
- Add facts for Debian 12 [\#283](https://github.com/voxpupuli/facterdb/pull/283) ([TheMeier](https://github.com/TheMeier))
|
11
|
+
- Adding windows servers for Facter 4.3 and 4.4 [\#273](https://github.com/voxpupuli/facterdb/pull/273) ([davidsandilands](https://github.com/davidsandilands))
|
12
|
+
- new facts for 4.3 and 4.4 and a few stragglers for 4.1 [\#272](https://github.com/voxpupuli/facterdb/pull/272) ([hbrown-uiowa](https://github.com/hbrown-uiowa))
|
13
|
+
- Introduce RuboCop [\#267](https://github.com/voxpupuli/facterdb/pull/267) ([bastelfreak](https://github.com/bastelfreak))
|
14
|
+
|
15
|
+
**Fixed bugs:**
|
16
|
+
|
17
|
+
- Correct class documentation [\#281](https://github.com/voxpupuli/facterdb/pull/281) ([ekohl](https://github.com/ekohl))
|
18
|
+
|
3
19
|
## [1.21.0](https://rubygems.org/gems/facterdb/versions/1.21.0) (2023-01-25)
|
4
20
|
|
5
21
|
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/1.20.0...1.21.0)
|
data/Gemfile
CHANGED
@@ -2,11 +2,7 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
gem 'facter', facterversion, :require => false
|
7
|
-
else
|
8
|
-
gem 'facter', :require => false
|
9
|
-
end
|
5
|
+
gem 'facter', ENV.fetch('FACTER_GEM_VERSION', nil), require: false
|
10
6
|
|
11
7
|
group :development do
|
12
8
|
gem 'github_changelog_generator', '>= 1.16.4'
|