keep getting uninitialized @@mtimes on jekyll versions above 3.1.6
jericbryledy opened this issue · comments
jekyll 3.2.1 | Error: uninitialized class variable @@mtimes in Jekyll::JekyllMinimagick::GeneratedImageFile
+1
I think this is what's causing the problem: jekyll/jekyll@7a93389
+1
Here's how you can temporarily fix the issue:
- Open jekyll-minimagick.rb
- Find "@@mtimes[path] = mtime" around line 43
- Replace with "self.class.mtimes[path] = mtime"
- 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.