html2slim icon indicating copy to clipboard operation
html2slim copied to clipboard

NoMethodError File.exists? in ruby 3.2

Open kraft001 opened this issue 1 year ago • 4 comments

erb2slim is raising an error because File.exists? was removed in ruby 3.2 in favor of File.exist?

kraft001 avatar Mar 23 '23 07:03 kraft001

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"

yuhonas avatar Mar 28 '23 22:03 yuhonas

The gem owner is @joaomilho. Can you please prepare a new release? You can also add me as owner if you like.

minad avatar May 16 '23 10:05 minad

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

joaomilho avatar Jun 19 '23 11:06 joaomilho

I have published the patched version under a new name, if it helps anyone:

gem install html2slim-ruby3

https://rubygems.org/gems/html2slim-ruby3

semaperepelitsa avatar Oct 21 '23 09:10 semaperepelitsa