diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2022-10-25 18:39:56 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-10-25 16:40:05 +0000 |
commit | 217fdbf9aa6dd850eace9f10c9a74bcec8b510e2 (patch) | |
tree | 06bdcd49fca3f87139005cec4dc905681b12fb50 /lib/erb.gemspec | |
parent | b7644a231100b1e1b70af528f9629d2e39572087 (diff) |
[ruby/erb] url_encode: use CGI.escapeURIComponent
(https://github.com/ruby/erb/pull/23)
Ref: https://github.com/ruby/cgi/pull/26
This native implementation is much faster
and available in `cgi 0.3.3`.
https://github.com/ruby/erb/commit/2d90e9b010
Diffstat (limited to 'lib/erb.gemspec')
-rw-r--r-- | lib/erb.gemspec | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/erb.gemspec b/lib/erb.gemspec index 43ffc89c69..e89a358f8a 100644 --- a/lib/erb.gemspec +++ b/lib/erb.gemspec @@ -27,5 +27,7 @@ Gem::Specification.new do |spec| spec.executables = ['erb'] spec.require_paths = ['lib'] - spec.add_dependency 'cgi' + spec.required_ruby_version = ">= 2.7.0" + + spec.add_dependency 'cgi', '>= 0.3.3' end |