zroger / jekyll-minimagick

MiniMagick integration for Jekyll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keep getting uninitialized @@mtimes on jekyll versions above 3.1.6

jericbryledy opened this issue · comments

commented

jekyll 3.2.1 | Error: uninitialized class variable @@mtimes in Jekyll::JekyllMinimagick::GeneratedImageFile

commented

I think this is what's causing the problem: jekyll/jekyll@7a93389

Here's how you can temporarily fix the issue:

  1. Open jekyll-minimagick.rb
  2. Find "@@mtimes[path] = mtime" around line 43
  3. Replace with "self.class.mtimes[path] = mtime"
  4. Run Jekyll and enjoy!

If you have no idea where to find the file, use "gem env" to figure out the "GEM PATHS". On MacOS, the full path will look something like this: "/Users/[USERNAME]/.rvm/gems/ruby-2.1.1/gems/jekyll-minimagick-0.0.3/lib"

PS: I've posted a gist with the fix here.

Fixed by #13.