puppet_metadata 2.0.0 → 3.0.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: 1763188bcd3297af8beb78aca2fc95986371390ea4e0d95178558c4744257a24
4
- data.tar.gz: 9f00b77fef19f20ff4a0efc020c39e651aa4a35c71778ec6aba8d0538a10110c
3
+ metadata.gz: 1e9d1c84b47834137907ffd323ba3c70c3813acc98b7b3baeaf2351a48b0d268
4
+ data.tar.gz: 7886a9e107fd780278bc3c94e083ae24bdfc0547d0347d6b144a9a5c61612484
5
5
  SHA512:
6
- metadata.gz: 205f35c88e3d3106f3403505c90e5e6f14271c2be756662bc347fc79aee1fc03ef8e1b5b32d5b3374b95df0a628ecba8cc009f8bdb8ab5260252d45173aed4ba
7
- data.tar.gz: e168ab33e1b0420031a08b833f46b85e22e60279b1c7228ad7188824021a9e0c12546995a406bfaa0016dcb3db3a07ab12635f9a615187f40746b648223da631
6
+ metadata.gz: 13ba21af9df52daa794b49571de0b8019a8f3da764f7945aa422c21f3c3041c03a00f89e3f2e48a60f3d6cd8ef4b60607f7ad3aa0d0d7fe18b433c9ab2b9635f
7
+ data.tar.gz: 33742d5addb4d89e784a44d1c3252cf6119a73405c450351d74f6e6da617c9b0f321dc3ff4687fec07459d4a06d432bf8e0203bec3fe5b5b10e825598dc940c4
data/README.md CHANGED
@@ -15,23 +15,24 @@ The gem intends to provide an abstraction over Puppet's metadata.json file. Its
15
15
  To get outputs [usable in Github Actions](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions), there is the `metadata2gha` command available. This generates based on metadata.json, such as [Beaker](https://github.com/voxpupuli/beaker) setfiles, Puppet major versions and a Puppet unit test matrix.
16
16
 
17
17
  ```console
18
- $ metadata2gha-beaker
19
- puppet_major_versions=[{"name":"Puppet 6","value":6,"collection":"puppet6"},{"name":"Puppet 5","value":5,"collection":"puppet5"}]
20
- puppet_unit_test_matrix=[{"puppet":6,"ruby":"2.5"},{"puppet":5,"ruby":"2.4"}]
18
+ $ metadata2gha
19
+ puppet_major_versions=[{"name":"Puppet 7","value":7,"collection":"puppet7"},{"name":"Puppet 6","value":6,"collection":"puppet6"}]
20
+ puppet_unit_test_matrix=[{"puppet":7,"ruby":"2.7"},{"puppet":6,"ruby":"2.5"}]
21
+ github_action_test_matrix=[{"setfile":{"name":"Debian 11","value":"debian11-64"},"puppet":{"name":"Puppet 7","value":7,"collection":"puppet7"}},{"setfile":{"name":"Debian 11","value":"debian11-64"},"puppet":{"name":"Puppet 6","value":6,"collection":"puppet6"}}]
21
22
  ```
22
23
 
23
24
  Puppet major versions formatted for readability:
24
25
  ```json
25
26
  [
27
+ {
28
+ "name": "Puppet 7",
29
+ "value": 7,
30
+ "collection": "puppet7"
31
+ },
26
32
  {
27
33
  "name": "Puppet 6",
28
34
  "value": 6,
29
35
  "collection": "puppet6"
30
- },
31
- {
32
- "name": "Puppet 5",
33
- "value": 5,
34
- "collection": "puppet5"
35
36
  }
36
37
  ]
37
38
  ```
@@ -39,13 +40,41 @@ Puppet major versions formatted for readability:
39
40
  Puppet unit test matrix formatted for readability:
40
41
  ```json
41
42
  [
43
+ {
44
+ "puppet": 7,
45
+ "ruby": "2.7"
46
+ },
42
47
  {
43
48
  "puppet": 6,
44
49
  "ruby": "2.5"
50
+ }
51
+ ]
52
+ ```
53
+
54
+ GitHub Action test matrix formatted for readability
55
+ ```json
56
+ [
57
+ {
58
+ "setfile": {
59
+ "name": "Debian 11",
60
+ "value": "debian11-64"
61
+ },
62
+ "puppet": {
63
+ "name": "Puppet 7",
64
+ "value": 7,
65
+ "collection": "puppet7"
66
+ }
45
67
  },
46
68
  {
47
- "puppet": 5,
48
- "ruby": "2.4"
69
+ "setfile": {
70
+ "name": "Debian 11",
71
+ "value": "debian11-64"
72
+ },
73
+ "puppet": {
74
+ "name": "Puppet 6",
75
+ "value": 6,
76
+ "collection": "puppet6"
77
+ }
49
78
  }
50
79
  ]
51
80
  ```
@@ -14,9 +14,9 @@ module PuppetMetadata
14
14
  'RedHat' => {
15
15
  '5' => 5..7,
16
16
  '6' => 5..7,
17
- '7' => 5..7,
18
- '8' => 5..7,
19
- '9' => 6..7,
17
+ '7' => 5..8,
18
+ '8' => 5..8,
19
+ '9' => 6..8,
20
20
  },
21
21
  'Fedora' => {
22
22
  '26' => [5],
@@ -27,26 +27,27 @@ module PuppetMetadata
27
27
  '31' => 5..7,
28
28
  '32' => 6..7,
29
29
  '34' => 6..7,
30
+ '36' => 7..8,
30
31
  },
31
32
  'SLES' => {
32
33
  '11' => [7],
33
- '12' => [7],
34
- '15' => [7],
34
+ '12' => 7..8,
35
+ '15' => 7..8,
35
36
  },
36
37
  # deb-based
37
38
  'Debian' => {
38
39
  '7' => [5],
39
40
  '8' => 5..6,
40
41
  '9' => 5..7,
41
- '10' => 5..7,
42
- '11' => 6..7,
42
+ '10' => 5..8,
43
+ '11' => 6..8,
43
44
  },
44
45
  'Ubuntu' => {
45
46
  '14.04' => 5..6,
46
47
  '16.04' => 5..7,
47
- '18.04' => 5..7,
48
- '20.04' => 6..7,
49
- '22.04' => 6..7,
48
+ '18.04' => 5..8,
49
+ '20.04' => 6..8,
50
+ '22.04' => 6..8,
50
51
  },
51
52
  }.freeze
52
53
 
@@ -55,6 +56,7 @@ module PuppetMetadata
55
56
  5 => '2.4',
56
57
  6 => '2.5',
57
58
  7 => '2.7',
59
+ 8 => '3.2',
58
60
  }.freeze
59
61
 
60
62
  class << self
@@ -115,7 +115,7 @@ module PuppetMetadata
115
115
  '19.10' => '2020-07-15',
116
116
  '19.04' => '2020-01-15',
117
117
  '18.10' => '2019-07-15',
118
- '18.04' => '2023-04-15',
118
+ '18.04' => '2023-05-31',
119
119
  '17.10' => '2018-07-15',
120
120
  '17.04' => '2018-01-15',
121
121
  '16.10' => '2017-07-20',
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: 2.0.0
4
+ version: 3.0.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-20 00:00:00.000000000 Z
12
+ date: 2023-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: metadata-json-lint
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: '0'
149
+ version: '2.7'
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="