hiera-eyaml 3.4.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +18 -28
- data/.rubocop.yml +8 -0
- data/.rubocop_todo.yml +416 -0
- data/CHANGELOG.md +33 -1
- data/Gemfile +13 -14
- data/README.md +32 -8
- data/Rakefile +11 -4
- data/hiera-eyaml.gemspec +17 -15
- data/lib/hiera/backend/eyaml/CLI.rb +12 -19
- data/lib/hiera/backend/eyaml/commands.rb +2 -6
- data/lib/hiera/backend/eyaml/edithelper.rb +24 -19
- data/lib/hiera/backend/eyaml/encrypthelper.rb +17 -19
- data/lib/hiera/backend/eyaml/encryptor.rb +40 -43
- data/lib/hiera/backend/eyaml/encryptors/pkcs7.rb +79 -105
- data/lib/hiera/backend/eyaml/highlinehelper.rb +3 -5
- data/lib/hiera/backend/eyaml/logginghelper.rb +27 -29
- data/lib/hiera/backend/eyaml/options.rb +13 -16
- data/lib/hiera/backend/eyaml/parser/encrypted_tokens.rb +2 -2
- data/lib/hiera/backend/eyaml/parser/parser.rb +35 -36
- data/lib/hiera/backend/eyaml/parser/token.rb +15 -6
- data/lib/hiera/backend/eyaml/plugins.rb +13 -18
- data/lib/hiera/backend/eyaml/subcommand.rb +72 -74
- data/lib/hiera/backend/eyaml/subcommands/createkeys.rb +2 -6
- data/lib/hiera/backend/eyaml/subcommands/decrypt.rb +52 -52
- data/lib/hiera/backend/eyaml/subcommands/edit.rb +57 -58
- data/lib/hiera/backend/eyaml/subcommands/encrypt.rb +65 -69
- data/lib/hiera/backend/eyaml/subcommands/help.rb +17 -22
- data/lib/hiera/backend/eyaml/subcommands/recrypt.rb +13 -20
- data/lib/hiera/backend/eyaml/subcommands/unknown_command.rb +10 -14
- data/lib/hiera/backend/eyaml/subcommands/version.rb +4 -9
- data/lib/hiera/backend/eyaml/utils.rb +27 -28
- data/lib/hiera/backend/eyaml.rb +7 -9
- data/lib/hiera/backend/eyaml_backend.rb +33 -27
- metadata +62 -14
- data/tools/git_tag_release.rb +0 -98
- data/tools/regem.sh +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 678588aef70424addfe72a90edea53713e702cd2a55c4f707c19b1eb513f435e
|
4
|
+
data.tar.gz: 7ee2ee82496e760e298181a5109b43da47b260628f5934f950e60db0d67d50e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '029e218037fb48bea447bed3c046272a5a6932b1741a1b456092951940fd3c39e5a85d3b3593a87f5a76bf3ed4fbaa10b6d4ab72a20e05ee28fe4b55d2bbbc2d'
|
7
|
+
data.tar.gz: ef8d842be54361731abca7a3d2ff953a63cb42174f6746d4079ce124d28f1b7a0801a0043f74f110ac8b450586e1a9ea55148f73bfa4aceb376393b444d61956
|
@@ -10,13 +10,13 @@ jobs:
|
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
if: github.repository_owner == 'voxpupuli'
|
12
12
|
steps:
|
13
|
-
- uses: actions/checkout@
|
13
|
+
- uses: actions/checkout@v4
|
14
14
|
- name: Install Ruby 3.1
|
15
15
|
uses: ruby/setup-ruby@v1
|
16
16
|
with:
|
17
17
|
ruby-version: '3.1'
|
18
18
|
- name: Build gem
|
19
|
-
run: gem build *.gemspec
|
19
|
+
run: gem build --strict --verbose *.gemspec
|
20
20
|
- name: Publish gem to rubygems.org
|
21
21
|
run: gem push *.gem
|
22
22
|
env:
|
data/.github/workflows/test.yml
CHANGED
@@ -10,62 +10,53 @@ env:
|
|
10
10
|
BUNDLE_WITHOUT: release
|
11
11
|
|
12
12
|
jobs:
|
13
|
+
rubocop:
|
14
|
+
env:
|
15
|
+
BUNDLE_WITHOUT: release
|
16
|
+
runs-on: ubuntu-latest
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: "3.3"
|
23
|
+
bundler-cache: true
|
24
|
+
- name: Run Rubocop
|
25
|
+
run: bundle exec rake rubocop
|
13
26
|
test:
|
14
27
|
runs-on: ubuntu-latest
|
15
28
|
strategy:
|
16
29
|
fail-fast: false
|
17
30
|
matrix:
|
18
31
|
ruby:
|
19
|
-
- "2.5"
|
20
|
-
- "2.6"
|
21
32
|
- "2.7"
|
22
33
|
- "3.0"
|
23
34
|
- "3.1"
|
24
35
|
- "3.2"
|
36
|
+
- jruby-9.4
|
25
37
|
puppet:
|
26
38
|
- "~> 8.0"
|
27
39
|
- "~> 7.24"
|
28
|
-
- "~> 6.29"
|
29
40
|
- "https://github.com/puppetlabs/puppet.git#main"
|
30
41
|
exclude:
|
31
42
|
- ruby: "3.0"
|
32
43
|
puppet: "~> 8.0"
|
33
44
|
- ruby: "2.7"
|
34
45
|
puppet: "~> 8.0"
|
35
|
-
- ruby: "2.6"
|
36
|
-
puppet: "~> 8.0"
|
37
|
-
- ruby: "2.5"
|
38
|
-
puppet: "~> 8.0"
|
39
|
-
|
40
|
-
- ruby: "2.6"
|
41
|
-
puppet: "~> 7.24"
|
42
|
-
- ruby: "2.5"
|
43
|
-
puppet: "~> 7.24"
|
44
|
-
|
45
|
-
- ruby: "3.2"
|
46
|
-
puppet: "~> 6.29"
|
47
|
-
- ruby: "3.1"
|
48
|
-
puppet: "~> 6.29"
|
49
|
-
- ruby: "3.0"
|
50
|
-
puppet: "~> 6.29"
|
51
46
|
|
52
47
|
- ruby: "3.0"
|
53
48
|
puppet: "https://github.com/puppetlabs/puppet.git#main"
|
54
49
|
- ruby: "2.7"
|
55
50
|
puppet: "https://github.com/puppetlabs/puppet.git#main"
|
56
|
-
- ruby: "2.6"
|
57
|
-
puppet: "https://github.com/puppetlabs/puppet.git#main"
|
58
|
-
- ruby: "2.5"
|
59
|
-
puppet: "https://github.com/puppetlabs/puppet.git#main"
|
60
51
|
env:
|
61
52
|
PUPPET_VERSION: ${{ matrix.puppet }}
|
62
53
|
COVERAGE: ${{ matrix.coverage }}
|
63
54
|
name: "Ruby ${{ matrix.ruby }} - Puppet ${{ matrix.puppet }}"
|
64
55
|
steps:
|
65
56
|
- name: Enable coverage reporting on Ruby 3.1
|
66
|
-
if: matrix.puppet == '~> 7.
|
57
|
+
if: matrix.puppet == '~> 7.24' && matrix.ruby == '3.1'
|
67
58
|
run: echo 'COVERAGE=yes' >> $GITHUB_ENV
|
68
|
-
- uses: actions/checkout@
|
59
|
+
- uses: actions/checkout@v4
|
69
60
|
- name: Install expect
|
70
61
|
run: sudo apt-get install expect
|
71
62
|
- name: Install Ruby ${{ matrix.ruby }}
|
@@ -76,12 +67,11 @@ jobs:
|
|
76
67
|
- name: spec tests
|
77
68
|
run: bundle exec rake features
|
78
69
|
- name: Verify gem builds
|
79
|
-
run: gem build *.gemspec
|
80
|
-
- name: Run tests
|
81
|
-
run: bundle exec cucumber -f progress
|
70
|
+
run: gem build --strict --verbose *.gemspec
|
82
71
|
|
83
72
|
tests:
|
84
73
|
needs:
|
74
|
+
- rubocop
|
85
75
|
- test
|
86
76
|
runs-on: ubuntu-latest
|
87
77
|
name: Test suite
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,416 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2024-05-02 19:12:37 UTC using RuboCop version 1.62.1.
|
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: 1
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
11
|
+
# Configuration parameters: AllowForAlignment.
|
12
|
+
Layout/CommentIndentation:
|
13
|
+
Exclude:
|
14
|
+
- 'lib/hiera/backend/eyaml/subcommands/help.rb'
|
15
|
+
|
16
|
+
# Offense count: 2
|
17
|
+
# This cop supports safe autocorrection (--autocorrect).
|
18
|
+
# Configuration parameters: EnforcedStyle.
|
19
|
+
# SupportedStyles: space, compact, no_space
|
20
|
+
Layout/SpaceInsideParens:
|
21
|
+
Exclude:
|
22
|
+
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
23
|
+
|
24
|
+
# Offense count: 1
|
25
|
+
Lint/DuplicateMethods:
|
26
|
+
Exclude:
|
27
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
28
|
+
|
29
|
+
# Offense count: 5
|
30
|
+
# Configuration parameters: AllowedParentClasses.
|
31
|
+
Lint/MissingSuper:
|
32
|
+
Exclude:
|
33
|
+
- 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb'
|
34
|
+
|
35
|
+
# Offense count: 2
|
36
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
37
|
+
# Configuration parameters: AllowedImplicitNamespaces.
|
38
|
+
# AllowedImplicitNamespaces: Gem
|
39
|
+
Lint/RaiseException:
|
40
|
+
Exclude:
|
41
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
42
|
+
|
43
|
+
# Offense count: 1
|
44
|
+
Lint/RescueException:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
47
|
+
|
48
|
+
# Offense count: 1
|
49
|
+
Lint/ShadowingOuterLocalVariable:
|
50
|
+
Exclude:
|
51
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
52
|
+
|
53
|
+
# Offense count: 7
|
54
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
55
|
+
# Configuration parameters: AutoCorrect.
|
56
|
+
Lint/UselessAssignment:
|
57
|
+
Exclude:
|
58
|
+
- 'features/support/env.rb'
|
59
|
+
- 'lib/hiera/backend/eyaml/plugins.rb'
|
60
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
61
|
+
- 'lib/hiera/backend/eyaml/subcommands/unknown_command.rb'
|
62
|
+
- 'lib/hiera/backend/eyaml/subcommands/version.rb'
|
63
|
+
- 'lib/hiera/backend/eyaml/utils.rb'
|
64
|
+
|
65
|
+
# Offense count: 1
|
66
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
67
|
+
# Configuration parameters: AutoCorrect.
|
68
|
+
Lint/UselessMethodDefinition:
|
69
|
+
Exclude:
|
70
|
+
- 'lib/hiera/backend/eyaml/parser/token.rb'
|
71
|
+
|
72
|
+
# Offense count: 1
|
73
|
+
# This cop supports safe autocorrection (--autocorrect).
|
74
|
+
# Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects.
|
75
|
+
Lint/Void:
|
76
|
+
Exclude:
|
77
|
+
- 'lib/hiera/backend/eyaml/parser/token.rb'
|
78
|
+
|
79
|
+
# Offense count: 1
|
80
|
+
Naming/AccessorMethodName:
|
81
|
+
Exclude:
|
82
|
+
- 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb'
|
83
|
+
|
84
|
+
# Offense count: 1
|
85
|
+
# Configuration parameters: AllowedNames.
|
86
|
+
# AllowedNames: module_parent
|
87
|
+
Naming/ClassAndModuleCamelCase:
|
88
|
+
Exclude:
|
89
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
90
|
+
|
91
|
+
# Offense count: 1
|
92
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
93
|
+
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
94
|
+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
95
|
+
Naming/FileName:
|
96
|
+
Exclude:
|
97
|
+
- 'lib/hiera/backend/eyaml/CLI.rb'
|
98
|
+
|
99
|
+
# Offense count: 3
|
100
|
+
# Configuration parameters: ForbiddenDelimiters.
|
101
|
+
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
102
|
+
Naming/HeredocDelimiterNaming:
|
103
|
+
Exclude:
|
104
|
+
- 'lib/hiera/backend/eyaml/subcommands/edit.rb'
|
105
|
+
- 'lib/hiera/backend/eyaml/subcommands/help.rb'
|
106
|
+
- 'lib/hiera/backend/eyaml/subcommands/unknown_command.rb'
|
107
|
+
|
108
|
+
# Offense count: 1
|
109
|
+
# Configuration parameters: EnforcedStyle, AllowedPatterns.
|
110
|
+
# SupportedStyles: snake_case, camelCase
|
111
|
+
Naming/MethodName:
|
112
|
+
Exclude:
|
113
|
+
- 'lib/hiera/backend/eyaml/encryptors/pkcs7.rb'
|
114
|
+
|
115
|
+
# Offense count: 1
|
116
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
117
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
118
|
+
Naming/MethodParameterName:
|
119
|
+
Exclude:
|
120
|
+
- 'lib/hiera/backend/eyaml/parser/parser.rb'
|
121
|
+
|
122
|
+
# Offense count: 1
|
123
|
+
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
124
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
125
|
+
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
126
|
+
Naming/VariableNumber:
|
127
|
+
Exclude:
|
128
|
+
- 'lib/hiera/backend/eyaml/utils.rb'
|
129
|
+
|
130
|
+
# Offense count: 3
|
131
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
132
|
+
Performance/Casecmp:
|
133
|
+
Exclude:
|
134
|
+
- 'lib/hiera/backend/eyaml/highlinehelper.rb'
|
135
|
+
- 'lib/hiera/backend/eyaml/utils.rb'
|
136
|
+
|
137
|
+
# Offense count: 1
|
138
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
139
|
+
Performance/Detect:
|
140
|
+
Exclude:
|
141
|
+
- 'lib/hiera/backend/eyaml/edithelper.rb'
|
142
|
+
|
143
|
+
# Offense count: 5
|
144
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
145
|
+
Performance/MapCompact:
|
146
|
+
Exclude:
|
147
|
+
- 'lib/hiera/backend/eyaml/edithelper.rb'
|
148
|
+
- 'lib/hiera/backend/eyaml/subcommands/decrypt.rb'
|
149
|
+
- 'lib/hiera/backend/eyaml/subcommands/encrypt.rb'
|
150
|
+
- 'lib/hiera/backend/eyaml/subcommands/help.rb'
|
151
|
+
- 'lib/hiera/backend/eyaml/subcommands/unknown_command.rb'
|
152
|
+
|
153
|
+
# Offense count: 1
|
154
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
155
|
+
# Configuration parameters: MaxKeyValuePairs.
|
156
|
+
Performance/RedundantMerge:
|
157
|
+
Exclude:
|
158
|
+
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
159
|
+
|
160
|
+
# Offense count: 1
|
161
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
162
|
+
Performance/StringInclude:
|
163
|
+
Exclude:
|
164
|
+
- 'lib/hiera/backend/eyaml/utils.rb'
|
165
|
+
|
166
|
+
# Offense count: 1
|
167
|
+
Security/Open:
|
168
|
+
Exclude:
|
169
|
+
- 'lib/hiera/backend/eyaml/encrypthelper.rb'
|
170
|
+
|
171
|
+
# Offense count: 2
|
172
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
173
|
+
Security/YAMLLoad:
|
174
|
+
Exclude:
|
175
|
+
- 'features/step_definitions/decrypt_steps.rb'
|
176
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
177
|
+
|
178
|
+
# Offense count: 9
|
179
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
180
|
+
# Configuration parameters: EnforcedStyle.
|
181
|
+
# SupportedStyles: always, conditionals
|
182
|
+
Style/AndOr:
|
183
|
+
Exclude:
|
184
|
+
- 'lib/hiera/backend/eyaml/encryptors/pkcs7.rb'
|
185
|
+
- 'lib/hiera/backend/eyaml/highlinehelper.rb'
|
186
|
+
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
187
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
188
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
189
|
+
|
190
|
+
# Offense count: 1
|
191
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
192
|
+
# Configuration parameters: MinBranchesCount.
|
193
|
+
Style/CaseLikeIf:
|
194
|
+
Exclude:
|
195
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
196
|
+
|
197
|
+
# Offense count: 18
|
198
|
+
Style/ClassVars:
|
199
|
+
Exclude:
|
200
|
+
- 'lib/hiera/backend/eyaml.rb'
|
201
|
+
- 'lib/hiera/backend/eyaml/commands.rb'
|
202
|
+
- 'lib/hiera/backend/eyaml/options.rb'
|
203
|
+
- 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb'
|
204
|
+
- 'lib/hiera/backend/eyaml/plugins.rb'
|
205
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
206
|
+
- 'lib/hiera/backend/eyaml/subcommands/unknown_command.rb'
|
207
|
+
|
208
|
+
# Offense count: 1
|
209
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
210
|
+
# Configuration parameters: AllowedReceivers.
|
211
|
+
Style/CollectionCompact:
|
212
|
+
Exclude:
|
213
|
+
- 'lib/hiera/backend/eyaml/parser/parser.rb'
|
214
|
+
|
215
|
+
# Offense count: 35
|
216
|
+
# Configuration parameters: AllowedConstants.
|
217
|
+
Style/Documentation:
|
218
|
+
Enabled: false
|
219
|
+
|
220
|
+
# Offense count: 2
|
221
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
222
|
+
Style/EnvHome:
|
223
|
+
Exclude:
|
224
|
+
- 'lib/hiera/backend/eyaml/edithelper.rb'
|
225
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
226
|
+
|
227
|
+
# Offense count: 10
|
228
|
+
# This cop supports safe autocorrection (--autocorrect).
|
229
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
230
|
+
# SupportedStyles: annotated, template, unannotated
|
231
|
+
Style/FormatStringToken:
|
232
|
+
EnforcedStyle: unannotated
|
233
|
+
|
234
|
+
# Offense count: 36
|
235
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
236
|
+
# Configuration parameters: EnforcedStyle.
|
237
|
+
# SupportedStyles: always, always_true, never
|
238
|
+
Style/FrozenStringLiteralComment:
|
239
|
+
Enabled: false
|
240
|
+
|
241
|
+
# Offense count: 3
|
242
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
243
|
+
Style/GlobalStdStream:
|
244
|
+
Exclude:
|
245
|
+
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
246
|
+
- 'lib/hiera/backend/eyaml/subcommands/decrypt.rb'
|
247
|
+
- 'lib/hiera/backend/eyaml/subcommands/encrypt.rb'
|
248
|
+
|
249
|
+
# Offense count: 6
|
250
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
251
|
+
Style/IdenticalConditionalBranches:
|
252
|
+
Exclude:
|
253
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
254
|
+
- 'lib/hiera/backend/eyaml/subcommands/decrypt.rb'
|
255
|
+
- 'lib/hiera/backend/eyaml/subcommands/edit.rb'
|
256
|
+
|
257
|
+
# Offense count: 3
|
258
|
+
# This cop supports safe autocorrection (--autocorrect).
|
259
|
+
Style/IfUnlessModifier:
|
260
|
+
Exclude:
|
261
|
+
- 'lib/hiera/backend/eyaml/encryptors/pkcs7.rb'
|
262
|
+
- 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb'
|
263
|
+
|
264
|
+
# Offense count: 2
|
265
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
266
|
+
# Configuration parameters: AllowedMethods.
|
267
|
+
# AllowedMethods: nonzero?
|
268
|
+
Style/IfWithBooleanLiteralBranches:
|
269
|
+
Exclude:
|
270
|
+
- 'lib/hiera/backend/eyaml/highlinehelper.rb'
|
271
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
272
|
+
|
273
|
+
# Offense count: 1
|
274
|
+
Style/MultilineBlockChain:
|
275
|
+
Exclude:
|
276
|
+
- 'lib/hiera/backend/eyaml/parser/parser.rb'
|
277
|
+
|
278
|
+
# Offense count: 2
|
279
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
280
|
+
# Configuration parameters: EnforcedStyle.
|
281
|
+
# SupportedStyles: literals, strict
|
282
|
+
Style/MutableConstant:
|
283
|
+
Exclude:
|
284
|
+
- 'lib/hiera/backend/eyaml.rb'
|
285
|
+
|
286
|
+
# Offense count: 4
|
287
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
288
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
289
|
+
# SupportedStyles: predicate, comparison
|
290
|
+
Style/NumericPredicate:
|
291
|
+
Exclude:
|
292
|
+
- 'spec/**/*'
|
293
|
+
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
294
|
+
- 'lib/hiera/backend/eyaml/parser/parser.rb'
|
295
|
+
- 'lib/hiera/backend/eyaml/subcommands/edit.rb'
|
296
|
+
- 'lib/hiera/backend/eyaml/utils.rb'
|
297
|
+
|
298
|
+
# Offense count: 1
|
299
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
300
|
+
# Configuration parameters: EnforcedStyle.
|
301
|
+
# SupportedStyles: short, verbose
|
302
|
+
Style/PreferredHashMethods:
|
303
|
+
Exclude:
|
304
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
305
|
+
|
306
|
+
# Offense count: 1
|
307
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
308
|
+
# Configuration parameters: Methods.
|
309
|
+
Style/RedundantArgument:
|
310
|
+
Exclude:
|
311
|
+
- 'lib/hiera/backend/eyaml/edithelper.rb'
|
312
|
+
|
313
|
+
# Offense count: 1
|
314
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
315
|
+
Style/RedundantFilterChain:
|
316
|
+
Exclude:
|
317
|
+
- 'lib/hiera/backend/eyaml/edithelper.rb'
|
318
|
+
|
319
|
+
# Offense count: 1
|
320
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
321
|
+
# Configuration parameters: AutoCorrect, AllowComments.
|
322
|
+
Style/RedundantInitialize:
|
323
|
+
Exclude:
|
324
|
+
- 'lib/hiera/backend/eyaml/parser/token.rb'
|
325
|
+
|
326
|
+
# Offense count: 6
|
327
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
328
|
+
Style/RedundantInterpolation:
|
329
|
+
Exclude:
|
330
|
+
- 'features/support/env.rb'
|
331
|
+
- 'lib/hiera/backend/eyaml/encrypthelper.rb'
|
332
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
333
|
+
- 'lib/hiera/backend/eyaml/subcommands/edit.rb'
|
334
|
+
- 'lib/hiera/backend/eyaml/subcommands/recrypt.rb'
|
335
|
+
|
336
|
+
# Offense count: 1
|
337
|
+
# This cop supports safe autocorrection (--autocorrect).
|
338
|
+
Style/RedundantSelf:
|
339
|
+
Exclude:
|
340
|
+
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
341
|
+
|
342
|
+
# Offense count: 1
|
343
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
344
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
345
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
346
|
+
Style/SafeNavigation:
|
347
|
+
Exclude:
|
348
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
349
|
+
|
350
|
+
# Offense count: 1
|
351
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
352
|
+
Style/SelectByRegexp:
|
353
|
+
Exclude:
|
354
|
+
- 'hiera-eyaml.gemspec'
|
355
|
+
|
356
|
+
# Offense count: 1
|
357
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
358
|
+
Style/SlicingWithRange:
|
359
|
+
Exclude:
|
360
|
+
- 'lib/hiera/backend/eyaml/edithelper.rb'
|
361
|
+
|
362
|
+
# Offense count: 4
|
363
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
364
|
+
# Configuration parameters: RequireEnglish, EnforcedStyle.
|
365
|
+
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
366
|
+
Style/SpecialGlobalVars:
|
367
|
+
Exclude:
|
368
|
+
- 'hiera-eyaml.gemspec'
|
369
|
+
- 'lib/hiera/backend/eyaml/subcommands/edit.rb'
|
370
|
+
|
371
|
+
# Offense count: 1
|
372
|
+
# This cop supports safe autocorrection (--autocorrect).
|
373
|
+
Style/StderrPuts:
|
374
|
+
Exclude:
|
375
|
+
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
376
|
+
|
377
|
+
# Offense count: 11
|
378
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
379
|
+
# Configuration parameters: Mode.
|
380
|
+
Style/StringConcatenation:
|
381
|
+
Exclude:
|
382
|
+
- 'features/support/env.rb'
|
383
|
+
- 'lib/hiera/backend/eyaml/edithelper.rb'
|
384
|
+
- 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb'
|
385
|
+
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
386
|
+
- 'lib/hiera/backend/eyaml/subcommands/decrypt.rb'
|
387
|
+
- 'lib/hiera/backend/eyaml/subcommands/help.rb'
|
388
|
+
- 'lib/hiera/backend/eyaml/subcommands/unknown_command.rb'
|
389
|
+
- 'lib/hiera/backend/eyaml/utils.rb'
|
390
|
+
|
391
|
+
# Offense count: 9
|
392
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
393
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
394
|
+
# AllowedMethods: define_method
|
395
|
+
Style/SymbolProc:
|
396
|
+
Exclude:
|
397
|
+
- 'features/step_definitions/recrypt_steps.rb'
|
398
|
+
- 'lib/hiera/backend/eyaml/parser/parser.rb'
|
399
|
+
- 'lib/hiera/backend/eyaml/subcommands/decrypt.rb'
|
400
|
+
- 'lib/hiera/backend/eyaml/subcommands/edit.rb'
|
401
|
+
- 'lib/hiera/backend/eyaml/subcommands/encrypt.rb'
|
402
|
+
- 'lib/hiera/backend/eyaml/utils.rb'
|
403
|
+
- 'lib/hiera/backend/eyaml_backend.rb'
|
404
|
+
|
405
|
+
# Offense count: 1
|
406
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
407
|
+
Style/ZeroLengthPredicate:
|
408
|
+
Exclude:
|
409
|
+
- 'lib/hiera/backend/eyaml/parser/parser.rb'
|
410
|
+
|
411
|
+
# Offense count: 11
|
412
|
+
# This cop supports safe autocorrection (--autocorrect).
|
413
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
414
|
+
# URISchemes: http, https
|
415
|
+
Layout/LineLength:
|
416
|
+
Max: 194
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,39 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [v4.0.0](https://github.com/voxpupuli/hiera-eyaml/tree/v4.0.0) (2024-05-10)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v3.4.0...v4.0.0)
|
8
|
+
|
9
|
+
**Breaking changes:**
|
10
|
+
|
11
|
+
- Drop support for ruby 2.6 [\#366](https://github.com/voxpupuli/hiera-eyaml/pull/366) ([cmd-ntrf](https://github.com/cmd-ntrf))
|
12
|
+
- Drop EoL Puppet 6 testing [\#358](https://github.com/voxpupuli/hiera-eyaml/pull/358) ([bastelfreak](https://github.com/bastelfreak))
|
13
|
+
- Drop Ruby 2.5 support [\#351](https://github.com/voxpupuli/hiera-eyaml/pull/351) ([bastelfreak](https://github.com/bastelfreak))
|
14
|
+
|
15
|
+
**Implemented enhancements:**
|
16
|
+
|
17
|
+
- Remove non-essential public certificate attributes [\#380](https://github.com/voxpupuli/hiera-eyaml/pull/380) ([cmd-ntrf](https://github.com/cmd-ntrf))
|
18
|
+
- Add support to encrypt with an RSA public key [\#379](https://github.com/voxpupuli/hiera-eyaml/pull/379) ([cmd-ntrf](https://github.com/cmd-ntrf))
|
19
|
+
- Add more jruby interpreter to CI [\#376](https://github.com/voxpupuli/hiera-eyaml/pull/376) ([bastelfreak](https://github.com/bastelfreak))
|
20
|
+
- CI: Allow newer aruba/cucumber versions [\#373](https://github.com/voxpupuli/hiera-eyaml/pull/373) ([bastelfreak](https://github.com/bastelfreak))
|
21
|
+
- rubocop: lint for Ruby 2.7 [\#370](https://github.com/voxpupuli/hiera-eyaml/pull/370) ([bastelfreak](https://github.com/bastelfreak))
|
22
|
+
- Load configuration file from working directory [\#356](https://github.com/voxpupuli/hiera-eyaml/pull/356) ([micmax93](https://github.com/micmax93))
|
23
|
+
- Update gems and introduce rubocop [\#353](https://github.com/voxpupuli/hiera-eyaml/pull/353) ([bastelfreak](https://github.com/bastelfreak))
|
24
|
+
|
25
|
+
**Fixed bugs:**
|
26
|
+
|
27
|
+
- CI: fix coverage reporting [\#374](https://github.com/voxpupuli/hiera-eyaml/pull/374) ([bastelfreak](https://github.com/bastelfreak))
|
28
|
+
|
29
|
+
**Merged pull requests:**
|
30
|
+
|
31
|
+
- rubocop: switch to voxpupuli-rubocop [\#372](https://github.com/voxpupuli/hiera-eyaml/pull/372) ([bastelfreak](https://github.com/bastelfreak))
|
32
|
+
- Drop Ruby 2.6 leftovers in CI config [\#369](https://github.com/voxpupuli/hiera-eyaml/pull/369) ([bastelfreak](https://github.com/bastelfreak))
|
33
|
+
- README.md: Refactor markdown, cleanup links [\#368](https://github.com/voxpupuli/hiera-eyaml/pull/368) ([bastelfreak](https://github.com/bastelfreak))
|
34
|
+
- fix: upgrade to aruba-2/cucumber-8 [\#360](https://github.com/voxpupuli/hiera-eyaml/pull/360) ([robbat2](https://github.com/robbat2))
|
35
|
+
- rubocop: autofix [\#357](https://github.com/voxpupuli/hiera-eyaml/pull/357) ([bastelfreak](https://github.com/bastelfreak))
|
36
|
+
- CI: Build gems with strictness and verbosity [\#348](https://github.com/voxpupuli/hiera-eyaml/pull/348) ([bastelfreak](https://github.com/bastelfreak))
|
37
|
+
|
5
38
|
## [v3.4.0](https://github.com/voxpupuli/hiera-eyaml/tree/v3.4.0) (2023-05-26)
|
6
39
|
|
7
40
|
[Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v3.3.0...v3.4.0)
|
@@ -24,7 +57,6 @@ All notable changes to this project will be documented in this file.
|
|
24
57
|
**Merged pull requests:**
|
25
58
|
|
26
59
|
- Apply Vox Pupuli CI best practices [\#345](https://github.com/voxpupuli/hiera-eyaml/pull/345) ([bastelfreak](https://github.com/bastelfreak))
|
27
|
-
- Bump actions/checkout from 2 to 3 [\#343](https://github.com/voxpupuli/hiera-eyaml/pull/343) ([dependabot[bot]](https://github.com/apps/dependabot))
|
28
60
|
- Add dependabot for gems and github actions [\#342](https://github.com/voxpupuli/hiera-eyaml/pull/342) ([bastelfreak](https://github.com/bastelfreak))
|
29
61
|
- CI: Ensure we use Puppet 6.29 or newer [\#341](https://github.com/voxpupuli/hiera-eyaml/pull/341) ([bastelfreak](https://github.com/bastelfreak))
|
30
62
|
- README: Add apt to installation methods [\#338](https://github.com/voxpupuli/hiera-eyaml/pull/338) ([AntoineSebert](https://github.com/AntoineSebert))
|
data/Gemfile
CHANGED
@@ -6,31 +6,30 @@ source 'https://rubygems.org/'
|
|
6
6
|
# is specified as `file://some/location/on/disk`.
|
7
7
|
def location_for(place_or_version, fake_version = nil)
|
8
8
|
if place_or_version =~ /^(https[:@][^#]*)#(.*)/
|
9
|
-
[fake_version, { :
|
10
|
-
elsif place_or_version =~
|
11
|
-
['>= 0', { :
|
9
|
+
[fake_version, { git: Regexp.last_match(1), branch: Regexp.last_match(2), require: false }].compact
|
10
|
+
elsif place_or_version =~ %r{^file://(.*)}
|
11
|
+
['>= 0', { path: File.expand_path(Regexp.last_match(1)), require: false }]
|
12
12
|
else
|
13
|
-
[place_or_version, { :
|
13
|
+
[place_or_version, { require: false }]
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
17
|
gemspec
|
18
18
|
|
19
19
|
group :development do
|
20
|
-
gem
|
21
|
-
gem
|
22
|
-
gem
|
23
|
-
gem
|
20
|
+
gem 'activesupport'
|
21
|
+
gem 'aruba', '~> 2.2'
|
22
|
+
gem 'cucumber', '~> 9.2'
|
23
|
+
gem 'hiera-eyaml-plaintext'
|
24
24
|
gem 'puppet', *location_for(ENV['PUPPET_VERSION']) if ENV['PUPPET_VERSION']
|
25
|
-
gem 'github_changelog_generator'
|
26
|
-
gem "activesupport"
|
27
25
|
end
|
28
26
|
|
29
|
-
group :
|
30
|
-
gem
|
27
|
+
group :release do
|
28
|
+
gem 'faraday-retry', require: false
|
29
|
+
gem 'github_changelog_generator', require: false
|
31
30
|
end
|
32
31
|
|
33
32
|
group :coverage, optional: ENV['COVERAGE'] != 'yes' do
|
34
|
-
gem '
|
35
|
-
gem '
|
33
|
+
gem 'codecov', require: false
|
34
|
+
gem 'simplecov-console', require: false
|
36
35
|
end
|