| Age | Commit message (Collapse) | Author |
|
Eventually we'll move Contributions to a tap too.
Closes #30298.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This commit supports "-" and "_" in names of user and repository.
Closes #28203.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
|
|
References #26748.
|
|
|
|
|
|
Closes #25100.
|
|
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
|
|
|
|
|
|
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>
|
|
|
|
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.
|
|
|
|
Closes #22727.
|
|
|
|
|
|
|
|
Closes #20951.
|
|
|
|
|
|
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>
|
|
|
|
|
|
Closes #18634.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
I understand how this works now, and it is definitely necessary.
|
|
|
|
'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>
|
|
|
|
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Fixes #9856.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
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>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Closes #8960.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
And document a bit more why this hack is present.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Fixes #7392.
|