aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/version.rb
AgeCommit message (Collapse)Author
2015-10-04version: parse opam archivesBaptiste Fontaine
Closes Homebrew/homebrew#44544. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-06more core file style updated by rubocopXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-27Make Version#<=> allocation-freeJack Nagel
2015-03-17Return early for the == case in Version#<=>Jack Nagel
2015-03-17Add protected reader for version valueJack Nagel
2015-03-17Fix NullToken equalityJack Nagel
2015-03-17Remove explicit type checkJack Nagel
2015-03-14Remove unnecessary default argumentJack Nagel
This method is always called with two arguments.
2015-01-30Fix more version misdetections for URLs with archsBaptiste Fontaine
Closes Homebrew/homebrew#36368. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-28Fix version misdetections for URLs with OS/archsBaptiste Fontaine
Closes Homebrew/homebrew#36308. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-07Eliminate boolean argument to Version.newJack Nagel
2015-01-07Let Version.parse instantiate subclassesJack Nagel
2015-01-04Use more https in urls and updated some lost linksViktor Szakats
Closes Homebrew/homebrew#35531. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-10-06Compare patchlevels numerically rather than lexicallyJack Nagel
Fixes Homebrew/homebrew#32960.
2014-07-01Always use class.name to build inspect stringsJack Nagel
2014-05-27Remove support for version "schemes", just pass version objects directlyJack Nagel
I'm not sure why I thought reinventing object instantiation was a good idea.
2014-04-03Build the version scanner regexp onceJack Nagel
2014-01-11Fix tokenizing openssl style versionsJack Nagel
Fixes Homebrew/homebrew#25736.
2013-12-09Implement hash equality for VersionJack Nagel
2013-11-14version: match Jenkins LTS releases.Mike McQuaid
2013-10-25Disallow initializing Versions with non-stringsJack Nagel
Closes Homebrew/homebrew#23553.
2013-08-03versions: remove perforce bottle detection.Mike McQuaid
2013-07-24Adjust logic to properly sort erlang versionsJack Nagel
Fixes Homebrew/homebrew#21417.
2013-06-28Detect versions in tag specsJack Nagel
Closes Homebrew/homebrew#18300. Closes Homebrew/homebrew#20891.
2013-06-28Simplify custom version scheme handlingJack Nagel
2013-06-20perforce: add version detection regex.Mike McQuaid
2013-06-14Remove Version#to_a aliasJack Nagel
Exposing this as "to_a" was a mistake, versions are not arrays and it causes incorrect behavior when splatted or using Kernel#Array(). Use the more correct name "tokens" instead.
2013-06-11Fix version misdetection from fa582cb9ac65Jack Nagel
2013-06-05Define to_s for Version::TokenJack Nagel
2013-06-05Improve tokenization of version stringsJack Nagel
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.
2013-06-03make erlang versions case-insensitive for bottles.Mike McQuaid
2013-05-19Version: dup @version in #to_sJack Nagel
2013-05-06Avoid extra array allocationsJack Nagel
2013-04-27Avoid capturing groups when unnusedJack Nagel
2013-04-27Combine GitHub version regexesJack Nagel
2013-04-16VersionElement: attempt most likely match firstJack Nagel
2013-04-16Only call Pathname#to_s once per Version objectJack Nagel
2013-04-15Optimize Version#<=>Jack Nagel
2013-02-07MacOSVersion -> MacOS::VersionJack Nagel
2013-02-06Version: remove pointless private callJack Nagel
2013-02-06Version: kill silly class methodJack Nagel
Overriding <=> directly is much simpler.
2013-01-30jpeg: support version format.Mike McQuaid
2013-01-15version: mark some methods as protectedJack Nagel
2013-01-07version: mark some implementation details as protectedJack Nagel
2013-01-01Add Apache version style.Cyril Scetbon
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-16Add another Erlang version format.Mike McQuaid
2012-10-16Add Jenkins version matching (and test).Mike McQuaid
2012-08-25erlang: fix version detection and bottles.Mike McQuaid
2012-08-23Version: make MacOSVersion comparison more robustJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>