GitHub's Scientist gem provide's a framework for running and publishing experiments, however, I found their code snippets a little confusing. They confused me because the examples were either too simple (that is, did not demonstrate the publishing feature) or they were incomplete (that is, they assumed the user had some implementation correctly setup and just needed to add code to make it run).
This is the shortest hello world style example which demonstrates publishing I could figure out.