| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Suggested in #1084.
Made the existing warning output entirely to STDERR, because
previously the first line went to STDERR and subsequent ones went
to STDOUT.
|
|
|
|
|
|
|
|
|
|
Use `module_function` for `Homebrew` module.
|
|
|
|
|
|
|
|
|
|
|
|
For tagged commits produces the output:
- `1.0.1`
For untagged commits with a dirty tree produces the output:
- `1.0.1-19-g23efbc5-dirty`
Performance:
```
git describe --tags --dirty 2> /dev/null
0.07s user 0.01s system 96% cpu 0.086 total
```
This means we can tag any commit without needing to manually remember
to bump the revision every time.
|
|
|
|
Save the value of GEM_HOME before unsetting it,
and resetting it when setting up a gem environment.
Fixes #944.
|
|
Closes https://github.com/Homebrew/homebrew-core/issues/4973
|
|
Rubocop: apply auto-corrections and don't use hash-rockets
|
|
`name` is passed as argument to Formulary.factory which could later be
downcased at formulary.rb:349, but Pathname doesn't have a downcase
method. Converting `name` to String as it should be fixes the problem.
Fixes #1000.
|
|
|
|
|
|
Read the old symlinks and migrate them across rather than assuming a
unlink/link will work fine (as users have conflicts.)
|
|
|
|
Move the `LinkedKegs` migration into `utils.rb` so it can also be called
from `brew.rb` on startup.
|
|
This can ask for you to remove directories (e.g.
`/usr/local/share/homebrew`) so don’t call this files to avoid
confusion.
|
|
|
|
These are more files in the HOMEBREW_REPOSITORY that we want to link to
the HOMEBREW_PREFIX.
|
|
Pull more logic into the more generic `link_src_dst_dirs` to be used to
do more linkage.
|
|
--env: support more shells, allow explicit shell selection
|
|
Otherwise looks weird with multiple items.
|
|
|
|
|
|
|
|
Silence auditing formula revisions deprecations
|
|
|
|
|
|
|
|
|
|
This should hopefully avoid Homebrew/brew or Homebrew/homebrew-core
having these exceptions reported to us.
|
|
Options passed to `odisabled` were completely ignored. Instead, merge
them with the defaults that distinguish `odisabled` from `odeprecated`.
|
|
Try to find a formula in the backtrace to make the warning message more
helpful in identifying the culprit, as the formula is not always the
immediate caller of a deprecated method. Provide some sane fallbacks if
there's not formula in the call stack.
|
|
Add new `odeprecated` and `odisabled` methods to print API removal
messages. Currently these are just used by things in `compat/`.
|
|
|
|
|
|
Truncates each log file to about 1 MB. This avoids upload and
download errors with the gists, and respects GitHub's suggested
size limits.
|
|
Since we've moved all formulae to taps it's not necessarily obvious
what the path for the files are otherwise.
|
|
* Move GitHub API module to utils/github.rb.
* Move curl method to utils/curl.rb.
* global: use long curl arguments and an array.
This makes the code more self-documenting.
* utils/curl: support reading curl's output.
* utils/github: use curl instead of open-uri.
It has far better proxy support.
* pull: set Homebrew user agent.
* gist-logs: remove trailing whitespace.
* gist-logs: use first instead of [0].
Easier to read.
* gist-logs: use curl-based GitHub.open method.
|
|
|
|
Avoid breaking code highlighting of some editors (e.g. Sublime Text)
when `gem` is used as an identifier. This messes up the highlighting
below the first use and makes working with the file rather annoying.
|
|
If the environment variable HOMEBREW_TEST_GENERIC_OS is set ensure that
neither Mac nor Linux-specific code is loaded. This allows easier
testing of cross-platform code on OS X and will make it easier to port
Homebrew to platforms other than OS X and Linux.
|