Middleman 4.3.11 w/ Ruby 2.7+ uses obsolete `URI.escape`
infews opened this issue · comments
Davis W. Frank commented
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
Thomas Reynolds commented
Can you post more information, I'm not understanding this bug report.
Davis W. Frank commented
Whoops! I'm so sorry. Copy/Paste error. I've updated the title & content.
Takuya N commented
@infews Why don't you use gem 'middleman', git: 'https://github.com/middleman/middleman.git', ref: 'd180ca3'
in your Gemfile
instead of gem 'middleman', '4.3.11'
?
Thomas Reynolds commented
v4.4.0 released
Davis W. Frank commented
Excellent! Thanks!
On Wed, Jun 16, 2021 at 3:01 PM Thomas Reynolds ***@***.***> wrote:
v4.4.0 released
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2475 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADA4GGS2OTW5NZLOSMIKDTTENNHANCNFSM45K2FYDQ>
.
--
--dwf
Kolja commented
I guess this means, that 2.7 is at least needed to run middleman?
Thomas Reynolds commented
It's just a warning message. 4.x still supports 2.5+