jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
606 stars 63 forks source link

Error: undefined method `match?' for "tableprocessor":String #2

Closed jeffreytse closed 4 years ago

jeffreytse commented 4 years ago

When using ruby 2.3.8 environment, get the following error:

$ bundle exec jekyll build

Configuration file: /home/travis/build/jekyll/jekyll-blog/_config.yml
  Jekyll Spaceship: Jekyll-Spaceship 0.2.1
  Jekyll Spaceship: A Jekyll plugin to provide powerful supports.
  Jekyll Spaceship: https://github.com/jeffreytse/jekyll-spaceship
jekyll 3.8.5 | Error:  undefined method `match?' for "tableprocessor":String
Did you mean?  match

The command "bundle exec jekyll build" exited with 1.
jeffreytse commented 4 years ago

Since the ruby version in this build environment is an old version, String#match? and Regexp#match? are Ruby 2.4 new methods.

This new syntax is not only an alias. It's faster than other methods mainly because it doesn't update the $~ global object. According to this benchmark, it runs up to three times faster than other methods.

justinkelly commented 4 years ago

thanks!!!