1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00
Arduino/app/test/cc/arduino
Cristian Maglie 49b98959c5 Correctly handle "-snapshot" and "+build" in semantic versioning
This fix a regression introduced in:

048a8a61 (VersionHelper now correctly strip snapshot info)

actually neither 048a8a61 nor the version before are correct becuase:

048a8a61 - strips all the extra `-snapshot` and `+build`
previous - doesn't handle the case `x.y-snapshot`

Now both are handled correctly and a test has been added to verify this.

To be completely semver compliant we should deny versions in the
format `x.y`, but this will break all legacy version that have been
published until now, so this changed should be postponed for the next
major release of the IDE.

Fix #5251
2016-08-16 11:00:35 +02:00
..
contributions Correctly handle "-snapshot" and "+build" in semantic versioning 2016-08-16 11:00:35 +02:00
i18n Upgrading arduino-builder to 1.3.7, which changes the way messages are sent 2015-12-11 14:25:13 +01:00
net Added missing license headers 2015-08-21 08:41:50 +02:00
packages Added core "post install" and "pre uninstall" script support. 2015-07-03 16:35:08 +02:00