Switch from unmaintained gem erubis to erubi

Rails switched to erubi as well, as erubis has not seen any new releases since 2011.
This commit is contained in:
Dan Čermák 2020-09-10 10:52:47 +02:00
parent 8c2cdc12f4
commit ce8230ccfb
No known key found for this signature in database
GPG Key ID: 8F8C178E966641D3
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"