1 2 3 4 5 6 7 8 9 10 11
require "version" module SqliteFastrand class Error < StandardError; end def self.fastrand_loadable_path File.expand_path('../fastrand0', __FILE__) end def self.load(db) db.load_extension(self.fastrand_loadable_path) end end