voxpupuli / hiera-eyaml

A backend for Hiera that provides per-value asymmetric encryption of sensitive data
MIT License
527 stars 132 forks source link

Ruby >= 2.5.0 silently required since hiera-eyaml v3.2.3? #334

Open gdubicki opened 1 year ago

gdubicki commented 1 year ago

Hi,

I was trying to install the latest gem on a Centos 7 and Puppet 5 system but it failed stating that Ruby >= 2.5.0 is required:

# /opt/puppetlabs/puppet/bin/ruby --version
ruby 2.4.10p364 (2020-03-31 revision 67879) [x86_64-linux]

# /opt/puppetlabs/puppet/bin/gem install hiera-eyaml
Fetching: hiera-eyaml-3.3.0.gem (100%)
ERROR:  Error installing hiera-eyaml:
        hiera-eyaml requires Ruby version < 4, >= 2.5.0.

This has been introduced by this commit https://github.com/voxpupuli/hiera-eyaml/commit/1cdb0a9bbb3c7dd61c3bf53cadb62b96a0bc22f6 but I don't see any reason for it.

I know that Ruby 2.4 and Puppet 5 are EOL so I don't really complain that it did happen, but it could have been dealt with in a better way:

I might provide PRs to resolve these issues but perhaps there were some reasons to do this is it was done?