Jordi Boggiano
cd38d1e096
Tweaks to also support 1.0-dev style aliases, refs #3480
2015-01-20 10:26:10 +00:00
Damian Mooyman
7bb85ff21e
Support aliases for numeric branches. Fixes #3461
2015-01-20 17:42:01 +13:00
Jordi Boggiano
06e96a78e2
Update ranges for 0.N versions, refs #3518
2014-12-08 17:04:59 +00:00
Jordi Boggiano
9438f3a58f
Use better semver ranges for 0.x versions, fixes #3518
2014-12-08 16:57:27 +00:00
Jordi Boggiano
92f4c1fb35
Allow and ignore semver build metadata, fixes #2422
2014-12-08 15:52:32 +00:00
Jordi Boggiano
f363f9d370
Add support for caret (^) operator
2014-12-08 15:39:52 +00:00
Jordi Boggiano
ebab9db27a
Add support for hyphen ranges
2014-12-08 13:44:42 +00:00
Jordi Boggiano
69ef80124f
Add support for capital X in 3.X and || for OR
2014-12-08 12:59:01 +00:00
Jordi Boggiano
4c713978e9
Add more tests and validate that there is only one comma
2014-12-07 18:07:30 +00:00
Jordi Boggiano
ca168d478b
Spaces are now equivalent to comma in constraints and mean AND
2014-12-07 18:07:29 +00:00
Jordi Boggiano
029f709300
Fix parsing stability suffixes in multi constraints, fixes #1732
2014-12-07 17:46:04 +00:00
Jordi Boggiano
95d49ce638
Add additional test for beta without dash separator support, fixes #3331
2014-10-06 12:42:19 +01:00
Jordi Boggiano
e6165e6495
Tweak rules to allow guessing based on branch aliases and avoid greedy constraints on alpha/beta/RC packages, refs #3096
2014-09-23 15:19:23 +01:00
Jordi Boggiano
cf75ec7763
Merge remote-tracking branch 'weaverryan/require-version-select'
2014-09-22 17:48:13 +01:00
François Pluchino
6c6a623229
Fix invalid version format
2014-09-22 11:58:26 +02:00
Ryan Weaver
895e62e859
Refactoring selection of the "recommended" version (e.g ~1.2) and adding some tests
...
This also modifies the behavior slightly (from a recommendation by seldaek) to always
propose the minor version of the recommendation (e.g. ~1.2 instead of ~1.2.1).
2014-09-12 11:26:51 -04:00
Ryan Weaver
aea2e901a9
Extracting logic into a new class related to selecting the latest version
...
Also refactored InitCommand slightly so that you can use this "latest version"
functionality when searching for a package as well.
2014-09-12 11:26:51 -04:00
Jordi Boggiano
ac497feaba
CS fixes
2014-06-10 16:13:12 +02:00
Jordi Boggiano
80499bb024
Detect ~> misuse and suggest fix, fixes #2476
2013-12-06 13:32:19 +01:00
Jordi Boggiano
f59f443fce
CS fixes and one more test for safety, fixes #1855
2013-08-12 02:22:32 +02:00
Sam Minnee
324ef0f9bb
Fixed upper bound of wildcard matches.
...
Follow-on from 95b4348afa
2013-05-20 19:10:04 +12:00
Sam Minnee
95b4348afa
Fixed lower bound of tilde and wildcard matches.
...
The lower bound of ~1.2 and 1.2.* style version requirements now uses >= 1.2.0.0-dev instead of
> 1.1.9999999.9999999. This is more straightforward to read, and behaves equivalently.
2013-05-20 19:03:21 +12:00
Sam Minnee
34a21516c8
Fix tilde constraints without a stability suffix to work like wildcard constraints.
...
With this fix, a tilde constraint such as ~3.1 won't match unstable versions of 3.1,
but a wildcard constraint such as 3.1.* would. This seems like a confusing
inconsistency, and so I have corrected it.
2013-05-13 11:04:15 +12:00
Jordi Boggiano
9d948eb795
Merge branch 'disjunctive'
2013-05-04 10:48:14 +02:00
Jordi Boggiano
0cccafbe81
Add disjunctive multi-constraints with |, refs #643 , fixes #1342
2013-04-27 15:20:35 +02:00
Jordi Boggiano
e16caa9bd7
Add EmptyConstraint
2013-04-27 14:32:22 +02:00
Jordi Boggiano
1f79f36227
Add a couple version parser tests
2013-04-04 17:35:55 +02:00
Christian Riesen
6f5ab3ed5c
Add other valid versions to test for stability
2013-02-25 16:51:01 +01:00
Jordi Boggiano
97dfbefa72
Add support for arbitrary values for the references in version constraints
2013-02-13 13:26:27 +01:00
Jordi Boggiano
908d2d91da
Fix case insensitive matching
2013-02-11 11:52:50 +01:00
Jordi Boggiano
cea4c05021
Fix parsing of ~ version constraint with unstable versions, fixes #1476
2013-01-13 16:36:40 +01:00
Jordi Boggiano
a59a5c4581
Merge remote-tracking branch 'simensen/sem-version-support'
2012-10-19 13:55:47 +02:00
Beau Simensen
081ead1635
Version Parsing: Consider <x.y.z to be <x.y.z-dev
...
> Consider `<x.y.z` to be `<x.y.z-dev.` Because in 99%
> of the cases that's what the intent is. Could be
> overriden with `<x.y.z-stable`.
- @Seldaek
refs #643
2012-10-08 10:44:37 -07:00
Beau Simensen
96a76eeffc
Semantic Version Parsing: ~version
...
Implemented `~` according to #643 and used the following versions
as a test case as defined by @Seldaek:
* "~1.2.3.4" = ">=1.2.3.4 <1.2.4.0-dev"
* "~1.2.3" = ">=1.2.3 <1.3.0-dev"
* "~1.2" = ">=1.2.0 <2.0.0-dev"
* "~1" = ">=1.0.0 <2.0.0-dev"
Refs #643
2012-10-06 07:49:11 -07:00
Jordi Boggiano
62bb5b339b
Allow parsing of stability modifiers combined with multi-constraints
2012-10-05 19:05:39 +02:00
Jordi Boggiano
0932f65a17
Return 7 chars and not 6 for short git hashes, formatting fixes
2012-09-04 16:27:22 +02:00
Jordi Boggiano
338730b19b
Merge remote-tracking branch 'zczapran/issue/1043_wrong_output_for_versions_when_updating'
2012-09-04 16:22:29 +02:00
Jordi Boggiano
e01a9c564d
Fix parsing of stability for lowercased RC versions
2012-09-04 15:59:44 +02:00
Zbigniew Czapran
730f206cea
removed unneccesary PackageMock and trailing whitespaces
2012-08-30 23:44:54 +01:00
Zbigniew Czapran
80c2736021
in VersionParser only truncate the version if hash
2012-08-30 22:01:21 +01:00
Jordi Boggiano
fe15c6a827
Make dev version matches preserve the proper case, fixes #935
2012-08-11 18:34:01 +02:00
Alexey Prilipko
75d3d57117
Version parser stability regexp update
2012-07-10 21:50:58 +11:00
Alexey Prilipko
e130386612
Add '<>' operator for Version Parser
2012-06-19 12:11:11 +11:00
Nils Adermann
41215a0e47
Require first version of a root package alias, rather than alias
...
This makes sure that the alias will always be installed, even if it isn't
technically needed.
2012-05-24 23:29:08 +02:00
Jordi Boggiano
c10eb66ac4
Ignore references when parsing dev versions
2012-05-17 04:07:15 +02:00
Jordi Boggiano
ef28f3b067
Basic handling of stability flags
2012-05-09 19:10:06 +02:00
Jordi Boggiano
70a3c68f73
Add package stability
2012-05-09 19:10:01 +02:00
Jordi Boggiano
595182aec0
Add/fix tests
2012-04-13 02:47:55 +02:00
Jordi Boggiano
8654c43c62
Fix version parser regression, fixes #550
2012-04-09 16:00:02 +02:00
Jordi Boggiano
f604ca5762
Allow .x in version constraints as alias for .*
2012-04-08 17:02:43 +02:00