facterdb 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +17 -0
  3. data/.github/workflows/release.yml +3 -3
  4. data/.github/workflows/test.yml +28 -5
  5. data/.rubocop.yml +5 -0
  6. data/.rubocop_todo.yml +239 -0
  7. data/CHANGELOG.md +16 -0
  8. data/Gemfile +1 -5
  9. data/README.md +124 -122
  10. data/Rakefile +56 -51
  11. data/facterdb.gemspec +7 -7
  12. data/facts/4.1/centos-7-x86_64.facts +582 -0
  13. data/facts/4.1/debian-10-x86_64.facts +519 -0
  14. data/facts/4.2/debian-12-i386.facts +593 -0
  15. data/facts/4.2/debian-12-x86_64.facts +593 -0
  16. data/facts/4.2/fedora-38-x86_64.facts +656 -0
  17. data/facts/4.3/almalinux-8-x86_64.facts +551 -0
  18. data/facts/4.3/almalinux-9-x86_64.facts +525 -0
  19. data/facts/4.3/centos-7-x86_64.facts +592 -0
  20. data/facts/4.3/debian-10-x86_64.facts +526 -0
  21. data/facts/4.3/debian-11-x86_64.facts +521 -0
  22. data/facts/4.3/debian-12-i386.facts +593 -0
  23. data/facts/4.3/debian-12-x86_64.facts +593 -0
  24. data/facts/4.3/fedora-36-x86_64.facts +507 -0
  25. data/facts/4.3/fedora-37-x86_64.facts +512 -0
  26. data/facts/4.3/fedora-38-x86_64.facts +656 -0
  27. data/facts/4.3/opensuse-15-x86_64.facts +533 -0
  28. data/facts/4.3/redhat-8-x86_64.facts +526 -0
  29. data/facts/4.3/rocky-8-x86_64.facts +545 -0
  30. data/facts/4.3/rocky-9-x86_64.facts +626 -0
  31. data/facts/4.3/sles-12-x86_64.facts +908 -0
  32. data/facts/4.3/ubuntu-18.04-x86_64.facts +557 -0
  33. data/facts/4.3/ubuntu-20.04-x86_64.facts +647 -0
  34. data/facts/4.3/ubuntu-22.04-x86_64.facts +655 -0
  35. data/facts/4.3/windows-10-x86_64.facts +182 -0
  36. data/facts/4.3/windows-11-x86_64.facts +182 -0
  37. data/facts/4.3/windows-2012 r2-x86_64.facts +179 -0
  38. data/facts/4.3/windows-2012-x86_64.facts +179 -0
  39. data/facts/4.3/windows-2016-core-x86_64.facts +181 -0
  40. data/facts/4.3/windows-2016-x86_64.facts +181 -0
  41. data/facts/4.3/windows-2019-core-x86_64.facts +181 -0
  42. data/facts/4.3/windows-2019-x86_64.facts +181 -0
  43. data/facts/4.3/windows-2022-core-x86_64.facts +183 -0
  44. data/facts/4.3/windows-2022-x86_64.facts +183 -0
  45. data/facts/4.4/almalinux-8-x86_64.facts +551 -0
  46. data/facts/4.4/almalinux-9-x86_64.facts +525 -0
  47. data/facts/4.4/centos-7-x86_64.facts +592 -0
  48. data/facts/4.4/debian-10-x86_64.facts +526 -0
  49. data/facts/4.4/debian-11-x86_64.facts +521 -0
  50. data/facts/4.4/debian-12-i386.facts +593 -0
  51. data/facts/4.4/debian-12-x86_64.facts +593 -0
  52. data/facts/4.4/fedora-36-x86_64.facts +507 -0
  53. data/facts/4.4/fedora-37-x86_64.facts +512 -0
  54. data/facts/4.4/fedora-38-x86_64.facts +656 -0
  55. data/facts/4.4/opensuse-15-x86_64.facts +514 -0
  56. data/facts/4.4/redhat-8-x86_64.facts +526 -0
  57. data/facts/4.4/rocky-8-x86_64.facts +545 -0
  58. data/facts/4.4/rocky-9-x86_64.facts +626 -0
  59. data/facts/4.4/sles-12-x86_64.facts +908 -0
  60. data/facts/4.4/ubuntu-18.04-x86_64.facts +557 -0
  61. data/facts/4.4/ubuntu-20.04-x86_64.facts +647 -0
  62. data/facts/4.4/ubuntu-22.04-x86_64.facts +655 -0
  63. data/facts/4.4/windows-10-x86_64.facts +182 -0
  64. data/facts/4.4/windows-11-x86_64.facts +186 -0
  65. data/facts/4.4/windows-2012 r2-x86_64.facts +179 -0
  66. data/facts/4.4/windows-2012-x86_64.facts +179 -0
  67. data/facts/4.4/windows-2016-core-x86_64.facts +181 -0
  68. data/facts/4.4/windows-2016-x86_64.facts +181 -0
  69. data/facts/4.4/windows-2019-core-x86_64.facts +181 -0
  70. data/facts/4.4/windows-2019-x86_64.facts +181 -0
  71. data/facts/4.4/windows-2022-core-x86_64.facts +183 -0
  72. data/facts/4.4/windows-2022-x86_64.facts +183 -0
  73. data/facts/Gemfile +3 -7
  74. data/facts/Vagrantfile +313 -298
  75. data/facts/get_facts.sh +67 -9
  76. data/lib/facterdb/bin.rb +1 -1
  77. data/lib/facterdb/version.rb +1 -1
  78. data/lib/facterdb.rb +40 -32
  79. data/rakelib/rhel_alts.rake +8 -14
  80. data/spec/facterdb_spec.rb +37 -37
  81. data/spec/facts_spec.rb +13 -7
  82. metadata +84 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2eb4a0ef3ea51589a1169786819a8e293903dac86676bddacbc29b5b2b3d322
4
- data.tar.gz: 169ecc3c6f906b44a737760edcf640fd611407214d222f56e58553b32b02fffe
3
+ metadata.gz: 064fc9f55c20e14820ef7ae63c273ebd3b12b8db7590f1f22987fb28f69c6479
4
+ data.tar.gz: 11779b051bc32a2a176dbe1f48a8dbaa266cb5a1f818867b9adece142164759f
5
5
  SHA512:
6
- metadata.gz: 0c5b8bf1d3122f3e46bbe3455e8ca9ccc647b4d70fda8c8887105b84ce6d78be1cbdc8d96f42048a49ae1eedd53cd7c009cf0c305063d00cc77abec2e30d34cc
7
- data.tar.gz: 92a68e65046056b941395ed9904779841aec32949946d137b8ba6e94242eb97ed612210f2aae916abb4cec644112efb92ab7edd5b5c0a7aba8d131b0e50c3442
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@v2
14
- - name: Install Ruby 3.0
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.0'
17
+ ruby-version: '3.2'
18
18
  env:
19
19
  BUNDLE_WITHOUT: release
20
20
  - name: Build gem
@@ -1,24 +1,38 @@
1
1
  name: Test
2
2
 
3
3
  on:
4
- - pull_request
5
- - push
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@v2
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
@@ -0,0 +1,5 @@
1
+ ---
2
+ inherit_from: .rubocop_todo.yml
3
+
4
+ inherit_gem:
5
+ voxpupuli-rubocop: rubocop.yml
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
- if facterversion = ENV['FACTER_GEM_VERSION']
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'