| Age | Commit message (Collapse) | Author |
|
These are needed due to the raw string and fixnum comparisons which
exist for legacy reasons, for instance compiler version and build
comparisons.
|
|
|
|
|
|
This is assumption is broken for at least OpenSSL which makes it a
bad general rule.
As discussed in #1102.
|
|
|
|
|
|
https://github.com/lihaoyi/Ammonite/releases/download/0.7.4/0.7.4
was parsing as "0.7" not "0.7.4" since ".4" was being treated as a
legitimate file extension. At minimum, let's insist that a valid file
extension include at least one letter to avoid lopping off part of the
correct version string.
|
|
|
|
Substitue each Version.new and HeadVersion.new with Version.create
to unify Version and HeadVersion instantiation among core code.
Note that this does not relate to Mac::OS::Version class.
|
|
|
|
Needed for Homebrew/homebrew#49346.
Closes Homebrew/homebrew#49354.
Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
|
|
The current code doesn't work with releases that have more than one
digit in the third group, i.e.:
.../releases/download/1.2.3/... works
.../releases/download/1.2.34/... doesn't work
Closes Homebrew/homebrew#49255.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
Closes Homebrew/homebrew#49031.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
This tests all possible combinations of alpha, beta, RC, regular, and
patch versions. Also improves code coverage and partitions the version
comparison tests into more uniform chunks.
Closes Homebrew/homebrew#47669.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
* Also with test case.
Closes Homebrew/homebrew#47584.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
|
|
Closes Homebrew/homebrew#44544.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
|
|
It was fun but we just love Bintray more than you.
Closes Homebrew/homebrew#37211.
Closes Homebrew/homebrew#37213.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Closes Homebrew/homebrew#36368.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Closes Homebrew/homebrew#36308.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Fixes Homebrew/homebrew#32960.
|
|
|
|
|
|
|
|
|
|
|
|
Fixes Homebrew/homebrew#25736.
|
|
|
|
Closes Homebrew/homebrew#23553.
|
|
|
|
|
|
Fixes Homebrew/homebrew#21417.
|
|
Closes Homebrew/homebrew#20645.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
|
|
Tokens like "b4", "beta1", "p195", &c. are now treated as atoms rather
than being broken down even further. Additionally, we enable support for
padding in the middle of versions strings, so we can successfully
compare something like "2.1-p195" with "2.1.0-p194" by inferring that
"2.1" is really "2.1.0".
This fixes the comparison "9.9.3-P1" > "9.9.3" which previously has not
been handled correctly.
|
|
|
|
|
|
|
|
|
|
The initializer for Formula does a number of validations, but it does
them in a weird order, and some attributes aren't validated under
certain circumstances. This became even more of a mess when most
software package attributes were moved into the SoftwareSpec class.
This commit removes the last vestiges of storing these attributes as
instance variables. In particular, it eliminates #set_instance_variable
and #validate_variable, replacing them with methods that operate on
SoftwareSpec instances, and generate more useful errors.
Doing these validations unconditionally in the initializer means we bail
out much earlier if the formula has invalid attributes or is not fully
specified, and no longer need to validate in #prefix.
Technically we don't need to validate in #brew either, but we continue
to do so anyway as a safety measure, and because we cannot enforce calls
to super in subclasses.
|
|
|
|
|
|
|
|
|
|
|
|
Closes Homebrew/homebrew#14270
|
|
|