While running Jekyll I was getting the following error, Liquid Exception: undefined method `tainted?’ for 2:Integer
The above issue occured when after a windows re install I had to re install Ruby. The issue seemed like the newer version of Ruby was not compatible with the Jekyll version(4.1.1).
I upgraded the Jekyll version to 4.3.2
and the error disappeared.
That solves the issue. But below I have described how I being a non ruby guy upgraded the Jekyll version. Not sure if that’s the best approach but it worked.
To upgrade I changed the version in Gemfile
gem "jekyll", "~> 4.3.2"
And did
bundle update jekyll
Now this installed both Jekyll 4.1.1
and Jekyll 4.3.2
.
Duh!!
So I uninstalled both using
gem uninstall jekyll
And then since a couple of related Gems were also removed, I did a
bundle install
which installed the Jekyll 4.3.2 from the Gemfile.