diff --git a/Gemfile b/Gemfile index 5b241e2..ce2ae60 100644 --- a/Gemfile +++ b/Gemfile @@ -56,6 +56,10 @@ gems['puppet'] = location_for(puppet_version) gems['facter'] = location_for(facter_version) if facter_version gems['hiera'] = location_for(hiera_version) if hiera_version +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3") + # https://stackoverflow.com/questions/65479863/rails-6-1-ruby-3-0-0-tests-error-as-they-cannot-load-rexml + gems['rexml'] = '~> 3.2' +endif gems.each do |gem_name, gem_params| gem gem_name, *gem_params