puppet_metadata 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet_metadata/aio.rb +1 -0
- data/lib/puppet_metadata/operatingsystem.rb +12 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 586b3d7bb03fdc56eab652f252618bfe1f20229a075e608418ccee2470e96f65
|
4
|
+
data.tar.gz: cb3f784c9e89946f5d2ac309cd4a5f6f593b5b469d61d2aacb84c5642c13b55c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78734316ec15ed9ef46d99265753c680c7438905bc0d577dcdd603ace69238c3a612c484241229858ae590928a5f9d41a8ff71b2361eb5c8a9029608d8008a73
|
7
|
+
data.tar.gz: 2a3ff2b5fbcaebfcaeb2629f6c28abd4e31099d8121aa685e93cacfb3d21718a5f75ad7496a7c7c68dda5b738d81ab6b608c24cd23f50136f4268e1c718bf4a3
|
data/lib/puppet_metadata/aio.rb
CHANGED
@@ -83,6 +83,9 @@ module PuppetMetadata
|
|
83
83
|
},
|
84
84
|
# https://endoflife.software/operating-systems/linux/ubuntu
|
85
85
|
'Ubuntu' => {
|
86
|
+
'22.04' => '2027-04-15',
|
87
|
+
'21.10' => '2022-07-15',
|
88
|
+
'20.10' => '2021-07-15',
|
86
89
|
'20.04' => '2025-04-15',
|
87
90
|
'19.10' => '2020-07-15',
|
88
91
|
'19.04' => '2020-01-15',
|
@@ -158,6 +161,15 @@ module PuppetMetadata
|
|
158
161
|
releases = EOL_DATES[operatingsystem]
|
159
162
|
releases&.keys&.max_by { |release| Gem::Version.new(release) }
|
160
163
|
end
|
164
|
+
|
165
|
+
# Return an array of all Operating System versions that aren't EoL
|
166
|
+
# @param String operatingsystem The operating system
|
167
|
+
# @return [Array] All Operating System versions that aren't EoL today
|
168
|
+
def supported_releases(operatingsystem)
|
169
|
+
releases = EOL_DATES[operatingsystem]
|
170
|
+
today = Date.today
|
171
|
+
releases.compact.select {|release, eol_date| Date.parse(eol_date) > today}.keys.sort
|
172
|
+
end
|
161
173
|
end
|
162
174
|
end
|
163
175
|
end
|
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: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: metadata-json-lint
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
|
-
rubygems_version: 3.2.
|
156
|
+
rubygems_version: 3.2.33
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Data structures for the Puppet Metadata
|