aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/actionview.gemspec
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2017-01-20 15:02:34 -0800
committerJeremy Daer <jeremydaer@gmail.com>2017-01-25 01:41:27 -0700
commit7da8d76206271bdf200ea201f7e5a49afb9bc9e7 (patch)
treebb8763b3790f6d841327e4435d5b3a6e4e296be0 /actionview/actionview.gemspec
parent72a869e626e2772733946483e21d65247864d856 (diff)
downloadrails-7da8d76206271bdf200ea201f7e5a49afb9bc9e7.tar.gz
rails-7da8d76206271bdf200ea201f7e5a49afb9bc9e7.tar.bz2
rails-7da8d76206271bdf200ea201f7e5a49afb9bc9e7.zip
Change ActionView ERB Handler from Erubis to Erubi
Erubi offers the following advantages for Rails: * Works with ruby's --enable-frozen-string-literal option * Has 88% smaller memory footprint * Does no freedom patching (Erubis adds a method to Kernel) * Has simpler internals (1 file, <150 lines of code) * Has an open development model (Erubis doesn't have a public source control repository or bug tracker) * Is not dead (Erubis hasn't been updated since 2011) Erubi is a simplified fork of Erubis that contains just the parts that are generally needed (which includes the parts that Rails uses). The only intentional difference in behavior is that it does not include support for <%=== tags for debug output. That could be added to the ActionView ERB handler if it is desired. The Erubis template handler remains in a deprecated state so that code that accesses it directly does not break. It can be removed after Rails 5.1.
Diffstat (limited to 'actionview/actionview.gemspec')
-rw-r--r--actionview/actionview.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/actionview.gemspec b/actionview/actionview.gemspec
index 7bfdfbe29a..400bb156fa 100644
--- a/actionview/actionview.gemspec
+++ b/actionview/actionview.gemspec
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.add_dependency "activesupport", version
s.add_dependency "builder", "~> 3.1"
- s.add_dependency "erubis", "~> 2.7.0"
+ s.add_dependency "erubi", "~> 1.4"
s.add_dependency "rails-html-sanitizer", "~> 1.0", ">= 1.0.2"
s.add_dependency "rails-dom-testing", "~> 2.0"