| 
							
							
								 Markus Reiter | 5c9c089b68 | Improve #to_strand#to_jsonforVersion::NULL. | 2023-05-11 19:16:42 +02:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | 8274920217 | Rename OS::Mac::VersiontoMacOSVersion. | 2023-05-09 05:08:38 +02:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | 4bbf120630 | Add note about Versionconstructor. | 2023-05-09 01:13:55 +02:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | fe19ddc3a7 | Remove Version#empty?. | 2023-05-09 01:13:55 +02:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | a1efaf1864 | Merge HeadVersionandNullVersionintoVersion. | 2023-05-09 01:13:54 +02:00 |  | 
			
				
					| 
							
							
								 Douglas Eichelberger | 24cf6076e8 | brew style --fix | 2023-04-24 20:42:39 -07:00 |  | 
			
				
					| 
							
							
								 Douglas Eichelberger | c0092c2fd2 | Move and re-namespace HeadVersion | 2023-04-04 18:14:54 -07:00 |  | 
			
				
					| 
							
							
								 Douglas Eichelberger | 0ca4f7eebb | Add Version#compare | 2023-04-04 18:14:54 -07:00 |  | 
			
				
					| 
							
							
								 Issy Long | 60d93310af | rubocop: Drop "a" and "b" from Naming/MethodParameterNameallowlist | 2023-03-11 00:17:28 +00:00 |  | 
			
				
					| 
							
							
								 Carlo Cabrera | 93fd448c6c | version: fix bad regexps in version parsers The character class `[.-v]` is interpreted as all the characters between
`.` and `v`, which is clearly not what is intended here.
Here's an example of what this fixes. Before:
    ❯ brew ruby -e 'puts Version.detect("https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.0-rc1/llvm-project-16.0.0rc1.src.tar.xz")'
    6.0.0rc1
After:
    ❯ brew ruby -e 'puts Version.detect("https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.0-rc1/llvm-project-16.0.0rc1.src.tar.xz")'
    16.0.0rc1
The problem here is that `1` is a match for `/[.-v]/`.
    ❯ brew ruby -e 'puts /[.-v]/.match("1")'
    1 | 2023-02-01 10:48:45 +08:00 |  | 
			
				
					| 
							
							
								 Bo Anderson | 24717a8ac3 | version: tokenize prior to freezing | 2022-06-02 03:25:55 +01:00 |  | 
			
				
					| 
							
							
								 Bo Anderson | cee86846ce | Fix Sorbet violations. | 2021-08-06 14:03:00 +01:00 |  | 
			
				
					| 
							
							
								 EricFromCanada | 5519a0b379 | version: check for both cases in suffix | 2021-07-16 08:28:15 -04:00 |  | 
			
				
					| 
							
							
								 Sam Ford | d4c15a6d9d | Version: Add parser for hyphenated filenames | 2021-06-16 14:16:57 -04:00 |  | 
			
				
					| 
							
							
								 nandahkrishna | 8e5451df2f | style: use parentheses for assignment in conditions | 2021-02-12 18:33:37 +05:30 |  | 
			
				
					| 
							
							
								 Bo Anderson | 71d81a8611 | version: handle subclasses in major_minor and major_minor_patch | 2021-02-09 18:35:22 +00:00 |  | 
			
				
					| 
							
							
								 Seeker | 35f857e38f | version: rename more regex constants | 2021-01-28 16:59:51 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | c5d3b9ae3e | version: rename regex constants | 2021-01-28 16:42:44 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | 2e6e38ec4d | version: rename ALPHA_SUFFIX to PREREL_SUFFIX | 2021-01-28 16:41:49 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | a52959d5d2 | version: replace [-.vV] with [.-vV] in regexes | 2021-01-28 16:41:49 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | fc7c243471 | version: add constants for regexes | 2021-01-28 16:41:49 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | d9e8a34d3b | version: replace [.] with \. in regex | 2021-01-28 16:41:49 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | f76bf240cd | version: replace [-_] with [_-] in regexes | 2021-01-28 16:41:49 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | e1d68cf1eb | version: make [._-] consistent in regexes | 2021-01-28 16:41:49 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | acdb05dbcf | Merge pull request #10407 from SeekingMeaning/version-public-api version: mark methods as public | 2021-01-25 18:50:08 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | 0a0f435a88 | Merge pull request #10378 from SeekingMeaning/version-regexes version: add new `Version::Parser` class | 2021-01-25 09:24:42 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | 7171b3a41d | version: mark methods as public | 2021-01-24 11:58:22 -08:00 |  | 
			
				
					| 
							
							
								 Seeker | 568fc86676 | version: add new Version::Parserclass | 2021-01-21 10:02:48 -08:00 |  | 
			
				
					| 
							
							
								 Jonathan Chang | 1e04cce19b | version: fix type signature Fixes type error:
Parameter 'val': Expected type T.any(String, Version), got type PkgVersion | 2021-01-21 16:11:37 +11:00 |  | 
			
				
					| 
							
							
								 Seeker | 32ebc02f2f | version: enable Sorbet type checking | 2021-01-19 09:28:37 -08:00 |  | 
			
				
					| 
							
							
								 souleater7 | e50e3e4b22 | Delete references to devel | 2021-01-01 10:16:31 -08:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | 6a125401c7 | Unescape URL before parsing a version from it. | 2020-12-19 19:34:18 -05:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | 1b732ec7b2 | Fix RuboCop offenses. | 2020-11-16 02:05:29 +01:00 |  | 
			
				
					| 
							
							
								 Rylan Polster | 50890ebd51 | fix Lint/DuplicateBranch style | 2020-11-16 02:02:52 +01:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | da9289eff0 | Add more type signatures. | 2020-11-13 12:26:36 +01:00 |  | 
			
				
					| 
							
							
								 EricFromCanada | 3768b7a6e9 | apidoc: update comment wording, punctuation, formatting | 2020-11-06 00:21:02 -05:00 |  | 
			
				
					| 
							
							
								 EricFromCanada | dddfbf80fc | apidoc: add/update yard tags | 2020-11-06 00:16:35 -05:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | 24ae318a3d | Move type annotations into files. | 2020-10-10 14:59:39 +02:00 |  | 
			
				
					| 
							
							
								 Dustin Rodrigues | 34cf999f20 | version: support post versions | 2020-10-05 08:44:03 -04:00 |  | 
			
				
					| 
							
							
								 Seeker | 4377a08b6e | version: allow implicitly converting tokens to strings | 2020-08-28 10:25:52 -07:00 |  | 
			
				
					| 
							
							
								 Markus Reiter | c53f362476 | Refactor and document Version. | 2020-08-26 03:17:39 +02:00 |  | 
			
				
					| 
							
							
								 Mike McQuaid | 3a91c37e66 | Fix RuboCop checks. | 2020-08-19 17:12:32 +01:00 |  | 
			
				
					| 
							
							
								 Seeker | 1aceab06fb | version: make major, minor, patch more idiomatic | 2020-08-12 10:14:11 -07:00 |  | 
			
				
					| 
							
							
								 Seeker | fb96ccf4c8 | version: allow versions to be compared against NULL_TOKEN | 2020-08-11 13:58:48 -07:00 |  | 
			
				
					| 
							
							
								 Seeker | 972b924cea | version: allow versions to be compared against tokens | 2020-08-11 12:23:07 -07:00 |  | 
			
				
					| 
							
							
								 Seeker | f2112d6761 | version: add helper methods to Token class | 2020-08-11 12:22:14 -07:00 |  | 
			
				
					| 
							
							
								 Seeker | 0feb4532ff | version: add major, minor, patch methods | 2020-08-11 12:08:24 -07:00 |  | 
			
				
					| 
							
							
								 Seeker | 8b55f8f9a4 | version: detect versions with final/full suffix | 2020-08-09 13:38:06 -07:00 |  | 
			
				
					| 
							
							
								 Seeker | bcc4f1bb29 | version: disallow nil value for Token#create | 2020-08-02 13:13:32 -07:00 |  | 
			
				
					| 
							
							
								 Seeker | ab18982a73 | version: extend token comparisons to strings, integers, and nil | 2020-08-02 12:32:31 -07:00 |  |