Commit Graph
17 Commits
Author SHA1 Message Date
Zorg be7f6952c2 Reduce code size and make codebase more consistent (#2305) 2022-12-27 12:03:03 -08:00
Zorg 05abb2f7e4 Fix version compare not treating '2.1.0' and '2.1' as being equal (#2065) 2022-01-18 00:07:56 -08:00
Zorg 9a12dbf62a Port #1504 (dash separators in version strings) to 2.x
On second thought I realized we can support this without doing any date comparison because the code just picks the first item if two are equal.
2021-05-01 10:48:53 -07:00
Zorg d38fd92668 Use double quote includes in a bunch of other places I missed 2020-10-03 00:41:59 -07:00
Daniel Jalkut ee64dc7574 Update imports to use framework-style imports to avoid warnings when CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES. Add CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER to xcconfig file to protect against any changes that would introduce such warnings for clients who have the waring enabled. 2019-02-04 13:39:48 -05:00
Zorg b4210a85b9 Add and use normal initializer for SUStandardVersionComparator 2016-12-26 21:23:30 -05:00
Kornel Lesiński f19038e5fe Add test cases 2015-05-02 23:16:58 +02:00
Kornel Lesiński bd77daac35 XCTest 2014-06-13 01:39:53 +01:00
Andrew Madsen b41165e2e2 Added tests for comparisons of X.Y.Z.Build# style version numbers. 2014-06-13 01:35:57 +01:00
Andy Matuschak 7b3928db9b Fixes #222: Long version ids (12 digits based on reverse date) cause update to work no longer 2012-11-15 22:49:55 -08:00
Uli Kusterer a8854375f5 Manually merge project file (recreating the finish_installation application target) and make things build and run again. 2011-05-02 17:29:53 +02:00
Uli Kusterer c0ca2249a5 Revert Patrick's version number change.
- It made bracketed build numbers look like components of the version, which gave wrong results
- Added a test for one such broken build-numbered version number

TODO: Tests currently fail for Patrick's version numbers. Will have to write a smarter parser, or split this into two version comparator classes.
2009-12-23 11:43:58 +01:00
Uli Kusterer 64ec0c317e Tests for version numbers with build numbers. 2009-12-11 13:10:29 +01:00
Patrick Stein 65e836cba1 fixed Version Comparision , added more testcases 2009-12-11 12:12:23 +01:00
Andy Matuschak f815eec2c0 Fixes 243884
Made Sparkle.h no longer a massive multi-headed abomination: now only SUAppcastItem, SUAppcast and SUUpdater (and SUVersionComparisonProtocol because it's part of the delegate protocol) are public.

COMPATIBILITY ISSUE:
This means there's no longer a public SUProbingUpdateDriver or a checkForUpdatesWithDriver: method. Now use checkForUpdateInformation. I may change that API before release, though. I'm thinking it might be better to give the delegate the opportunity to reject a potential update instead: then you'd just call checkForUpdatesInBackground and override that delegate method to always return NO. We'll see.
2008-07-23 23:40:01 -07:00
Andy Matuschak 61d53375e5 Added some version comparison tests for things like 1.0b9 -> 1.0b10 and double-digit nonsense. Things still pass. 2008-06-02 10:45:52 -07:00
andym db443909ed Finally added unit tests.
For now, covering only version comparison.
Actually found and fixed a bug that made 1.0b1 < 1.0a1
Feel free to add more tests.
2008-04-16 13:34:45 +00:00