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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 747e0f610eab5945e5394f6a8016b0208c9be6192dba0ebeca8a54adc50905f1
4
- data.tar.gz: 7f1faa8c180dab26899c9664cb43c0990fb0f8d416d768d7542cd936d086b0b6
3
+ metadata.gz: 586b3d7bb03fdc56eab652f252618bfe1f20229a075e608418ccee2470e96f65
4
+ data.tar.gz: cb3f784c9e89946f5d2ac309cd4a5f6f593b5b469d61d2aacb84c5642c13b55c
5
5
  SHA512:
6
- metadata.gz: 4572e37f989abc32cc51393c588e26c513afff9c497ca11f07cbe7897e6ea02399728b8354d5dd4b0268cf762693deff46482e0b2940e5c026a9931513045bfe
7
- data.tar.gz: 8c72e2c47b3a52d7bb478df00e106e484446a146d23281c61a04ba3cbe77e1f69ffa9cc531c8b218a4b62c1c038de7bd325910362157634789af1fed999e694e
6
+ metadata.gz: 78734316ec15ed9ef46d99265753c680c7438905bc0d577dcdd603ace69238c3a612c484241229858ae590928a5f9d41a8ff71b2361eb5c8a9029608d8008a73
7
+ data.tar.gz: 2a3ff2b5fbcaebfcaeb2629f6c28abd4e31099d8121aa685e93cacfb3d21718a5f75ad7496a7c7c68dda5b738d81ab6b608c24cd23f50136f4268e1c718bf4a3
@@ -46,6 +46,7 @@ module PuppetMetadata
46
46
  '16.04' => 5..7,
47
47
  '18.04' => 5..7,
48
48
  '20.04' => 6..7,
49
+ '22.04' => [], # https://tickets.puppetlabs.com/browse/PA-4233
49
50
  },
50
51
  }.freeze
51
52
 
@@ -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.0
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-02-15 00:00:00.000000000 Z
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.32
156
+ rubygems_version: 3.2.33
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Data structures for the Puppet Metadata