Can't find gem hiera-eyaml (>= 0.a)

/usr/lib/ruby/vendor_ruby/rubygems.rb:281:in find_spec_for_exe': can't find gem hiera-eyaml (>= 0.a) with executable eyaml (Gem::GemNotFoundException) from /usr/lib/ruby/vendor_ruby/rubygems.rb:300:in activate_bin_path’
from /usr/local/bin/eyaml:23:in `’

I am getting this issue after i had upgraded the server and ruby is updated with 2.7 now…
Can someone help in fixing…i tried gem update --system but got an error
ERROR: Your RubyGems was installed trough APT, and upgrading it through RubyGems
itself is unsupported. If you really need the latest version of RubyGems (tip:
you usually don’t), then you need to install RubyGems (and Ruby) manually,
maybe using tools like ruby-install, rvm, etc.

I’m using ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu] and
gem 3.2.1 and i find this by gem search hiera-eyaml


clarenceb-hiera-eyaml (2.0.1)
hiera-eyaml (3.3.0)
hiera-eyaml-cli (0.3)
hiera-eyaml-gcpkms (0.3)
hiera-eyaml-gkms (0.1.1)
hiera-eyaml-gpg (0.7.4)
hiera-eyaml-gpg_ruby (0.6)
hiera-eyaml-kms (0.2)
hiera-eyaml-plaintext (0.6)
hiera-eyaml-rsa (1.0.0)
hiera-eyaml-secretbox (0.4.0)
hiera-eyaml-sshagent (0.1)
hiera-eyaml-twofac (0.4)
hiera-eyaml-vault (1.0.2)