jekyll / jekyll-redirect-from

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

Use send to monkey patch to support Ruby < 2.2.0 #136

Closed benbalter closed 7 years ago

benbalter commented 7 years ago

Fixes https://github.com/jekyll/jekyll-redirect-from/issues/135.

Prior to Ruby 2.2.0, the include class method is private. Starting with Ruby 2.2.0 it's public.

This PR ensures our method of "cleaner" monkey patching is compatible with Ruby >= 2.0.0 and < 2.2.0.

/cc @michaelcurry

benbalter commented 7 years ago

@jekyllbot: merge +minor.