hiera-eyaml 4.1.0 → 4.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 +4 -4
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +23 -13
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +13 -54
- data/CHANGELOG.md +26 -1
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/hiera-eyaml.gemspec +3 -3
- data/lib/hiera/backend/eyaml/highlinehelper.rb +1 -5
- data/lib/hiera/backend/eyaml/logginghelper.rb +1 -1
- data/lib/hiera/backend/eyaml/parser/encrypted_tokens.rb +2 -6
- data/lib/hiera/backend/eyaml/parser/token.rb +1 -2
- data/lib/hiera/backend/eyaml/plugins.rb +0 -1
- data/lib/hiera/backend/eyaml/subcommand.rb +1 -1
- data/lib/hiera/backend/eyaml/subcommands/unknown_command.rb +0 -1
- data/lib/hiera/backend/eyaml/subcommands/version.rb +0 -2
- data/lib/hiera/backend/eyaml/utils.rb +1 -1
- data/lib/hiera/backend/eyaml.rb +1 -1
- data/lib/hiera/backend/eyaml_backend.rb +1 -1
- metadata +18 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2577211244aa5ae7a4702accf5c85ccaf652631cc8e83fb1cecd11aa0a6e4de
|
4
|
+
data.tar.gz: c399d35a8687cea60ec1a969776163b1b3fe4cd0a53614243154979c4306b104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a2efe12d2603a60cd2d0c3a2931ed1c4b3b9150e65604c20765ba12d34fcf66f87f0f2f48738cc3f07604b0ee65a618eb9797e93b6a46d5df5e248c893ed84e
|
7
|
+
data.tar.gz: 69eaedaf4cd15cd26233177a508bfc0e780557639374618c78d3b1c2ff6b081000a5c9bcca0072c020da9eaefcd309ef45c67d094769e47901cb938d63772d16
|
@@ -11,10 +11,10 @@ jobs:
|
|
11
11
|
if: github.repository_owner == 'voxpupuli'
|
12
12
|
steps:
|
13
13
|
- uses: actions/checkout@v4
|
14
|
-
- name: Install Ruby 3.
|
14
|
+
- name: Install Ruby 3.3
|
15
15
|
uses: ruby/setup-ruby@v1
|
16
16
|
with:
|
17
|
-
ruby-version: '3.
|
17
|
+
ruby-version: '3.3'
|
18
18
|
- name: Build gem
|
19
19
|
run: gem build --strict --verbose *.gemspec
|
20
20
|
- name: Publish gem to rubygems.org
|
data/.github/workflows/test.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
name: Test
|
2
3
|
|
3
4
|
on:
|
@@ -13,7 +14,7 @@ jobs:
|
|
13
14
|
rubocop:
|
14
15
|
env:
|
15
16
|
BUNDLE_WITHOUT: release
|
16
|
-
runs-on: ubuntu-
|
17
|
+
runs-on: ubuntu-24.04
|
17
18
|
steps:
|
18
19
|
- uses: actions/checkout@v4
|
19
20
|
- name: Install Ruby ${{ matrix.ruby }}
|
@@ -24,7 +25,7 @@ jobs:
|
|
24
25
|
- name: Run Rubocop
|
25
26
|
run: bundle exec rake rubocop
|
26
27
|
test:
|
27
|
-
runs-on: ubuntu-
|
28
|
+
runs-on: ubuntu-24.04
|
28
29
|
strategy:
|
29
30
|
fail-fast: false
|
30
31
|
matrix:
|
@@ -33,28 +34,35 @@ jobs:
|
|
33
34
|
- "3.0"
|
34
35
|
- "3.1"
|
35
36
|
- "3.2"
|
37
|
+
- "3.3"
|
36
38
|
- jruby-9.4
|
37
|
-
|
38
|
-
- "~> 8
|
39
|
-
- "~> 7
|
40
|
-
- "https://github.com/
|
39
|
+
openvox:
|
40
|
+
- "~> 8"
|
41
|
+
- "~> 7"
|
42
|
+
- "https://github.com/OpenVoxProject/puppet.git#main"
|
41
43
|
exclude:
|
42
44
|
- ruby: "3.0"
|
43
|
-
|
45
|
+
openvox: "~> 8"
|
46
|
+
- ruby: "2.7"
|
47
|
+
openvox: "~> 8"
|
48
|
+
|
49
|
+
- ruby: "3.0"
|
50
|
+
openvox: "https://github.com/openvoxlabs/puppet.git#main"
|
44
51
|
- ruby: "2.7"
|
45
|
-
|
52
|
+
openvox: "https://github.com/openvoxlabs/puppet.git#main"
|
46
53
|
|
47
54
|
- ruby: "3.0"
|
48
|
-
|
55
|
+
openvox: "https://github.com/openvoxproject/puppet.git#main"
|
49
56
|
- ruby: "2.7"
|
50
|
-
|
57
|
+
openvox: "https://github.com/openvoxproject/puppet.git#main"
|
58
|
+
|
51
59
|
env:
|
52
|
-
|
60
|
+
OPENVOX_VERSION: ${{ matrix.openvox }}
|
53
61
|
COVERAGE: ${{ matrix.coverage }}
|
54
|
-
name: "Ruby ${{ matrix.ruby }} -
|
62
|
+
name: "Ruby ${{ matrix.ruby }} - OpenVox ${{ matrix.openvox }}"
|
55
63
|
steps:
|
56
64
|
- name: Enable coverage reporting on Ruby 3.1
|
57
|
-
if: matrix.
|
65
|
+
if: matrix.openvox == '~> 7.24' && matrix.ruby == '3.1'
|
58
66
|
run: echo 'COVERAGE=yes' >> $GITHUB_ENV
|
59
67
|
- uses: actions/checkout@v4
|
60
68
|
- name: Install expect
|
@@ -64,6 +72,8 @@ jobs:
|
|
64
72
|
with:
|
65
73
|
ruby-version: ${{ matrix.ruby }}
|
66
74
|
bundler-cache: true
|
75
|
+
- name: Display Ruby environment
|
76
|
+
run: bundle env
|
67
77
|
- name: spec tests
|
68
78
|
run: bundle exec rake features
|
69
79
|
- name: Verify gem builds
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
#
|
2
|
+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 1.75.8.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -13,14 +13,6 @@ Layout/CommentIndentation:
|
|
13
13
|
Exclude:
|
14
14
|
- 'lib/hiera/backend/eyaml/subcommands/help.rb'
|
15
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
16
|
# Offense count: 1
|
25
17
|
Lint/DuplicateMethods:
|
26
18
|
Exclude:
|
@@ -45,23 +37,6 @@ Lint/RescueException:
|
|
45
37
|
Exclude:
|
46
38
|
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
47
39
|
|
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
40
|
# Offense count: 1
|
66
41
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
67
42
|
# Configuration parameters: AutoCorrect.
|
@@ -74,7 +49,7 @@ Lint/UselessMethodDefinition:
|
|
74
49
|
# Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects.
|
75
50
|
Lint/Void:
|
76
51
|
Exclude:
|
77
|
-
- '
|
52
|
+
- 'features/support/env.rb'
|
78
53
|
|
79
54
|
# Offense count: 1
|
80
55
|
Naming/AccessorMethodName:
|
@@ -94,6 +69,7 @@ Naming/ClassAndModuleCamelCase:
|
|
94
69
|
# 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
70
|
Naming/FileName:
|
96
71
|
Exclude:
|
72
|
+
- 'Rakefile.rb'
|
97
73
|
- 'lib/hiera/backend/eyaml/CLI.rb'
|
98
74
|
|
99
75
|
# Offense count: 3
|
@@ -106,8 +82,9 @@ Naming/HeredocDelimiterNaming:
|
|
106
82
|
- 'lib/hiera/backend/eyaml/subcommands/unknown_command.rb'
|
107
83
|
|
108
84
|
# Offense count: 1
|
109
|
-
# Configuration parameters: EnforcedStyle, AllowedPatterns.
|
85
|
+
# Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
110
86
|
# SupportedStyles: snake_case, camelCase
|
87
|
+
# ForbiddenIdentifiers: __id__, __send__
|
111
88
|
Naming/MethodName:
|
112
89
|
Exclude:
|
113
90
|
- 'lib/hiera/backend/eyaml/encryptors/pkcs7.rb'
|
@@ -122,18 +99,11 @@ Naming/MethodParameterName:
|
|
122
99
|
# Offense count: 1
|
123
100
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
124
101
|
# SupportedStyles: snake_case, normalcase, non_integer
|
125
|
-
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
102
|
+
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
126
103
|
Naming/VariableNumber:
|
127
104
|
Exclude:
|
128
105
|
- 'lib/hiera/backend/eyaml/utils.rb'
|
129
106
|
|
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
107
|
# Offense count: 1
|
138
108
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
139
109
|
Performance/Detect:
|
@@ -175,14 +145,13 @@ Security/YAMLLoad:
|
|
175
145
|
- 'features/step_definitions/decrypt_steps.rb'
|
176
146
|
- 'lib/hiera/backend/eyaml_backend.rb'
|
177
147
|
|
178
|
-
# Offense count:
|
148
|
+
# Offense count: 8
|
179
149
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
180
150
|
# Configuration parameters: EnforcedStyle.
|
181
151
|
# SupportedStyles: always, conditionals
|
182
152
|
Style/AndOr:
|
183
153
|
Exclude:
|
184
154
|
- 'lib/hiera/backend/eyaml/encryptors/pkcs7.rb'
|
185
|
-
- 'lib/hiera/backend/eyaml/highlinehelper.rb'
|
186
155
|
- 'lib/hiera/backend/eyaml/logginghelper.rb'
|
187
156
|
- 'lib/hiera/backend/eyaml/subcommand.rb'
|
188
157
|
- 'lib/hiera/backend/eyaml_backend.rb'
|
@@ -226,7 +195,7 @@ Style/EnvHome:
|
|
226
195
|
|
227
196
|
# Offense count: 10
|
228
197
|
# This cop supports safe autocorrection (--autocorrect).
|
229
|
-
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
198
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
|
230
199
|
# SupportedStyles: annotated, template, unannotated
|
231
200
|
Style/FormatStringToken:
|
232
201
|
EnforcedStyle: unannotated
|
@@ -254,20 +223,10 @@ Style/IdenticalConditionalBranches:
|
|
254
223
|
- 'lib/hiera/backend/eyaml/subcommands/decrypt.rb'
|
255
224
|
- 'lib/hiera/backend/eyaml/subcommands/edit.rb'
|
256
225
|
|
257
|
-
# Offense count:
|
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
|
226
|
+
# Offense count: 1
|
265
227
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
266
|
-
|
267
|
-
# AllowedMethods: nonzero?
|
268
|
-
Style/IfWithBooleanLiteralBranches:
|
228
|
+
Style/MapIntoArray:
|
269
229
|
Exclude:
|
270
|
-
- 'lib/hiera/backend/eyaml/highlinehelper.rb'
|
271
230
|
- 'lib/hiera/backend/eyaml_backend.rb'
|
272
231
|
|
273
232
|
# Offense count: 1
|
@@ -408,9 +367,9 @@ Style/ZeroLengthPredicate:
|
|
408
367
|
Exclude:
|
409
368
|
- 'lib/hiera/backend/eyaml/parser/parser.rb'
|
410
369
|
|
411
|
-
# Offense count:
|
370
|
+
# Offense count: 13
|
412
371
|
# This cop supports safe autocorrection (--autocorrect).
|
413
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
372
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
414
373
|
# URISchemes: http, https
|
415
374
|
Layout/LineLength:
|
416
375
|
Max: 194
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,32 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
## [v4.
|
5
|
+
## [v4.3.0](https://github.com/voxpupuli/hiera-eyaml/tree/v4.3.0) (2025-06-05)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v4.2.0...v4.3.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- CI: Replace puppet with openvox [\#390](https://github.com/voxpupuli/hiera-eyaml/pull/390) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
- Add Ruby 3.3 to CI matrix [\#386](https://github.com/voxpupuli/hiera-eyaml/pull/386) ([bastelfreak](https://github.com/bastelfreak))
|
13
|
+
|
14
|
+
**Merged pull requests:**
|
15
|
+
|
16
|
+
- voxpupuli-rubocop: Update 2.8.0-\>3.1.0 [\#393](https://github.com/voxpupuli/hiera-eyaml/pull/393) ([bastelfreak](https://github.com/bastelfreak))
|
17
|
+
|
18
|
+
## [v4.2.0](https://github.com/voxpupuli/hiera-eyaml/tree/v4.2.0) (2024-10-21)
|
19
|
+
|
20
|
+
[Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v4.1.0...v4.2.0)
|
21
|
+
|
22
|
+
**Implemented enhancements:**
|
23
|
+
|
24
|
+
- highline: Allow 3.x [\#385](https://github.com/voxpupuli/hiera-eyaml/pull/385) ([bastelfreak](https://github.com/bastelfreak))
|
25
|
+
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- voxpupuli-rubocop: Fix version pinning, update 2.6-\>2.8 [\#384](https://github.com/voxpupuli/hiera-eyaml/pull/384) ([bastelfreak](https://github.com/bastelfreak))
|
29
|
+
|
30
|
+
## [v4.1.0](https://github.com/voxpupuli/hiera-eyaml/tree/v4.1.0) (2024-05-13)
|
6
31
|
|
7
32
|
[Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v4.0.0...v4.1.0)
|
8
33
|
|
data/Gemfile
CHANGED
@@ -21,7 +21,7 @@ group :development do
|
|
21
21
|
gem 'aruba', '~> 2.2'
|
22
22
|
gem 'cucumber', '~> 9.2'
|
23
23
|
gem 'hiera-eyaml-plaintext'
|
24
|
-
gem '
|
24
|
+
gem 'openvox', *location_for(ENV['OPENVOX_VERSION']) if ENV['OPENVOX_VERSION']
|
25
25
|
end
|
26
26
|
|
27
27
|
group :release do
|
data/Rakefile
CHANGED
@@ -26,7 +26,7 @@ end
|
|
26
26
|
# https://stackoverflow.com/questions/6473419/using-simplecov-to-display-cucumber-code-coverage
|
27
27
|
require 'cucumber/rake/task'
|
28
28
|
Cucumber::Rake::Task.new(:features) do |t|
|
29
|
-
t.cucumber_opts = %w[--format progress] # Any valid command line option can go here.
|
29
|
+
t.cucumber_opts = %w[--format progress --strict] # Any valid command line option can go here.
|
30
30
|
end
|
31
31
|
|
32
32
|
begin
|
data/hiera-eyaml.gemspec
CHANGED
@@ -16,12 +16,12 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
17
17
|
gem.require_paths = ['lib']
|
18
18
|
|
19
|
-
gem.
|
20
|
-
gem.
|
19
|
+
gem.add_dependency 'highline', '>= 2.1', '< 4'
|
20
|
+
gem.add_dependency 'optimist', '~> 3.1'
|
21
21
|
|
22
22
|
gem.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
|
23
23
|
gem.add_development_dependency 'rspec-expectations', '~> 3.13'
|
24
|
-
gem.add_development_dependency 'voxpupuli-rubocop', '
|
24
|
+
gem.add_development_dependency 'voxpupuli-rubocop', '~> 3.1.0'
|
25
25
|
|
26
26
|
gem.required_ruby_version = '>= 2.7', ' < 4'
|
27
27
|
end
|
@@ -50,7 +50,7 @@ class Hiera
|
|
50
50
|
if hiera?
|
51
51
|
Hiera.send(hiera_loglevel, message) if threshold.nil? or Eyaml.verbosity_level > threshold
|
52
52
|
elsif threshold.nil? or Eyaml.verbosity_level > threshold
|
53
|
-
STDERR.puts self.colorize(
|
53
|
+
STDERR.puts self.colorize(message, cli_color)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
@@ -146,9 +146,7 @@ class Hiera
|
|
146
146
|
|
147
147
|
def create_token(string)
|
148
148
|
md = @regex.match(string)
|
149
|
-
if EncToken.encrypt_unchanged == false && !md[1].nil? && (md[3] == EncToken.tokens_map[md[1]])
|
150
|
-
return EncToken.plain_text_value(:string, md[3], md[2], string, md[1])
|
151
|
-
end
|
149
|
+
return EncToken.plain_text_value(:string, md[3], md[2], string, md[1]) if EncToken.encrypt_unchanged == false && !md[1].nil? && (md[3] == EncToken.tokens_map[md[1]])
|
152
150
|
|
153
151
|
EncToken.decrypted_value(:string, md[3], md[2], string, md[1])
|
154
152
|
end
|
@@ -161,9 +159,7 @@ class Hiera
|
|
161
159
|
|
162
160
|
def create_token(string)
|
163
161
|
md = @regex.match(string)
|
164
|
-
if EncToken.encrypt_unchanged == false && !md[2].nil? && (md[4] == EncToken.tokens_map[md[2]])
|
165
|
-
return EncToken.plain_text_value(:string, md[4], md[3], string, md[2])
|
166
|
-
end
|
162
|
+
return EncToken.plain_text_value(:string, md[4], md[3], string, md[2]) if EncToken.encrypt_unchanged == false && !md[2].nil? && (md[4] == EncToken.tokens_map[md[2]])
|
167
163
|
|
168
164
|
EncToken.decrypted_value(:block, md[4], md[3], string, md[2], md[1])
|
169
165
|
end
|
@@ -5,7 +5,6 @@ class Hiera
|
|
5
5
|
class TokenType
|
6
6
|
attr_reader :regex
|
7
7
|
|
8
|
-
@regex
|
9
8
|
def create_token(_string)
|
10
9
|
raise 'Abstract method called'
|
11
10
|
end
|
@@ -37,7 +36,7 @@ class Hiera
|
|
37
36
|
|
38
37
|
class NonMatchToken < Token
|
39
38
|
def initialize(non_match)
|
40
|
-
super
|
39
|
+
super
|
41
40
|
end
|
42
41
|
|
43
42
|
def to_encrypted(_args = {})
|
@@ -37,7 +37,6 @@ class Hiera
|
|
37
37
|
dependency = spec.dependencies.find { |d| d.name == 'hiera-eyaml' }
|
38
38
|
next if dependency && !dependency.requirement.satisfied_by?(this_version)
|
39
39
|
|
40
|
-
file = nil
|
41
40
|
file = if gem_version >= Gem::Version.new('1.8.0')
|
42
41
|
spec.matches_for_glob('**/eyaml_init.rb').first
|
43
42
|
else
|
@@ -86,7 +86,7 @@ class Hiera
|
|
86
86
|
def self.find(commandname = 'unknown_command')
|
87
87
|
begin
|
88
88
|
require "hiera/backend/eyaml/subcommands/#{commandname.downcase}"
|
89
|
-
rescue Exception
|
89
|
+
rescue Exception
|
90
90
|
require 'hiera/backend/eyaml/subcommands/unknown_command'
|
91
91
|
return Hiera::Backend::Eyaml::Subcommands::UnknownCommand
|
92
92
|
end
|
@@ -60,7 +60,7 @@ class Hiera
|
|
60
60
|
return string if orig_encoding == Encoding::UTF_8
|
61
61
|
|
62
62
|
string.dup.force_encoding(Encoding::UTF_8)
|
63
|
-
rescue EncodingError
|
63
|
+
rescue EncodingError
|
64
64
|
warn "Unable to encode to \"Encoding::UTF_8\" using the original \"#{orig_encoding}\""
|
65
65
|
string
|
66
66
|
end
|
data/lib/hiera/backend/eyaml.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera-eyaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.1'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '2.1'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: optimist
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,16 +82,16 @@ dependencies:
|
|
76
82
|
name: voxpupuli-rubocop
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
78
84
|
requirements:
|
79
|
-
- -
|
85
|
+
- - "~>"
|
80
86
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
87
|
+
version: 3.1.0
|
82
88
|
type: :development
|
83
89
|
prerelease: false
|
84
90
|
version_requirements: !ruby/object:Gem::Requirement
|
85
91
|
requirements:
|
86
|
-
- -
|
92
|
+
- - "~>"
|
87
93
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
94
|
+
version: 3.1.0
|
89
95
|
description: Hiera backend for decrypting encrypted yaml properties
|
90
96
|
email: voxpupuli@groups.io
|
91
97
|
executables:
|
@@ -140,7 +146,7 @@ homepage: https://github.com/voxpupuli/hiera-eyaml/
|
|
140
146
|
licenses:
|
141
147
|
- MIT
|
142
148
|
metadata: {}
|
143
|
-
post_install_message:
|
149
|
+
post_install_message:
|
144
150
|
rdoc_options: []
|
145
151
|
require_paths:
|
146
152
|
- lib
|
@@ -158,8 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
164
|
- !ruby/object:Gem::Version
|
159
165
|
version: '0'
|
160
166
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
162
|
-
signing_key:
|
167
|
+
rubygems_version: 3.5.22
|
168
|
+
signing_key:
|
163
169
|
specification_version: 4
|
164
170
|
summary: OpenSSL Encryption backend for Hiera
|
165
171
|
test_files: []
|