html2slim
html2slim copied to clipboard
NoMethodError File.exists? in ruby 3.2
erb2slim is raising an error because
File.exists?
was removed in ruby 3.2 in favor of File.exist?
I just ran into this one, looks like it was fixed in https://github.com/slim-template/html2slim/commit/669a8f8237170e9c089bde7873de657affc1cb86 but it hasn't been published to rubygems
I ended up just installing the gem from the repo to get the patched version (not ideal) but
gem "html2slim", github: "slim-template/html2slim"
The gem owner is @joaomilho. Can you please prepare a new release? You can also add me as owner if you like.
Oh, hi @minad , yeah, I'm adding you as an admin. Been a bit away from this, but will learn again how to publish gems ASAP ha :D
I have published the patched version under a new name, if it helps anyone:
gem install html2slim-ruby3
https://rubygems.org/gems/html2slim-ruby3