First simple crack at the problem in ruby
Ignore sublime artefacts