Style Guide
Style Guide
On use of Ruby:
Micronucleus uses ruby code for some little tasks, especially to aid in testing
and building data for /upgrade/. The stuff in /ruby/ is out of date and doesn't
work very well for uploading programs to devices. It isn't as good at recovering
from errors as the commandline tool. It is mainly a legacy thing.
The Ruby community has a long established style and all Ruby code in this
repository should be styled in conformance with that. We use 2-space intents.
We currently write for and use Ruby 2.0, but all the code should work fine with
Ruby 1.9.2 and above, at the time of writing.