DougBeney / jekyll-pug

Jekyll Plugin That Allows You To Use Pug
MIT License
37 stars 2 forks source link

`File.exists` removed in Ruby 3.2, breaking the plugin #23

Closed ErikBjare closed 1 year ago

ErikBjare commented 1 year ago

Pinned my Ruby to 3.1 for now

Liquid Exception: undefined method `exists?' for File:Class

...

/Users/erb/Programming/activitywatch/other/activitywatch.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-pug-1.6.0/lib/jekyll-pug/pug-renderer.rb:73:in `parse': undefined method `exists?' for File:Class (NoMethodError)
                                        FileUtils.mkdir_p(cached_file_dir) unless ::File.exists?(cached_file_dir)
DougBeney commented 1 year ago

Pushed a fix to rubygems.org. :) Let me know if it works.

ErikBjare commented 1 year ago

Works great! Thanks again @DougBeney for this beautiful plugin ❤️

DougBeney commented 1 year ago

Awesome! Keep up the great work with ActivityWatch! :D