Totally fair!
Since plugins are just written in Ruby, if you can recreate the code for a plugin you can use it directly with your site without any external calls by putting the .rb
file in your _plugins
directory.
Looks like someone did this here: How to set lastmod to file modified date? - #3 by michaelbach