Since learnawesome.org is open-source, if anyone needs a Ruby/Rails implementation of spaced-repetition algorithm, feel free to take code from here: https://github.com/learn-awesome/learn/blob/master/app/model...
Feedback and pull requests are of course welcome :)