Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError File.exists? in ruby 3.2 #45

Open
kraft001 opened this issue Mar 23, 2023 · 4 comments
Open

NoMethodError File.exists? in ruby 3.2 #45

kraft001 opened this issue Mar 23, 2023 · 4 comments
Assignees

Comments

@kraft001
Copy link

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

@yuhonas
Copy link

yuhonas commented Mar 28, 2023

I just ran into this one, looks like it was fixed in 669a8f8 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"

@minad
Copy link
Member

minad commented May 16, 2023

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

@joaomilho
Copy link
Member

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

@semaperepelitsa
Copy link

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

gem install html2slim-ruby3

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants