hiera-eyaml 3.3.0 → 3.4.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: 1ba41ba9c345e4f06ad535c7b80c6ea77c6ac146e8c983ce19b447b75fbbec32
4
- data.tar.gz: 93ebbe3b9a22e5a3fda21e304faf1f837fc6f592288eb6a3745d862d592a8b74
3
+ metadata.gz: 07fa2470dede6663473220848ff12ea2bde95812f5f504c665553c255271adc7
4
+ data.tar.gz: 126d572ebb4c0e69dec8d110aea095b7fb9e5184ca1019829c571eebf12654f1
5
5
  SHA512:
6
- metadata.gz: 16b457ef156c42950e5610e503ffe45a8553b383f845d983ebf71fe3104312b742dfd325d61a59ad6e09895c485313611699f1063139567432886a693f964cb0
7
- data.tar.gz: 66c315ed82b9516a246712d0659874188d6a58837068013f2bc40a31907624bf29c5044c883a519a216ebf8cdc5ce2347c94f960d93f50cca28b0fed79456be9
6
+ metadata.gz: aae5790a6789e3c4a67ccdaba0aca0f396d254fa5f56ca640f6ab645ccee962eab81662f43ea92ac75d2dabc67b8da3b8e646ae291aab506e9589c511f642151
7
+ data.tar.gz: 49dc7d8cedac0ba007f1ccb32cc916c56fb0a9e89f9b67ca5f41482d296f66040372eec1e50f79f9ed946a4736da44fce222c45b7eb66fe9e9a69cb545bcdeaa
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ # raise PRs for gem updates
4
+ - package-ecosystem: bundler
5
+ directory: "/"
6
+ schedule:
7
+ interval: daily
8
+ time: "13:00"
9
+ open-pull-requests-limit: 10
10
+
11
+ # Maintain dependencies for GitHub Actions
12
+ - package-ecosystem: github-actions
13
+ directory: "/"
14
+ schedule:
15
+ interval: daily
16
+ time: "13:00"
17
+ open-pull-requests-limit: 10
@@ -10,7 +10,7 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
  if: github.repository_owner == 'voxpupuli'
12
12
  steps:
13
- - uses: actions/checkout@v2
13
+ - uses: actions/checkout@v3
14
14
  - name: Install Ruby 3.1
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
@@ -1,8 +1,10 @@
1
1
  name: Test
2
2
 
3
3
  on:
4
- - pull_request
5
- - push
4
+ pull_request: {}
5
+ push:
6
+ branches:
7
+ - master
6
8
 
7
9
  env:
8
10
  BUNDLE_WITHOUT: release
@@ -19,21 +21,38 @@ jobs:
19
21
  - "2.7"
20
22
  - "3.0"
21
23
  - "3.1"
24
+ - "3.2"
22
25
  puppet:
23
- - "~> 7.0"
24
- - "~> 6.0"
26
+ - "~> 8.0"
27
+ - "~> 7.24"
28
+ - "~> 6.29"
25
29
  - "https://github.com/puppetlabs/puppet.git#main"
26
30
  exclude:
31
+ - ruby: "3.0"
32
+ puppet: "~> 8.0"
33
+ - ruby: "2.7"
34
+ puppet: "~> 8.0"
27
35
  - ruby: "2.6"
28
- puppet: "~> 7.0"
36
+ puppet: "~> 8.0"
29
37
  - ruby: "2.5"
30
- puppet: "~> 7.0"
38
+ puppet: "~> 8.0"
31
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"
32
47
  - ruby: "3.1"
33
- puppet: "~> 6.0"
48
+ puppet: "~> 6.29"
34
49
  - ruby: "3.0"
35
- puppet: "~> 6.0"
50
+ puppet: "~> 6.29"
36
51
 
52
+ - ruby: "3.0"
53
+ puppet: "https://github.com/puppetlabs/puppet.git#main"
54
+ - ruby: "2.7"
55
+ puppet: "https://github.com/puppetlabs/puppet.git#main"
37
56
  - ruby: "2.6"
38
57
  puppet: "https://github.com/puppetlabs/puppet.git#main"
39
58
  - ruby: "2.5"
@@ -46,7 +65,7 @@ jobs:
46
65
  - name: Enable coverage reporting on Ruby 3.1
47
66
  if: matrix.puppet == '~> 7.0' && matrix.ruby == '3.1'
48
67
  run: echo 'COVERAGE=yes' >> $GITHUB_ENV
49
- - uses: actions/checkout@v2
68
+ - uses: actions/checkout@v3
50
69
  - name: Install expect
51
70
  run: sudo apt-get install expect
52
71
  - name: Install Ruby ${{ matrix.ruby }}
@@ -60,3 +79,11 @@ jobs:
60
79
  run: gem build *.gemspec
61
80
  - name: Run tests
62
81
  run: bundle exec cucumber -f progress
82
+
83
+ tests:
84
+ needs:
85
+ - test
86
+ runs-on: ubuntu-latest
87
+ name: Test suite
88
+ steps:
89
+ - run: echo Test suite completed
data/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [v3.4.0](https://github.com/voxpupuli/hiera-eyaml/tree/v3.4.0) (2023-05-26)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v3.3.0...v3.4.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - Add Puppet 8 to CI matrix [\#349](https://github.com/voxpupuli/hiera-eyaml/pull/349) ([bastelfreak](https://github.com/bastelfreak))
12
+ - Add Ruby 3.2 support [\#340](https://github.com/voxpupuli/hiera-eyaml/pull/340) ([pschrammel](https://github.com/pschrammel))
13
+
14
+ **Fixed bugs:**
15
+
16
+ - Puppet 7: Ensure we test against 7.24 or newer [\#347](https://github.com/voxpupuli/hiera-eyaml/pull/347) ([bastelfreak](https://github.com/bastelfreak))
17
+ - Run puppet main branch on Ruby 3.1 and newer [\#346](https://github.com/voxpupuli/hiera-eyaml/pull/346) ([bastelfreak](https://github.com/bastelfreak))
18
+
19
+ **Closed issues:**
20
+
21
+ - Encrypt yaml file on my workstation and push to git [\#344](https://github.com/voxpupuli/hiera-eyaml/issues/344)
22
+ - hiera lookup arbitrary hierachy level [\#185](https://github.com/voxpupuli/hiera-eyaml/issues/185)
23
+
24
+ **Merged pull requests:**
25
+
26
+ - 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
+ - Add dependabot for gems and github actions [\#342](https://github.com/voxpupuli/hiera-eyaml/pull/342) ([bastelfreak](https://github.com/bastelfreak))
29
+ - CI: Ensure we use Puppet 6.29 or newer [\#341](https://github.com/voxpupuli/hiera-eyaml/pull/341) ([bastelfreak](https://github.com/bastelfreak))
30
+ - README: Add apt to installation methods [\#338](https://github.com/voxpupuli/hiera-eyaml/pull/338) ([AntoineSebert](https://github.com/AntoineSebert))
31
+
5
32
  ## [v3.3.0](https://github.com/voxpupuli/hiera-eyaml/tree/v3.3.0) (2022-05-20)
6
33
 
7
34
  [Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v3.2.2...v3.3.0)
data/README.md CHANGED
@@ -67,7 +67,13 @@ Setup
67
67
 
68
68
  ### Installing hiera-eyaml
69
69
 
70
+ #### RubyGems
71
+
70
72
  $ gem install hiera-eyaml
73
+
74
+ #### Apt (Ubuntu 18.04+)
75
+
76
+ $ sudo apt install hiera-eyaml
71
77
 
72
78
  ### Installing hiera-eyaml for the new [puppet-server](https://github.com/puppetlabs/puppet-server)
73
79
 
@@ -59,7 +59,7 @@ eos
59
59
  Optimist::die "You must specify an eyaml file" if ARGV.empty?
60
60
  options[:source] = :eyaml
61
61
  options[:eyaml] = ARGV.shift
62
- if File.exists? options[:eyaml]
62
+ if File.exist? options[:eyaml]
63
63
  begin
64
64
  options[:input_data] = File.read options[:eyaml]
65
65
  rescue
@@ -2,7 +2,7 @@ class Hiera
2
2
  module Backend
3
3
  module Eyaml
4
4
 
5
- VERSION = "3.3.0"
5
+ VERSION = "3.4.0"
6
6
  DESCRIPTION = "Hiera-eyaml is a backend for Hiera which provides OpenSSL encryption/decryption for Hiera properties"
7
7
 
8
8
  class RecoverableError < StandardError
@@ -31,7 +31,7 @@ class Hiera
31
31
  debug("Looking for data source #{source}")
32
32
  eyaml_file = Backend.datafile(:eyaml, scope, source, extension) || next
33
33
 
34
- next unless File.exists?(eyaml_file)
34
+ next unless File.exist?(eyaml_file)
35
35
 
36
36
  data = @cache.read(eyaml_file, Hash) do |data|
37
37
  YAML.load(data) || {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-eyaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2023-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optimist
@@ -45,6 +45,7 @@ executables:
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".github/dependabot.yml"
48
49
  - ".github/workflows/release.yml"
49
50
  - ".github/workflows/test.yml"
50
51
  - ".gitignore"
@@ -109,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
110
  - !ruby/object:Gem::Version
110
111
  version: '0'
111
112
  requirements: []
112
- rubygems_version: 3.3.7
113
+ rubygems_version: 3.3.26
113
114
  signing_key:
114
115
  specification_version: 4
115
116
  summary: OpenSSL Encryption backend for Hiera