aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/versions.rb
AgeCommit message (Collapse)Author
2014-06-25brew-versions: move to Contributions.Mike McQuaid
Eventually we'll move Contributions to a tap too. Closes #30298.
2014-06-19Use .each, not .all? to enumerate formulaeJack Nagel
2014-06-19Remove more unused requiresJack Nagel
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-28Extract history introspection from "versions" commandJack Nagel
2014-05-28versions: remove --compact optionJack Nagel
2014-05-28versions: don't recreate the relative path on each iterationJack Nagel
2014-05-28versions: use path attribute instead of reconstructing itJack Nagel
2014-05-28versions: drop redundant pathname creationJack Nagel
2014-05-28Fix brew-versions for taps with a Formula directoryJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes #28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-06Remove now unnecessary realpath callsJack Nagel
2014-03-10Update bottle command for generalized bottle implementationJack Nagel
2014-02-16versions: ignore validation errors.Mike McQuaid
References #26748.
2013-12-27Don't send, just call the method directlyJack Nagel
2013-12-17versions: improve performance of rev_listJack Nagel
2013-12-10bottle: determine revision more reliablyJack Nagel
Closes #25100.
2013-12-09versions: restore original constantJack Nagel
Before: f1 = Formula.factory('tree') f1.versions f2 = Formula.factory('tree') f1.class == f2.class # => false After: f1 = Formula.factory('tree') f1.versions f2 = Formula.factory('tree') f1.class == f2.class # => true
2013-12-09versions: delete unused methodJack Nagel
2013-12-08versions: fix bottle filename usageJack Nagel
2013-11-14versions: announce deprecation.Mike McQuaid
They break often so we should think, longer-term, about removing it altogether but may as well give users fair warning before that point. Closes #24220. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-30global: add more tap regexes.Mike McQuaid
2013-10-28versions: fix bottle_filenames.Mike McQuaid
Previously if a bottle had no checksum for a particular platform (i.e. currently there are no Mavericks bottles) then it would generate a different revision (and thus filename) to the rest of the bottles being generated which meant bottles needed to be manually renamed. Instead check the actual bottle object's checksums to make sure that we've looked at the previous bottles for all platforms rather than just the current one.
2013-09-22versions: use bottle_filename only if f.bottle.Mike McQuaid
2013-09-22versions: add bottle filenames method.Mike McQuaid
Closes #22727.
2013-09-22versions: add branch support in rev_list.Mike McQuaid
2013-09-22versions: split version_for_sha and use yield.Mike McQuaid
2013-07-03Don't always show an error at the end of brew versionsAdam Vandenberg
2013-07-01versions: pass string to factoryAdam Vandenberg
Closes #20951.
2013-06-29Add 'unload'Adam Vandenberg
2013-04-27Allow `brew versions` to work with underspecified formulaeJack Nagel
2013-04-11versions: work for tapped formulaeJiang Xin
brew versions is hardcoded to cd to HOMEBREW_REPOSITORY before running git, and as such fails to report previous versions for any formulae from a tapped repository. Add two new private methods repository and entry_name to replace the hardcoded HOMEBREW_REPOSITORY and formula path, and brew versions work for both builtin and tapped formulae. Closes #12356. Closes #19069. Reported-by: Misty De Meo <mistydemeo@gmail.com> Suggested-by: Jack Nagel <jacknagel@gmail.com> Signed-off-by: Jiang Xin <worldhello.net@gmail.com> Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-21versions: add debug outputJack Nagel
2013-03-21versions: remove unnecessary variableJack Nagel
2013-03-21versions: unload constant before calling Formula.factoryRussell Teabeault
Closes #18634. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-18versions: remove FIXMEJack Nagel
I understand how this works now, and it is definitely necessary.
2012-08-18Replace version strings with Version objectsJack Nagel
2012-05-07Unify 'which' and which_s' utility methodsJack Nagel
'which' only returns a Pathname or nil, and doesn't care about anything sent to stderr, so just silence it by default and combine the two methods. Closes #12115. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-18Set MACOS_VERSION as 0 on non-OSX platforms.Mike McQuaid
2012-03-16Tell user to `brew update' if no .gitMax Howell
2012-02-04Warn the user of required argumentsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-29versions: ignore NameError and ArgumentErrorJack Nagel
Fixes #9856. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-27versions: fix up error handlingJack Nagel
Now we handle some things more explicitly and in the process get rid of the blanket rescue on the mktemp block, which is something of an antipattern. By unloading the class *after* determining the version, we avoid the case where the class had previously been unloaded but Formula.factory failed, and trying to unload the nonexistent class results in a NameError. Doing it this way, we avoid having to rescue NameError and thereby avoid hiding other cases where it may occur. We also rescue TypeError which gets us past a few more bad formula in the history in some instances. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-26versions: silence 'aka' warning and syntax errorsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-24versions: don't print 'nil' when stdout is not a ttyDylan Smith
Closes #8960. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12versions: use the actual class name when unloadingJack Nagel
And document a bit more why this hack is present. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: unload old class before obtaining versionJack Nagel
This is silly, but I am no Rubyist and I don't have time to figure out why Formula.factory(foo).url works as expected but Formula.factory(foo).version does not. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: enable '--compact' outputJack Nagel
This will be useful for shell tab completion when something like `brew install <formula> --version <version>` is implemented. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: determine version from a Formula instanceJack Nagel
Rather than regex the output of `git show <rev>:<path>`, we write the output of `git cat-file blog <rev>:<path>` to a temporary file, and then operate on it just as we would a normal formula. I haven't observed any speed difference. `git cat-file blob` is faster than `git show`, but the "slow part" is still the git-rev-list invocation. But really it's pretty fast overall. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-05Fix nil handling in `brew versions`Max Howell
Fixes #7392.