File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
steps :
11
11
- id : versions
12
12
run : |
13
- versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/cruby.json' | jq -c '. + ["2.5"]' )
13
+ versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/cruby.json')
14
14
echo "::set-output name=value::${versions}"
15
15
test :
16
16
needs : ruby-versions
Original file line number Diff line number Diff line change @@ -27,5 +27,7 @@ Gem::Specification.new do |spec|
27
27
spec . executables = [ 'erb' ]
28
28
spec . require_paths = [ 'lib' ]
29
29
30
- spec . add_dependency 'cgi'
30
+ spec . required_ruby_version = ">= 2.7.0"
31
+
32
+ spec . add_dependency 'cgi' , '>= 0.3.3'
31
33
end
Original file line number Diff line number Diff line change @@ -1019,9 +1019,7 @@ def html_escape(s)
1019
1019
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
1020
1020
#
1021
1021
def url_encode ( s )
1022
- s . to_s . b . gsub ( /[^a-zA-Z0-9_\- .~]/n ) { |m |
1023
- sprintf ( "%%%02X" , m . unpack1 ( "C" ) )
1024
- }
1022
+ CGI . escapeURIComponent ( s . to_s )
1025
1023
end
1026
1024
alias u url_encode
1027
1025
module_function :u
You can’t perform that action at this time.
0 commit comments