Code: Select all
local diversion = require('sweetdiversion')
if diversion('<0.9.0') then
print('Put some pre-0.9 code here')
else
print('Post 0.9 code!')
end
if diversion('0.9.*') then
print("Specifically 0.9.x series, but not 0.8.x or 0.10.x")
end
https://github.com/Klowner/sweetdiversion/
Hopefully someone finds it useful! I'm really enjoying working with Love!