puppet_metadata 6.1.0 → 6.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbf0cec07a466deb7e97d1e4c20b75087243573b954c8350c605141f534fe1b9
4
- data.tar.gz: 3522efe76946069d526bd87ac9023da1b054b0676d4cc0c0b3ac1f476f32c979
3
+ metadata.gz: f4820b7079cb77ccbe05f2efd01dd7732e18cf11ae255db5fbd74c151e72ea14
4
+ data.tar.gz: a5015c1737ba81ffb8862e15059eee57585fdb3e5b9ec1511c881d933697f640
5
5
  SHA512:
6
- metadata.gz: 6149d30f3403cbf37f17ccb6d132ce15c86eae5e4d3de16d2dbc96362d5b3e82751e229919fe39afc7fa06528873cfea974ec123aed9165ab7f6f3531c205212
7
- data.tar.gz: 8d759313fbb484738c39984190d0756712ba0aab483a7f909bebfebc629f9c9b80cf69695bb8690a0c3f23dc3eaa3654f6c80a7cb05b46215d4e89be6494f339
6
+ metadata.gz: '093579bd15f1dca58dbe27670832decf394d38d4266ecb3334b21cc4ac03fac78073720b21cce09156604d5c60332007ac3967d3db7daabceb82c2f67d12b862'
7
+ data.tar.gz: 91771176508ac93a8395539e381bae4dbd212a5ee55c355133284a35991918dfee0c77cb65d249ca07c1e3f89e2f400050fc356895059369fc80c2638407562c
data/bin/update_eol_dates CHANGED
@@ -206,6 +206,26 @@ def handle_ubuntu(current_data)
206
206
  updated_data
207
207
  end
208
208
 
209
+ def sort_versions(versions)
210
+ versions.sort do |a, b|
211
+ version_a, eol_a = a
212
+ version_b, eol_b = b
213
+
214
+ # Handle nil values (not yet EOL) - they go first
215
+ if eol_a.nil? && !eol_b.nil?
216
+ -1
217
+ elsif !eol_a.nil? && eol_b.nil?
218
+ 1
219
+ elsif eol_a == eol_b
220
+ # Same EOL date (or both nil) - sort by version number descending
221
+ Gem::Version.new(version_b) <=> Gem::Version.new(version_a)
222
+ else
223
+ # Different EOL dates - sort by date descending (later date first)
224
+ eol_b <=> eol_a
225
+ end
226
+ end.to_h
227
+ end
228
+
209
229
  def main
210
230
  data_file = File.expand_path('../data/eol_dates.json', __dir__)
211
231
 
@@ -231,26 +251,7 @@ def main
231
251
  end
232
252
 
233
253
  # Sort each OS's versions by EOL date (latest EOL first, then nulls)
234
- sorted_data = {}
235
- updated_data.each do |os_name, versions|
236
- sorted_versions = versions.sort do |a, b|
237
- version_a, eol_a = a
238
- version_b, eol_b = b
239
-
240
- # Handle nil values (not yet EOL) - they go first
241
- return -1 if eol_a.nil? && !eol_b.nil?
242
- return 1 if !eol_a.nil? && eol_b.nil?
243
-
244
- if eol_a == eol_b
245
- # Same EOL date (or both nil) - sort by version number descending
246
- Gem::Version.new(version_b) <=> Gem::Version.new(version_a)
247
- else
248
- # Different EOL dates - sort by date descending (later date first)
249
- (eol_b || '0000-00-00') <=> (eol_a || '0000-00-00')
250
- end
251
- end.to_h
252
- sorted_data[os_name] = sorted_versions
253
- end
254
+ sorted_data = updated_data.transform_values { |versions| sort_versions(versions) }
254
255
 
255
256
  File.write(data_file, "#{JSON.pretty_generate(sorted_data)}\n")
256
257
  puts "\nUpdated #{data_file}"
data/data/eol_dates.json CHANGED
@@ -7,27 +7,27 @@
7
7
  "Amazon": {
8
8
  "2023": "2029-06-30",
9
9
  "2.0": "2026-06-30",
10
- "2010.11": "2023-12-31",
11
- "2011.09": "2023-12-31",
12
- "2012.03": "2023-12-31",
13
- "2012.09": "2023-12-31",
14
- "2013.03": "2023-12-31",
15
- "2013.09": "2023-12-31",
16
- "2014.03": "2023-12-31",
17
- "2014.09": "2023-12-31",
18
- "2015.03": "2023-12-31",
19
- "2015.09": "2023-12-31",
20
- "2016.03": "2023-12-31",
21
- "2016.09": "2023-12-31",
22
- "2017.03": "2023-12-31",
10
+ "2018.03": "2023-12-31",
23
11
  "2017.09": "2023-12-31",
24
- "2018.03": "2023-12-31"
12
+ "2017.03": "2023-12-31",
13
+ "2016.09": "2023-12-31",
14
+ "2016.03": "2023-12-31",
15
+ "2015.09": "2023-12-31",
16
+ "2015.03": "2023-12-31",
17
+ "2014.09": "2023-12-31",
18
+ "2014.03": "2023-12-31",
19
+ "2013.09": "2023-12-31",
20
+ "2013.03": "2023-12-31",
21
+ "2012.09": "2023-12-31",
22
+ "2012.03": "2023-12-31",
23
+ "2011.09": "2023-12-31",
24
+ "2010.11": "2023-12-31"
25
25
  },
26
26
  "CentOS": {
27
27
  "10": "2030-01-01",
28
28
  "9": "2027-05-31",
29
29
  "7": "2024-06-30",
30
- "8": "2021-12-31",
30
+ "8": "2024-05-31",
31
31
  "6": "2020-11-30",
32
32
  "5": "2017-03-31",
33
33
  "4": "2012-02-29",
@@ -47,7 +47,7 @@
47
47
  "3.1": "2008-03-31",
48
48
  "3.0": "2006-06-30",
49
49
  "2.2": "2003-06-30",
50
- "2.1": "2000-09-30",
50
+ "2.1": "2000-10-30",
51
51
  "2.0": "1999-02-15",
52
52
  "1.3": "1998-12-08",
53
53
  "1.2": "1997-10-23",
@@ -61,9 +61,10 @@
61
61
  "6": "2021-03-31"
62
62
  },
63
63
  "Fedora": {
64
+ "44": "2027-06-02",
64
65
  "43": "2026-12-09",
65
66
  "42": "2026-05-13",
66
- "41": "2025-11-26",
67
+ "41": "2025-12-15",
67
68
  "40": "2025-05-13",
68
69
  "39": "2024-11-26",
69
70
  "38": "2024-05-21",
@@ -106,66 +107,69 @@
106
107
  "1": "2004-09-20"
107
108
  },
108
109
  "FreeBSD": {
110
+ "15": "2029-12-31",
109
111
  "14": "2028-11-30",
112
+ "14.4": "2026-12-31",
113
+ "15.0": "2026-09-30",
110
114
  "14.3": "2026-06-30",
111
- "13": "2026-04-30",
112
115
  "13.5": "2026-04-30",
116
+ "13": "2026-04-30",
113
117
  "14.2": "2025-09-30",
114
118
  "13.4": "2025-06-30",
115
119
  "14.1": "2025-03-31",
116
120
  "13.3": "2024-12-31",
117
121
  "14.0": "2024-09-30",
118
122
  "13.2": "2024-06-30",
119
- "12": "2023-12-31",
120
123
  "12.4": "2023-12-31",
124
+ "12": "2023-12-31",
121
125
  "13.1": "2023-07-31",
122
126
  "12.3": "2023-03-31",
123
127
  "13.0": "2022-08-31",
124
128
  "12.2": "2022-03-31",
125
- "11": "2021-09-30",
126
129
  "11.4": "2021-09-30",
130
+ "11": "2021-09-30",
127
131
  "12.1": "2021-01-31",
128
132
  "11.3": "2020-09-30",
129
133
  "12.0": "2020-02-29",
130
134
  "11.2": "2019-10-31",
131
- "10": "2018-10-31",
132
135
  "10.4": "2018-10-31",
136
+ "10": "2018-10-31",
133
137
  "11.1": "2018-09-30",
134
138
  "10.3": "2018-04-30",
135
139
  "11.0": "2017-11-30",
136
- "9": "2016-12-31",
137
- "9.3": "2016-12-31",
138
- "10.1": "2016-12-31",
139
140
  "10.2": "2016-12-31",
140
- "8": "2015-08-01",
141
+ "10.1": "2016-12-31",
142
+ "9.3": "2016-12-31",
143
+ "9": "2016-12-31",
141
144
  "8.4": "2015-08-01",
145
+ "8": "2015-08-01",
142
146
  "10.0": "2015-02-28",
143
- "9.1": "2014-12-31",
144
147
  "9.2": "2014-12-31",
148
+ "9.1": "2014-12-31",
145
149
  "8.3": "2014-04-30",
146
150
  "9.0": "2013-03-31",
147
- "7": "2013-02-28",
148
151
  "7.4": "2013-02-28",
149
- "8.1": "2012-07-31",
152
+ "7": "2013-02-28",
150
153
  "8.2": "2012-07-31",
154
+ "8.1": "2012-07-31",
151
155
  "7.3": "2012-03-31",
152
156
  "7.1": "2011-02-28",
153
- "6": "2010-11-30",
154
- "6.4": "2010-11-30",
155
157
  "8.0": "2010-11-30",
158
+ "6.4": "2010-11-30",
159
+ "6": "2010-11-30",
156
160
  "7.2": "2010-06-30",
157
161
  "6.3": "2010-01-31",
158
162
  "7.0": "2009-04-30",
159
- "5": "2008-05-31",
163
+ "6.2": "2008-05-31",
160
164
  "6.1": "2008-05-31",
161
165
  "5.5": "2008-05-31",
162
- "6.2": "2008-05-31",
163
- "4": "2007-01-31",
164
- "4.10": "2007-01-31",
165
- "4.11": "2007-01-31",
166
+ "5": "2008-05-31",
166
167
  "6.0": "2007-01-31",
167
- "5.3": "2006-10-31",
168
+ "4.11": "2007-01-31",
169
+ "4.10": "2007-01-31",
170
+ "4": "2007-01-31",
168
171
  "5.4": "2006-10-31",
172
+ "5.3": "2006-10-31",
169
173
  "5.2": "2005-02-28",
170
174
  "4.9": "2004-08-31",
171
175
  "5.1": "2004-04-30",
@@ -207,20 +211,21 @@
207
211
  "8": "2029-05-31"
208
212
  },
209
213
  "Scientific": {
210
- "7": "2024-06-30",
211
214
  "8": "2024-06-30",
215
+ "7": "2024-06-30",
212
216
  "6": "2020-11-30",
213
217
  "5": "2017-03-31",
214
218
  "4": "2012-02-29",
215
219
  "3": "2010-10-30"
216
220
  },
217
221
  "SLES": {
218
- "15": "2031-07-31",
219
222
  "15.7": "2031-07-31",
223
+ "15": "2031-07-31",
224
+ "16.0": "2027-11-30",
220
225
  "15.6": "2025-12-31",
221
226
  "15.5": "2024-12-31",
222
- "12": "2024-10-31",
223
227
  "12.5": "2024-10-31",
228
+ "12": "2024-10-31",
224
229
  "15.4": "2023-12-31",
225
230
  "15.3": "2022-12-31",
226
231
  "15.2": "2021-12-31",
@@ -228,15 +233,15 @@
228
233
  "12.4": "2020-06-30",
229
234
  "15.0": "2019-12-31",
230
235
  "12.3": "2019-06-30",
231
- "11": "2019-03-31",
232
236
  "11.4": "2019-03-31",
237
+ "11": "2019-03-31",
233
238
  "12.2": "2018-03-31",
234
239
  "12.1": "2017-05-31",
235
240
  "12.0": "2016-06-30",
236
241
  "11.3": "2016-01-31",
237
242
  "11.2": "2014-01-31",
238
- "10": "2013-07-31",
239
243
  "10.4": "2013-07-31",
244
+ "10": "2013-07-31",
240
245
  "11.1": "2012-08-31",
241
246
  "10.3": "2011-10-11",
242
247
  "11.0": "2010-12-31",
@@ -245,7 +250,8 @@
245
250
  "10.0": "2007-12-31"
246
251
  },
247
252
  "Ubuntu": {
248
- "24.04": "2029-04-25",
253
+ "26.04": "2031-05-31",
254
+ "24.04": "2029-05-31",
249
255
  "22.04": "2027-04-01",
250
256
  "25.10": "2026-07-01",
251
257
  "25.04": "2026-01-17",
@@ -273,9 +279,9 @@
273
279
  "13.10": "2014-07-17",
274
280
  "12.10": "2014-05-16",
275
281
  "13.04": "2014-01-27",
276
- "8.04": "2013-05-09",
277
- "10.04": "2013-05-09",
278
282
  "11.10": "2013-05-09",
283
+ "10.04": "2013-05-09",
284
+ "8.04": "2013-05-09",
279
285
  "11.04": "2012-10-28",
280
286
  "10.10": "2012-04-10",
281
287
  "6.06": "2011-06-01",
@@ -41,6 +41,14 @@ module PuppetMetadata
41
41
  'Amazon' => {
42
42
  '2023' => [8],
43
43
  },
44
+ 'Fedora' => {
45
+ '36' => 7..8,
46
+ '40' => 7..8,
47
+ '41' => 7..8,
48
+ '42' => [8],
49
+ '43' => [8],
50
+ '44' => [8],
51
+ },
44
52
  'RedHat' => {
45
53
  '7' => 7..8,
46
54
  '8' => 7..8,
@@ -52,6 +60,12 @@ module PuppetMetadata
52
60
  '12' => 7..8,
53
61
  '13' => [8],
54
62
  },
63
+ 'Ubuntu' => {
64
+ '20.04' => 7..8,
65
+ '22.04' => 7..8,
66
+ '24.04' => 7..8,
67
+ '26.04' => [8],
68
+ },
55
69
  }).freeze
56
70
 
57
71
  PUPPET_RUBY_VERSIONS = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
@@ -67,7 +67,7 @@ dependencies:
67
67
  version: '6.0'
68
68
  - - "<"
69
69
  - !ruby/object:Gem::Version
70
- version: '8'
70
+ version: '9'
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -77,7 +77,7 @@ dependencies:
77
77
  version: '6.0'
78
78
  - - "<"
79
79
  - !ruby/object:Gem::Version
80
- version: '8'
80
+ version: '9'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: rspec
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
- rubygems_version: 4.0.6
194
+ rubygems_version: 4.0.16
195
195
  specification_version: 4
196
196
  summary: Data structures for the Puppet Metadata
197
197
  test_files: []