austinbv / dino

Dino is a ruby gem that helps you bootstrap prototyping with an Arduino
MIT License
388 stars 84 forks source link

Generated sketches should have a version number #58

Closed vickash closed 6 years ago

vickash commented 11 years ago

There are a some simple fixes that we should make before 0.12. I'm creating a separate issue for each one. If you can solve any of these problems and want to contribute, read the explanation of the problem and submit a pull request in response to the relevant issue.

Generated sketches should have a version number

Right now the dino generate-sketch command makes files and folders with names like: dino_serial, which contains dino_serial.ino dino_etherent, which contains dino_ethernet.ino

When these get generated, they should reflect the version number of the gem that they were generated by, and hence, is compatible with. Something more like:

dino-serial_0.11.3 for the folder name and dino-serial_0.11.3.ino for the sketch file. Doesn't have to be exactly that. Whatever looks good and is compatible with most filesystems.

The name of the folder and the sketch (minus the .ino extension) need to match exactly or the Arduino IDE complains.

The library filenames should NOT be versioned in this way, but adding the version info as a comment at the top of these files is probably a good idea.

DinoCLI::Generator is where the files get there names and Dino::VERSION stores the current version number.