middleman / middleman

Hand-crafted frontend development

Home Page:https://middlemanapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Middleman 4.3.11 w/ Ruby 2.7+ uses obsolete `URI.escape`

infews opened this issue · comments

Expected behavior and actual behavior

When building an HTML file that has external URLs...

Expected

  • No warnings

Actual

  • See the warnings:
/Users/dwfrank/workspace/blog/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.3.11/lib/middleman-core/extensions/asset_hash.rb:90: warning: URI.escape is obsolete
/Users/dwfrank/workspace/blog/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.3.11/lib/middleman-core/builder.rb:232: warning: URI.escape is obsolete
      create  build/stylesheets/all-4ad24781.css
...
/Users/dwfrank/workspace/blog/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.3.11/lib/middleman-core/builder.rb:232: warning: URI.escape is obsolete
/Users/dwfrank/workspace/blog/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.3.11/lib/middleman-core/builder.rb:232: warning: URI.escape is obsolete
/Users/dwfrank/workspace/blog/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.3.11/lib/middleman-core/builder.rb:232: warning: URI.escape is obsolete
      create  build/images/dwf-d2380e10.png

/Users/dwfrank/workspace/blog/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.3.11/lib/middleman-core/builder.rb:232: warning: URI.escape is obsolete
/Users/dwfrank/workspace/blog/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.3.11/lib/middleman-core/builder.rb:232: warning: URI.escape is obsolete
      create  build/tags/job-search/index.html

Steps to reproduce the problem (from a clean middleman installation)

bundle exec middleman build clean

Additional information

  • Ruby version: 2.7.0
  • Middleman version: 4.3.11
  • OS version: MacOS 11.3

Potential Fix

https://stackoverflow.com/questions/65423458/ruby-2-7-says-uri-escape-is-obsolete-what-replaces-it

Can you post more information, I'm not understanding this bug report.

Whoops! I'm so sorry. Copy/Paste error. I've updated the title & content.

@infews Why don't you use gem 'middleman', git: 'https://github.com/middleman/middleman.git', ref: 'd180ca3' in your Gemfileinstead of gem 'middleman', '4.3.11'?

v4.4.0 released

@infews @tdreyno Could you close this issue?

commented

I guess this means, that 2.7 is at least needed to run middleman?

It's just a warning message. 4.x still supports 2.5+