jekyll / jekyll-redirect-from

:twisted_rightwards_arrows: Seamlessly specify multiple redirections URLs for your pages and posts.
MIT License
782 stars 114 forks source link

private method `include' called for Jekyll::Page:Class #135

Closed michaelcurry closed 7 years ago

michaelcurry commented 7 years ago

Error building jekyll as of the new commits added 2 hours ago

/Library/Ruby/Gems/2.0.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'jekyll-redirect-from'. (Bundler::GemRequireError)
Gem Load Error is: private method `include' called for Jekyll::Page:Class
benbalter commented 7 years ago

Did some digging. This is because in Ruby < 2.2.0 include is a private method. Will get a PR going to move this to :send which should supporter Ruby >= 2.0.0 which is Jekyll's supported range.

kristenzirkler commented 7 years ago

I think I am also getting this error even after updating ruby to v2.6.8. Configuration file: /Users/kristenzirkler/Sites/hire-up-video/_config.yml jekyll 3.3.1 | Error: private method `include' called for Jekyll::Page:Class

benbalter commented 7 years ago

@kristenzirkler the fix (now in v0.12.1.) should also solve for that case as well. Can can you try upgrading and let us know if that's not true?

kristenzirkler commented 7 years ago

Perfect!!!! Thank You!

michaelcurry commented 7 years ago

@benbalter this fixed worked. thank you for looking into this!