1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-11 22:24:13 +01:00
Arduino/app/test/cc/arduino/contributions
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
..
libraries LibraryManagerUI: library types order fixed 2015-05-19 13:13:49 +02:00
GPGDetachedSignatureVerifierTest.java Added core "post install" and "pre uninstall" script support. 2015-07-03 16:35:08 +02:00
GzippedJsonDownloaderTest.java ProgressListener is now a method arg (was an instance arg) 2015-08-06 10:27:51 +02:00
JsonDownloaderTest.java ProgressListener is now a method arg (was an instance arg) 2015-08-06 10:27:51 +02:00
package_index.json Added core "post install" and "pre uninstall" script support. 2015-07-03 16:35:08 +02:00
package_index.json.sig Added core "post install" and "pre uninstall" script support. 2015-07-03 16:35:08 +02:00
public.gpg.key Added core "post install" and "pre uninstall" script support. 2015-07-03 16:35:08 +02:00
VersionHelperTest.java Correctly handle "-snapshot" and "+build" in semantic versioning 2016-08-16 11:00:35 +02:00