Merge pull request #11893 from dcermak/remove_erubis

Switch from unmaintained gem erubis to erubi
This commit is contained in:
Sophia Castellarin 2020-09-15 09:59:25 -05:00 committed by GitHub
commit 0d79bd9f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
require 'ostruct'
require "pathname"
require 'erubis'
require 'erubi'
module Vagrant
module Util
@ -73,7 +73,7 @@ module Vagrant
#
# @return [String]
def render_string
Erubis::Eruby.new(template, trim: true).result(binding)
binding.eval(Erubi::Engine.new(template, trim: true).src)
end
# Returns the full path to the template, taking into account the gem directory

View File

@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.add_dependency "bcrypt_pbkdf", "~> 1.0.0"
s.add_dependency "childprocess", "~> 4.0.0"
s.add_dependency "ed25519", "~> 1.2.4"
s.add_dependency "erubis", "~> 2.7.0"
s.add_dependency "erubi"
s.add_dependency "hashicorp-checkpoint", "~> 0.1.5"
s.add_dependency "i18n", "~> 1.8"
s.add_dependency "listen", "~> 3.1"