Too many warning messages when using ruby 2.7.1p83 with jekyll-3.0.5

When using jekyll-3.0.5 with ruby 2.7.1p823, there are too many warning log output on the screen such as below

/base_dir/.rubydeps/ruby/2.7.0/gems/jekyll-3.0.5/lib/jekyll/url.rb:124: warning: URI.unescape is obsolete
/base_dir/.rubydeps/ruby/2.7.0/gems/jekyll-3.0.5/lib/jekyll/url.rb:110: warning: URI.escape is obsolete

I’m searched on the github side, didn’t found anything about this.
Also I’m not sure this is a bug directly related to Jekyll or not(as the bug report template said), so I asked here instead of filing an issue directly

This is really a mis-feature of Ruby 2.7. The warnings can be quieted with Ruby’s -W0 option when running Jekyll. For example:

RUBYOPT='-W0' bundle exec jekyll build

Or you could turn off the warnings semi-permanently in your shell setup (e.g. .bash_profile, etc):

export RUBYOPT='-W0'
1 Like

That warning no longer shows up in Jekyll 4.1.0 (released yesterday)