language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | Homebrew | brew | 8b61d7899b6798f70509a8d3b2052ddcae0d903f.json | DownloadStrategy: preserve timestamp for cp | Library/Homebrew/download_strategy.rb | @@ -218,7 +218,7 @@ def stage
when :p7zip
safe_system "7zr", "x", cached_location
else
- cp cached_location, basename_without_params
+ cp cached_location, basename_without_params, :preserve => true
end
end
@@ -416,7 +416,7 @@ def _fetch
# Useful for installing jars.
class NoUnzipC... | false |
Other | Homebrew | brew | 789a26b55ff3a578fe6db4ecefedf54aabe2fd06.json | README: update key expiry | README.md | @@ -19,7 +19,7 @@ Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/brew/bl
## Security
Please report security issues to security@brew.sh.
-This is our PGP key which is valid until June 17, 2016.
+This is our PGP key which is valid until May 24, 2017.
* Key ID: `0xE33A3D3CCE59E297`
* Finger... | false |
Other | Homebrew | brew | d345483de164e062727f95d3fbd575433d735548.json | formulary: fix comment typo. | Library/Homebrew/formulary.rb | @@ -2,7 +2,7 @@
require "tap"
# The Formulary is responsible for creating instances of Formula.
-# It is not meant to be used directy from formulae.
+# It is not meant to be used directly from formulae.
class Formulary
FORMULAE = {} | false |
Other | Homebrew | brew | 0123e04faed98c06dc395a2ec0d7fa0de2f56d5d.json | mirror: add command to mirror to Bintray. (#263)
Used for uploading imagemagick 6.9.4-3. | Library/Homebrew/dev-cmd/mirror.rb | @@ -0,0 +1,49 @@
+# Mirrors the stable URL for a formula on Bintray.
+#
+# Usage: brew mirror <formula> [<formula> ...]
+
+module Homebrew
+ def mirror
+ if ARGV.named.empty?
+ odie "This command requires at least formula argument!"
+ end
+
+ bintray_user = ENV["BINTRAY_USER"]
+ bintray_key = ENV["BIN... | false |
Other | Homebrew | brew | b8e5ff431d2d5a20ba35d8a3fc9371e1a5ef3991.json | audit: check more GitHub URLs. (#256)
GitHub’s code load and patch-diff URLs are the result of redirects and
make it harder to modify the URL to reach the original repository. | Library/Homebrew/cmd/audit.rb | @@ -636,6 +636,13 @@ def audit_patch(patch)
unless patch.url =~ /[a-fA-F0-9]{40}/
problem "GitHub/Gist patches should specify a revision:\n#{patch.url}"
end
+ when %r{https?://patch-diff\.githubusercontent\.com/raw/(.+)/(.+)/pull/(.+)\.(?:diff|patch)}
+ problem <<-EOS.undent
+ use ... | false |
Other | Homebrew | brew | bc1d5ae4d49c9698ce7e934367786a4122d958cc.json | install: fix documentation of --keep-tmp option (#258)
Obvious copy/paste failure in acc9a7ca8554bc2413dee2d6d0f407b3a59c628c. | Library/Homebrew/cmd/install.rb | @@ -40,8 +40,8 @@
#: If `--HEAD` is passed, and <formula> defines it, install the HEAD version,
#: aka master, trunk, unstable.
#:
-#: If `--keep-tmp` is passed, the temporary files created for the test are
-#: not deleted.
+#: If `--keep-tmp` is passed, the temporary files created during installation... | true |
Other | Homebrew | brew | bc1d5ae4d49c9698ce7e934367786a4122d958cc.json | install: fix documentation of --keep-tmp option (#258)
Obvious copy/paste failure in acc9a7ca8554bc2413dee2d6d0f407b3a59c628c. | share/doc/homebrew/brew.1.html | @@ -227,8 +227,8 @@ <h2 id="COMMANDS">COMMANDS</h2>
<p>If <code>--HEAD</code> is passed, and <var>formula</var> defines it, install the HEAD version,
aka master, trunk, unstable.</p>
-<p>If <code>--keep-tmp</code> is passed, the temporary files created for the test are
-not deleted.</p>
+<p>If <code>--keep-tmp</cod... | true |
Other | Homebrew | brew | bc1d5ae4d49c9698ce7e934367786a4122d958cc.json | install: fix documentation of --keep-tmp option (#258)
Obvious copy/paste failure in acc9a7ca8554bc2413dee2d6d0f407b3a59c628c. | share/man/man1/brew.1 | @@ -299,7 +299,7 @@ If \fB\-\-devel\fR is passed, and \fIformula\fR defines it, install the developm
If \fB\-\-HEAD\fR is passed, and \fIformula\fR defines it, install the HEAD version, aka master, trunk, unstable\.
.
.IP
-If \fB\-\-keep\-tmp\fR is passed, the temporary files created for the test are not deleted\.
+... | true |
Other | Homebrew | brew | 406fdbb391e844ea604c3eac1075c3f2562d07a9.json | brew.sh: drop obsolete source in update-preinstall
No need to source `cmd/update.sh` if `homebrew-update` is not going to
be called directly. Amends 750bb24a787dc6e4a13f2b842a3e8dcb8d5fb761. | Library/brew.sh | @@ -227,9 +227,6 @@ update-preinstall() {
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" ]]
then
- # Hide shellcheck complaint:
- # shellcheck source=/dev/null
- source "$HOMEBREW_LIBRARY/Homebrew/cmd/update.sh"
brew update --preinstall
fi
} | false |
Other | Homebrew | brew | 6eb2287221c1d87a2027bc66f439b94f8d2ce071.json | move git shell function to brew.sh
git is also used in analytics.sh | Library/Homebrew/cmd/update.sh | @@ -7,10 +7,6 @@
source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
-git() {
- "$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
-}
-
git_init_if_necessary() {
if [[ -n "$HOMEBREW_OSX" ]]
then | true |
Other | Homebrew | brew | 6eb2287221c1d87a2027bc66f439b94f8d2ce071.json | move git shell function to brew.sh
git is also used in analytics.sh | Library/brew.sh | @@ -28,6 +28,10 @@ brew() {
"$HOMEBREW_BREW_FILE" "$@"
}
+git() {
+ "$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
+}
+
# Force UTF-8 to avoid encoding issues for users with broken locale settings.
if [[ "$(locale charmap 2> /dev/null)" != "UTF-8" ]]
then | true |
Other | Homebrew | brew | 750bb24a787dc6e4a13f2b842a3e8dcb8d5fb761.json | brew.sh: use brew update in update-preinstall
Preinstall update should be performed in a separate process,
so it can maintain and close its own update lock. | Library/brew.sh | @@ -224,7 +224,7 @@ update-preinstall() {
# Hide shellcheck complaint:
# shellcheck source=/dev/null
source "$HOMEBREW_LIBRARY/Homebrew/cmd/update.sh"
- homebrew-update --preinstall
+ brew update --preinstall
fi
}
| false |
Other | Homebrew | brew | 2044294a865a85c4c3144a3000bd9a48427e12c6.json | brew pull: fix bogus line that was raising warning | Library/Homebrew/cmd/pull.rb | @@ -552,7 +552,6 @@ def verify_bintray_published(formulae_names)
# We're in the cache; make sure to force re-download
while true do
begin
- retry_count = retry_count
curl url, "-o", filename
break
rescue | false |
Other | Homebrew | brew | 745a1312dce936ddd519c2e151e889459243c543.json | pull: insert questionable syntax hack
I'm not completely sure this is "sane" logic but I'm leery of just reverting
Andrew's work this morning and making him rebuild that PR from scratch for one
syntax issue.
Sadly, because we run:
```
brew readall --aliases --syntax
```
On every CI job, and that flags this line previ... | Library/Homebrew/cmd/pull.rb | @@ -552,7 +552,7 @@ def verify_bintray_published(formulae_names)
# We're in the cache; make sure to force re-download
while true do
begin
- retry_count
+ retry_count = retry_count
curl url, "-o", filename
break
rescue | false |
Other | Homebrew | brew | b5a44161a4b2af3bf6b08970d3f8fc151ee1796a.json | cmd/pull: add retry to curl bottle download (#232)
Works around issue with GET and HEAD apparently acting differently, and
bottle downloads failing even after successful polling completion. | Library/Homebrew/cmd/pull.rb | @@ -514,37 +514,57 @@ def verify_bintray_published(formulae_names)
next
end
- # Poll for publication completion using a quick HEAD, to avoid spurious error messages
+ # Poll for publication completion using a quick partial HEAD, to avoid spurious error messages
# 401 error i... | false |
Other | Homebrew | brew | 5c1f463ac0f1ac8b3dffc5d235071f9759aa5633.json | Move more methods to DevelopmentTools.
Closes #1028. | Library/Homebrew/cmd/test-bot.rb | @@ -469,7 +469,7 @@ def formula(formula_name)
unless installed_gcc
run_as_not_developer { test "brew", "install", "gcc" }
installed_gcc = true
- OS::Mac.clear_version_cache
+ DevelopmentTools.clear_version_cache
retry
end
skip formula_name | true |
Other | Homebrew | brew | 5c1f463ac0f1ac8b3dffc5d235071f9759aa5633.json | Move more methods to DevelopmentTools.
Closes #1028. | Library/Homebrew/development_tools.rb | @@ -74,6 +74,21 @@ def clang_build_version
`#{path} --version`[/clang-(\d{2,})/, 1].to_i
end
end
+
+ def non_apple_gcc_version(cc)
+ (@non_apple_gcc_version ||= {}).fetch(cc) do
+ path = HOMEBREW_PREFIX.join("opt", "gcc", "bin", cc)
+ path = locate(cc) unless path.exist?
+... | true |
Other | Homebrew | brew | 5c1f463ac0f1ac8b3dffc5d235071f9759aa5633.json | Move more methods to DevelopmentTools.
Closes #1028. | Library/Homebrew/os/mac.rb | @@ -109,21 +109,6 @@ def sdk_path(v = nil)
s.path unless s.nil?
end
- def non_apple_gcc_version(cc)
- (@non_apple_gcc_version ||= {}).fetch(cc) do
- path = HOMEBREW_PREFIX.join("opt", "gcc", "bin", cc)
- path = DevelopmentTools.locate(cc) unless path.exist?
- version = `#{path... | true |
Other | Homebrew | brew | 500f9eada854c1939bf9a0caf94085214c9399b0.json | update: fix hyphen counting (legacy tap renaming)
Fix regression introduced in fafe8f0f53bf91fc41f016b5c2af41ca712783f7.
Counting the number of hyphens in a string cannot be done in a single
expression, thus split this and introduce another local variable.
Fixes #227. | Library/Homebrew/cmd/update.sh | @@ -40,6 +40,7 @@ git_init_if_necessary() {
rename_taps_dir_if_necessary() {
local tap_dir
local tap_dir_basename
+ local tap_dir_hyphens
local user
local repo
@@ -55,7 +56,8 @@ rename_taps_dir_if_necessary() {
mkdir -p "$HOMEBREW_LIBRARY/Taps/$user"
mv "$tap_dir" "$HOMEBREW_LIBRARY/Taps/$... | false |
Other | Homebrew | brew | 93e0f4f9465978460d411f27214e19ae3fc4d294.json | update: remove stray comma (legacy tap renaming)
Fix regression introduced in fafe8f0f53bf91fc41f016b5c2af41ca712783f7. | Library/Homebrew/cmd/update.sh | @@ -53,7 +53,7 @@ rename_taps_dir_if_necessary() {
user="$(echo "${tap_dir_basename%-*}" | tr "[:upper:]" "[:lower:]")"
repo="$(echo "${tap_dir_basename:${#user}+1}" | tr "[:upper:]" "[:lower:]")"
mkdir -p "$HOMEBREW_LIBRARY/Taps/$user"
- mv "$tap_dir", "$HOMEBREW_LIBRARY/Taps/$user/homebrew-$... | false |
Other | Homebrew | brew | 815edc06862fc4c01ca6ac09a5a3a0b36cfcaa24.json | Update man page to pick up changes made in #205.
Seems like last-minute changes were made without re-running `brew man`. | share/doc/homebrew/brew.1.html | @@ -200,7 +200,7 @@ <h2 id="COMMANDS">COMMANDS</h2>
source even if a bottle is provided. Dependencies will still be installed
from bottles if they are available.</p>
-<p>If HOMEBREW_BUILD_FROM_SOURCE is set, regardless of whether <code>--build-from-source</code> was
+<p>If <code>HOMEBREW_BUILD_FROM_SOURCE</code> is... | true |
Other | Homebrew | brew | 815edc06862fc4c01ca6ac09a5a3a0b36cfcaa24.json | Update man page to pick up changes made in #205.
Seems like last-minute changes were made without re-running `brew man`. | share/man/man1/brew.1 | @@ -268,7 +268,7 @@ If \fB\-\-cc=\fR\fIcompiler\fR is passed, attempt to compile using \fIcompiler\f
If \fB\-\-build\-from\-source\fR or \fB\-s\fR is passed, compile the specified \fIformula\fR from source even if a bottle is provided\. Dependencies will still be installed from bottles if they are available\.
.
.IP
... | true |
Other | Homebrew | brew | 4059d5fc2634e24a0b5f9f02a416bda1a7016435.json | compat/macos: fix methods from 'development_tools'
The previous fixes in c6dc50fcf05c8c4956ac86345360fefcb00f664e and
ed9f7308b265944c27c833b9a2aaa0e911ff5667 were incomplete as they
referenced `DeveloperTools`, but the actual name is `DevelopmentTools`.
Also fixes indentation and a broken `MacOS.clang_version` (it w... | Library/Homebrew/compat/macos.rb | @@ -58,37 +58,37 @@ def macports_or_fink_installed?
end
def locate(tool)
- DeveloperTools.locate(tool)
+ DevelopmentTools.locate(tool)
end
def default_cc
- DeveloperTools.default_cc
+ DevelopmentTools.default_cc
end
def default_compiler
- DeveloperTools.defa... | false |
Other | Homebrew | brew | c6dc50fcf05c8c4956ac86345360fefcb00f664e.json | compat/macos: add missing require.
Closes #220. | Library/Homebrew/compat/macos.rb | @@ -1,3 +1,5 @@
+require "development_tools"
+
module OS
module Mac
def xcode_folder | false |
Other | Homebrew | brew | c7edf9a063dce63afb9ab54b6d71fe864d578365.json | gist-logs: fix system_config reference. | Library/Homebrew/cmd/gist-logs.rb | @@ -1,5 +1,5 @@
require "formula"
-require "cmd/config"
+require "system_config"
require "net/http"
require "net/https"
require "stringio"
@@ -12,7 +12,7 @@ def gistify_logs(f)
timestamp = build_time.strftime("%Y-%m-%d_%H-%M-%S")
s = StringIO.new
- Homebrew.dump_verbose_config(s)
+ SystemConfig.du... | false |
Other | Homebrew | brew | ed9f7308b265944c27c833b9a2aaa0e911ff5667.json | compat/macos: add missing developer_tools methods.
Closes #219. | Library/Homebrew/compat/macos.rb | @@ -54,5 +54,39 @@ def mountain_lion?
def macports_or_fink_installed?
!macports_or_fink.empty?
end
+
+ def locate(tool)
+ DeveloperTools.locate(tool)
+ end
+
+ def default_cc
+ DeveloperTools.default_cc
+ end
+
+ def default_compiler
+ DeveloperTools.default_compiler
+ ... | false |
Other | Homebrew | brew | 86fa42b36c98e482490ca347849e041ee9316011.json | tab: fix bad default_compiler reference
Partially addresses #219. Related to changes introduced in #168. | Library/Homebrew/tab.rb | @@ -187,7 +187,7 @@ def unused_options
end
def compiler
- super || MacOS.default_compiler
+ super || DevelopmentTools.default_compiler
end
def cxxstdlib | false |
Other | Homebrew | brew | 504152038cb591a661721b09e989f428bbc6ae0a.json | os/mac/sdk: fix bad locate reference.
Closes #216. | Library/Homebrew/os/mac/sdk.rb | @@ -37,7 +37,7 @@ def sdk_paths
# Xcode < 4.3 style
sdk_prefix = "/Developer/SDKs" unless File.directory? sdk_prefix
# Finally query Xcode itself (this is slow, so check it last)
- sdk_prefix = File.join(Utils.popen_read(OS::Mac.locate("xcrun"), "--show-sdk-platform-path").chom... | false |
Other | Homebrew | brew | 59de2c7ecf34c46ead29c787ce409afdc15f609c.json | pull: fix bottle_tag references. | Library/Homebrew/cmd/pull.rb | @@ -440,7 +440,7 @@ def bottle_tags()
info["bottle"]["stable"]["files"].keys
end
- def bottle_info(my_bottle_tag = bottle_tag)
+ def bottle_info(my_bottle_tag = Utils::Bottles.tag)
tag_s = my_bottle_tag.to_s
return nil unless info["bottle"]["stable"]
btl_info = info["bottle"]["s... | false |
Other | Homebrew | brew | bb7226060681d287619981940a78302beed1c1d6.json | tests: add generic flag. (#212)
Makes it easier to quickly do tests of the generic/cross-platform
backend. | Library/Homebrew/cmd/tests.rb | @@ -6,6 +6,7 @@ def tests
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat"
+ ENV["HOMEBREW_TEST_GENERIC_OS"] = "1" if ARGV.include? "--generic"
if ARGV.include? "--coverage"
ENV["H... | false |
Other | Homebrew | brew | 61614d35294c8faffaeb5c7f0ec6dea78dbbc30f.json | test_integration_cmds: add cleanup test. | Library/Homebrew/test/test_integration_cmds.rb | @@ -109,6 +109,11 @@ def test_cellar_formula
cmd("--cellar", testball)
end
+ def test_cleanup
+ assert_equal HOMEBREW_CACHE.to_s,
+ cmd("cleanup")
+ end
+
def test_env
assert_match %r{CMAKE_PREFIX_PATH="#{HOMEBREW_PREFIX}[:"]},
cmd("--env") | false |
Other | Homebrew | brew | c5bfc932a6f74adcf303e66d88cf814d176318c7.json | cleanup: fix bottle reference.
Closes #214.
Closes #215. | Library/Homebrew/cleanup.rb | @@ -88,7 +88,7 @@ def self.cleanup_cache
f.version > version
end
- if file_is_stale || ARGV.switch?("s") && !f.installed? || bottle_file_outdated?(f, file)
+ if file_is_stale || ARGV.switch?("s") && !f.installed? || Utils::Bottles::file_outdated?(f, file)
cleanup_path(file... | false |
Other | Homebrew | brew | ddb576b582ddc801ac702566bacbc2f231fc86af.json | Add support for testing generic OS.
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. | Library/Homebrew/hardware.rb | @@ -55,8 +55,6 @@ def feature?(name)
elsif OS.linux?
require "os/linux/hardware"
CPU.extend LinuxCPUs
- else
- raise "The system `#{`uname`.chomp}' is not supported."
end
def self.cores_as_words | true |
Other | Homebrew | brew | ddb576b582ddc801ac702566bacbc2f231fc86af.json | Add support for testing generic OS.
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. | Library/Homebrew/os.rb | @@ -1,6 +1,6 @@
module OS
def self.mac?
- /darwin/i === RUBY_PLATFORM
+ /darwin/i === RUBY_PLATFORM && !ENV["HOMEBREW_TEST_GENERIC_OS"]
end
def self.linux?
@@ -19,9 +19,5 @@ def self.linux?
elsif OS.linux?
ISSUES_URL = "https://github.com/Homebrew/linuxbrew/wiki/troubleshooting"
PATH_OPEN... | true |
Other | Homebrew | brew | ddb576b582ddc801ac702566bacbc2f231fc86af.json | Add support for testing generic OS.
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. | Library/Homebrew/os/mac.rb | @@ -12,6 +12,8 @@ module Mac
::MacOS = self # compatibility
+ raise "Loaded OS::Mac on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
+
# This can be compared to numerics, strings, or symbols
# using the standard Ruby Comparable methods.
def version | true |
Other | Homebrew | brew | ddb576b582ddc801ac702566bacbc2f231fc86af.json | Add support for testing generic OS.
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. | Library/Homebrew/utils.rb | @@ -448,7 +448,9 @@ def exec_editor(*args)
end
def exec_browser(*args)
- browser = ENV["HOMEBREW_BROWSER"] || ENV["BROWSER"] || OS::PATH_OPEN
+ browser = ENV["HOMEBREW_BROWSER"] || ENV["BROWSER"]
+ browser ||= OS::PATH_OPEN if defined?(OS::PATH_OPEN)
+ return unless browser
safe_exec(browser, *args)
end
| true |
Other | Homebrew | brew | ddb576b582ddc801ac702566bacbc2f231fc86af.json | Add support for testing generic OS.
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. | Library/brew.rb | @@ -141,7 +141,7 @@ def require?(path)
rescue Exception => e
Utils::Analytics.report_exception(e)
onoe e
- if internal_cmd
+ if internal_cmd && defined?(ISSUES_URL)
$stderr.puts "#{Tty.white}Please report this bug:"
$stderr.puts " #{Tty.em}#{OS::ISSUES_URL}#{Tty.reset}"
end | true |
Other | Homebrew | brew | 12686ad417c40274f1da439c5cb7484aefde8b8c.json | cmd/fetch: fix typo in doco | Library/Homebrew/cmd/fetch.rb | @@ -5,7 +5,7 @@
#: If `--HEAD` or `--devel` is passed, fetch that version instead of the
#: stable version.
#:
-#: If `-v` is passed, do a verbose VCS checkout, if the URL represents a CVS.
+#: If `-v` is passed, do a verbose VCS checkout, if the URL represents a VCS.
#: This is useful for seeing if ... | false |
Other | Homebrew | brew | 5ee797eb610205c232ab6d5f76c68bfc5834f6b9.json | xcode: fix invalid range in comparison
Due to a typo, the range of LLVM build versions 2066 to 2325 were never
matched and thus Xcode 3.2.0 could never be inferred from that. (Only
relevant for legacy systems. Doesn't seem to have impacted any users.) | Library/Homebrew/os/mac/xcode.rb | @@ -103,7 +103,7 @@ def uncached_version
case MacOS.llvm_build_version.to_i
when 1..2063 then "3.1.0"
when 2064..2065 then "3.1.4"
- when 2366..2325
+ when 2066..2325
# we have no data for this range so we are guessing
"3.2.0"
when 2326 | false |
Other | Homebrew | brew | c55da93ff390fc5863e6c2967f345676c4aad569.json | xcode: expect 7.3.1 on 10.11 | Library/Homebrew/os/mac.rb | @@ -296,6 +296,7 @@ def preferred_arch
"7.2" => { :clang => "7.0", :clang_build => 700 },
"7.2.1" => { :clang => "7.0", :clang_build => 700 },
"7.3" => { :clang => "7.3", :clang_build => 703 },
+ "7.3.1" => { :clang => "7.3", :clang_build => 703 },
}
def compilers_standard? | true |
Other | Homebrew | brew | c55da93ff390fc5863e6c2967f345676c4aad569.json | xcode: expect 7.3.1 on 10.11 | Library/Homebrew/os/mac/xcode.rb | @@ -15,11 +15,11 @@ def latest_version
when "10.8" then "5.1.1"
when "10.9" then "6.2"
when "10.10" then "7.2.1"
- when "10.11" then "7.3"
+ when "10.11" then "7.3.1"
else
# Default to newest known version of Xcode for unreleased OSX versions.
if... | true |
Other | Homebrew | brew | c55da93ff390fc5863e6c2967f345676c4aad569.json | xcode: expect 7.3.1 on 10.11 | share/doc/homebrew/Xcode.md | @@ -10,7 +10,7 @@ Tools available for your platform:
10.8 | 5.1.1 | April 2014
10.9 | 6.2 | 6.2
10.10 | 7.2.1 | 7.2
- 10.11 | 7.3 | 7.3
+ 10.11 | 7.3.1 | 7.3
## Compiler Version Database
@@ -63,6 +63,7 @@ Tools available for your platform:
7.2 | — | — | — | — ... | true |
Other | Homebrew | brew | f653cb8340de3c9acd1ddfb75c1a8c8f3195834a.json | pull: fix references to renamed variable
Fix bug originating in #132. | Library/Homebrew/cmd/pull.rb | @@ -175,10 +175,10 @@ def pull
orig_subject = message.empty? ? "" : message.lines.first.chomp
bump_subject = subject_for_bump(formula, old_versions, new_versions)
if do_bump
- odie "No version changes found for #{formula.name}" if subject.nil?
+ odie "No version changes foun... | false |
Other | Homebrew | brew | 60e3737f17614e43856af6f1ccfba663374a5f43.json | update: improve some edge cases.
- When running `brew update` and there’s been no changes from upstream
on any repositories there’s no need to call the (relatively) slow `brew
update-report` when we already know what it will say (“Already up-to
date.”).
- When any`git fetch`es fail then throw out an error at the e... | Library/Homebrew/cmd/update-report.rb | @@ -70,7 +70,9 @@ def update_report
end
if !updated
- puts "Already up-to-date." unless ARGV.include?("--preinstall")
+ if !ARGV.include?("--preinstall") && !ENV["HOMEBREW_UPDATE_FAILED"]
+ puts "Already up-to-date."
+ end
elsif hub.empty?
puts "No changes to formulae."
... | true |
Other | Homebrew | brew | 60e3737f17614e43856af6f1ccfba663374a5f43.json | update: improve some edge cases.
- When running `brew update` and there’s been no changes from upstream
on any repositories there’s no need to call the (relatively) slow `brew
update-report` when we already know what it will say (“Already up-to
date.”).
- When any`git fetch`es fail then throw out an error at the e... | Library/Homebrew/cmd/update.sh | @@ -158,6 +158,10 @@ pull() {
CURRENT_REVISION="$(read_current_revision)"
export HOMEBREW_UPDATE_BEFORE"$TAP_VAR"="$INITIAL_REVISION"
export HOMEBREW_UPDATE_AFTER"$TAP_VAR"="$CURRENT_REVISION"
+ if [[ "$INITIAL_REVISION" != "$CURRENT_REVISION" ]]
+ then
+ HOMEBREW_UPDATED="1"
+ fi
if !... | true |
Other | Homebrew | brew | 60e3737f17614e43856af6f1ccfba663374a5f43.json | update: improve some edge cases.
- When running `brew update` and there’s been no changes from upstream
on any repositories there’s no need to call the (relatively) slow `brew
update-report` when we already know what it will say (“Already up-to
date.”).
- When any`git fetch`es fail then throw out an error at the e... | Library/brew.sh | @@ -1,6 +1,6 @@
HOMEBREW_VERSION="0.9.9"
-odie() {
+onoe() {
if [[ -t 2 ]] # check whether stderr is a tty.
then
echo -ne "\033[4;31mError\033[0m: " >&2 # highlight Error with underline and red color
@@ -13,6 +13,10 @@ odie() {
else
echo "$*" >&2
fi
+}
+
+odie() {
+ onoe "$@"
exit 1
}
| true |
Other | Homebrew | brew | 967988c4441ed49338b8e31a1a5ff8a7f6061c88.json | Fix a variable name in error message (#190) | Library/Homebrew/extend/fileutils.rb | @@ -68,7 +68,7 @@ def run
# group_id.to_s makes OS X 10.6.7 (ruby-1.8.7-p174) and earlier happy.
chown(nil, group_id.to_s, tmpdir)
rescue Errno::EPERM
- opoo "Failed setting group \"#{Etc.getgrgid(group_id).name}\" on #{tmp}"
+ opoo "Failed setting group \"#{Etc.getgrgid(group_id)... | false |
Other | Homebrew | brew | b449a51ff752482ffdb1010d42e7d76a5880d1a4.json | analytics: add bash completion
Closes #178.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | etc/bash_completion.d/brew | @@ -119,6 +119,13 @@ _brew_complete_tap ()
__brewcomp "$(brew tap --list-official)"
}
+_brew_analytics ()
+{
+ case "$COMP_CWORD" in
+ 2) __brewcomp "off on regenerate-uuid state" ;;
+ esac
+}
+
_brew_bottle ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -586,6 +593,7 @@ _brew ()
# subcomma... | false |
Other | Homebrew | brew | 0812b721bdff1ef85cab4296f7a7b1f3332954b3.json | analytics: add zsh completion | share/zsh/site-functions/_brew | @@ -96,6 +96,7 @@ if (( CURRENT == 1 )); then
fi
case "$words[1]" in
+ analytics) compadd on off state regenerate-uuid ;;
install|reinstall|audit|home|homepage|log|info|abv|uses|cat|deps|desc|edit|options|switch)
_brew_all_formulae
_wanted formulae expl 'all formulae' compadd -a formulae ;; | false |
Other | Homebrew | brew | 90d3317d7dc9d809d7fc8da15e824161a0ce3008.json | download_strategy: use svn info --xml (#174) | Library/Homebrew/download_strategy.rb | @@ -1,4 +1,5 @@
require "utils/json"
+require "rexml/document"
class AbstractDownloadStrategy
include FileUtils
@@ -495,7 +496,8 @@ def stage
end
def source_modified_time
- Time.parse Utils.popen_read("svn", "info", cached_location.to_s).strip[/^Last Changed Date: (.+)$/, 1]
+ xml = REXML::Document... | false |
Other | Homebrew | brew | 3ff1aa9fa3cb467a8fff912e780822a788303cff.json | download_strategy: add svn source_modified_time (#156) | Library/Homebrew/download_strategy.rb | @@ -494,6 +494,10 @@ def stage
quiet_safe_system "svn", "export", "--force", cached_location, Dir.pwd
end
+ def source_modified_time
+ Time.parse Utils.popen_read("svn", "info", cached_location.to_s).strip[/^Last Changed Date: (.+)$/, 1]
+ end
+
private
def repo_url | false |
Other | Homebrew | brew | bc98fd37882c64c896dc2243fcc6e129f170a32a.json | Language::Node.npm_install_args: add helper method (#37)
* add Language::Node helper module
This adds a language module for Node module based formulas.
It contains the 2 public methods `std_npm_install_args(libexec)` and
`local_npm_install_args`:
* `std_npm_install_args` is intended to be used in formulas for... | Library/Homebrew/cleanup.rb | @@ -50,7 +50,7 @@ def self.cleanup_cache
cleanup_path(path) { path.unlink }
next
end
- if path.basename.to_s == "java_cache" && path.directory?
+ if %w[java_cache npm_cache].include?(path.basename.to_s) && path.directory?
cleanup_path(path) { FileUtils.rm_rf path ... | true |
Other | Homebrew | brew | bc98fd37882c64c896dc2243fcc6e129f170a32a.json | Language::Node.npm_install_args: add helper method (#37)
* add Language::Node helper module
This adds a language module for Node module based formulas.
It contains the 2 public methods `std_npm_install_args(libexec)` and
`local_npm_install_args`:
* `std_npm_install_args` is intended to be used in formulas for... | Library/Homebrew/cmd/audit.rb | @@ -656,13 +656,6 @@ def audit_text
if text =~ /def plist/ && text !~ /plist_options/
problem "Please set plist_options when using a formula-defined plist."
end
-
- if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name !~ /^kibana(\d{2})?$/
- need_npm = "\#{F... | true |
Other | Homebrew | brew | bc98fd37882c64c896dc2243fcc6e129f170a32a.json | Language::Node.npm_install_args: add helper method (#37)
* add Language::Node helper module
This adds a language module for Node module based formulas.
It contains the 2 public methods `std_npm_install_args(libexec)` and
`local_npm_install_args`:
* `std_npm_install_args` is intended to be used in formulas for... | Library/Homebrew/language/node.rb | @@ -0,0 +1,35 @@
+module Language
+ module Node
+ def self.npm_cache_config
+ "cache=#{HOMEBREW_CACHE}/npm_cache\n"
+ end
+
+ def self.setup_npm_environment
+ npmrc = Pathname.new("#{ENV["HOME"]}/.npmrc")
+ # only run setup_npm_environment once per formula
+ return if npmrc.exist?
+ #... | true |
Other | Homebrew | brew | bc98fd37882c64c896dc2243fcc6e129f170a32a.json | Language::Node.npm_install_args: add helper method (#37)
* add Language::Node helper module
This adds a language module for Node module based formulas.
It contains the 2 public methods `std_npm_install_args(libexec)` and
`local_npm_install_args`:
* `std_npm_install_args` is intended to be used in formulas for... | Library/Homebrew/test/test_cleanup.rb | @@ -73,4 +73,11 @@ def test_cleanup_cache_java_cache
shutup { Homebrew::Cleanup.cleanup_cache }
refute_predicate java_cache, :exist?
end
+
+ def test_cleanup_cache_npm_cache
+ npm_cache = (HOMEBREW_CACHE/"npm_cache")
+ npm_cache.mkpath
+ shutup { Homebrew::Cleanup.cleanup_cache }
+ refute_pred... | true |
Other | Homebrew | brew | bc98fd37882c64c896dc2243fcc6e129f170a32a.json | Language::Node.npm_install_args: add helper method (#37)
* add Language::Node helper module
This adds a language module for Node module based formulas.
It contains the 2 public methods `std_npm_install_args(libexec)` and
`local_npm_install_args`:
* `std_npm_install_args` is intended to be used in formulas for... | share/doc/homebrew/Node-for-Formula-Authors.md | @@ -0,0 +1,115 @@
+# Node for formula authors
+
+This document explains how to successfully use Node and npm in a Node module based Homebrew formula.
+
+# Running `npm install`
+
+Homebrew provides two helper methods in a `Language::Node` module, `std_npm_install_args` and `local_npm_install_args`. They both set up the... | true |
Other | Homebrew | brew | be336159fb967b1b0855614aeaff885d45e7a96a.json | doco: add Prose Guidelines (WIP)
Closes #128.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | share/doc/homebrew/Prose-Style-Guidelines.md | @@ -0,0 +1,88 @@
+# Prose Style Guidelines
+
+This is a set of style and usage guidelines for Homebrew's prose documentation aimed at users, contributors, and maintainers (as opposed to executable computer code). It applies to documents like those in `share/doc/homebrew` in the `Homebrew/brew` repo, announcement emails... | false |
Other | Homebrew | brew | 822ea6057b555ec714c54a6bbb0758a4482f29fb.json | Fix a minor typo
Closes #149.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | share/doc/homebrew/Analytics.md | @@ -44,4 +44,4 @@ Homebrew's analytics are accessible to Homebrew's current maintainers. Contact @
The code is viewable in https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analytics.rb and https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analytics.sh. They are done in a separate b... | false |
Other | Homebrew | brew | 2c9fd850f35d30e99ac72946c3fdb88abf21a940.json | Use GCC 4.2 as the default compiler when installed | Library/Homebrew/os/mac.rb | @@ -131,7 +131,9 @@ def default_cc
def default_compiler
case default_cc
- when /^gcc-4.0/ then :gcc_4_0
+ # if GCC 4.2 is installed, e.g. via Tigerbrew, prefer it
+ # over the system's GCC 4.0
+ when /^gcc-4.0/ then gcc_42_build_version ? :gcc : :gcc_4_0
when /^gcc/ then :gcc
... | false |
Other | Homebrew | brew | 06a356d9ec074f6509ac83c5bce3d7bbcc679978.json | STANDARD_COMPILERS: add Xcode 2.0 | Library/Homebrew/os/mac.rb | @@ -248,6 +248,7 @@ def preferred_arch
end
STANDARD_COMPILERS = {
+ "2.0" => { :gcc_40_build => 4061 },
"2.5" => { :gcc_40_build => 5370 },
"3.1.4" => { :gcc_40_build => 5493, :gcc_42_build => 5577 },
"3.2.6" => { :gcc_40_build => 5494, :gcc_42_build => 5666, :llvm_build => 233... | false |
Other | Homebrew | brew | 2008c880dd4b0877fbe0a61e6ae9345e77b836f6.json | Add a helper to determine make path on Tiger | Library/Homebrew/extend/fileutils.rb | @@ -156,6 +156,19 @@ def rake(*args)
system RUBY_BIN/"rake", *args
end
+ # Run `make` 3.81 or newer.
+ # Uses the system make on Leopard and newer, and the
+ # path to the actually-installed make on Tiger or older.
+ def make(*args)
+ if Utils.popen_read("/usr/bin/make", "--version").match(/Make (\d\.\... | false |
Other | Homebrew | brew | 26118d6225ee6d2bb913527191645db04bc10bca.json | caveats: recommend brew services for plists.
It simplifies the number of commands and it's now an officially
supported command again. | Library/Homebrew/caveats.rb | @@ -162,7 +162,6 @@ def plist_caveats
else
File.basename Dir["#{keg}/*.plist"].first
end
- plist_link = "#{destination}/#{plist_filename}"
plist_domain = f.plist_path.basename(".plist")
destination_path = Pathname.new File.expand_path destination
plist_path = destination... | false |
Other | Homebrew | brew | 094f6f47ddcb3cabc30ed935a4be4cf855c94e73.json | Formula: include bad value in invalid-option error message
Makes identifying which line in a formula has the bad use of 'option' easier.
Closes #120.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | Library/Homebrew/software_spec.rb | @@ -122,9 +122,12 @@ def option(name, description = "")
puts "Symbols are reserved for future use, please pass a string instead"
name = name.to_s
end
+ unless String === name
+ raise ArgumentError, "option name must be string or symbol; got a #{name.class}: #{name}"
+ end
... | false |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | Library/Homebrew/cmd/audit.rb | @@ -1,87 +1,76 @@
-#: * `audit` [`--strict`] [`--online`] [<formulae>]:
+#: * `audit` [`--strict`] [`--online`] [`--display-cop-names`] [<formulae>]:
#: Check <formulae> for Homebrew coding style violations. This should be
#: run before submitting a new formula.
#:
#: If no <formulae> are provided, all o... | true |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | Library/Homebrew/cmd/doctor.rb | @@ -2,18 +2,22 @@
#: Check your system for potential problems. Doctor exits with a non-zero status
#: if any problems are found.
+# Undocumented options:
+# -D activates debugging and profiling of the audit methods (not the same as --debug)
+
require "diagnostic"
module Homebrew
def doctor
+ inj... | true |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | Library/Homebrew/cmd/style.rb | @@ -1,3 +1,25 @@
+#: * `style` [`--fix`] [`--display-cop-names`] [<formulae>|<files>]:
+#: Check formulae or files for conformance to Homebrew style guidelines.
+#:
+#: <formulae> is a list of formula names.
+#:
+#: <files> is a list of file names.
+#:
+#: <formulae> and <files> may not be combined. If bot... | true |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | Library/Homebrew/diagnostic.rb | @@ -85,21 +85,6 @@ def inject_file_list(list, str)
end
############# END HELPERS
- def inject_dump_stats!
- self.extend Module.new {
- def send(method, *)
- time = Time.now
- super
- ensure
- $times[method] = Time.now - time
- end
-... | true |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | Library/Homebrew/utils.rb | @@ -276,6 +276,39 @@ def self.install_gem_setup_path!(gem, version = nil, executable = gem)
EOS
end
end
+
+ # Hash of Module => Set(method_names)
+ @@injected_dump_stat_modules = {}
+
+ def inject_dump_stats!(the_module, pattern)
+ @@injected_dump_stat_modules[the_module] ||= []
+ injected_metho... | true |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | Library/Homebrew/utils/popen.rb | @@ -3,6 +3,10 @@ def self.popen_read(*args, &block)
popen(args, "rb", &block)
end
+ def self.popen_read_text(*args, &block)
+ popen(args, "r", &block)
+ end
+
def self.popen_write(*args, &block)
popen(args, "wb", &block)
end | true |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | share/doc/homebrew/brew.1.html | @@ -35,17 +35,20 @@ <h2 id="ESSENTIAL-COMMANDS">ESSENTIAL COMMANDS</h2>
<h2 id="COMMANDS">COMMANDS</h2>
<dl>
-<dt><code>audit</code> [<code>--strict</code>] [<code>--online</code>] [<var>formulae</var>]</dt><dd><p>Check <var>formulae</var> for Homebrew coding style violations. This should be
+<dt><code>audit</code>... | true |
Other | Homebrew | brew | a3b70d38a72400451594f7c11853ef2b379a3bca.json | brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead
of doing `brew style` outputs for all formulae first, and then the other
audit checks.
Closes #112.
Signed-off-by: Andrew Janke <andrew@apjanke.net> | share/man/man1/brew.1 | @@ -44,19 +44,22 @@ Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is su
.SH "COMMANDS"
.
.TP
-\fBaudit\fR [\fB\-\-strict\fR] [\fB\-\-online\fR] [\fIformulae\fR]
+\fBaudit\fR [\fB\-\-strict\fR] [\fB\-\-online\fR] [\fB\-\-display\-cop\-names\fR] [\fIformulae\fR]
Check \fIformulae\fR for H... | true |
Other | Homebrew | brew | f5f41f2079039699c0157b602391d7744fc7222b.json | doctor: remove autotools check | Library/Homebrew/diagnostic.rb | @@ -1100,22 +1100,6 @@ def check_git_origin
end
end
- def check_for_autoconf
- return unless MacOS::Xcode.installed?
- return unless MacOS::Xcode.provides_autotools?
-
- autoconf = which("autoconf")
- safe_autoconfs = %w[/usr/bin/autoconf /Developer/usr/bin/autoconf]
-... | true |
Other | Homebrew | brew | f5f41f2079039699c0157b602391d7744fc7222b.json | doctor: remove autotools check | Library/Homebrew/test/test_diagnostic.rb | @@ -204,20 +204,6 @@ def test_check_for_symlinked_cellar
HOMEBREW_CELLAR.mkpath
end
- def test_check_for_autoconf
- MacOS::Xcode.stubs(:installed?).returns true
- MacOS::Xcode.stubs(:provides_autotools?).returns true
- mktmpdir do |path|
- file = "#{path}/autoconf"
- FileUtils.touch file
-... | true |
Other | Homebrew | brew | b53f0c5ada753d5ded6f6fbe4f920a4a43696394.json | tests: expand help and help-related tests
Closes #114.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | Library/Homebrew/test/test_integration_cmds.rb | @@ -130,8 +130,21 @@ def test_repository
end
def test_help
- assert_match "Example usage:",
- cmd("help")
+ assert_match "Example usage:\n",
+ cmd_fail # Generic help (empty argument list).
+ assert_match "Unknown command: command-that-does-not-exist",
+ ... | false |
Other | Homebrew | brew | d9363a15590ddb8aad3e8e5444a972eaa79fd05e.json | exceptions: add reason to 'UsageError' exception
Use the `reason` attribute to be able to handle `UsageError` subclasses
more uniformly and simplify logic in `brew.rb` to handle them together. | Library/Homebrew/exceptions.rb | @@ -1,6 +1,28 @@
-class UsageError < RuntimeError; end
-class FormulaUnspecifiedError < UsageError; end
-class KegUnspecifiedError < UsageError; end
+class UsageError < RuntimeError
+ attr_reader :reason
+
+ def initialize(reason = nil)
+ @reason = reason
+ end
+
+ def to_s
+ s = "Invalid usage"
+ s += ": ... | true |
Other | Homebrew | brew | d9363a15590ddb8aad3e8e5444a972eaa79fd05e.json | exceptions: add reason to 'UsageError' exception
Use the `reason` attribute to be able to handle `UsageError` subclasses
more uniformly and simplify logic in `brew.rb` to handle them together. | Library/brew.rb | @@ -113,13 +113,9 @@ def require?(path)
end
end
-rescue FormulaUnspecifiedError
- abort "This command requires a formula argument"
-rescue KegUnspecifiedError
- abort "This command requires a keg argument"
-rescue UsageError
+rescue UsageError => e
require "cmd/help"
- Homebrew.help cmd, :usage_error =>... | true |
Other | Homebrew | brew | 4f8e3cae5e05c05b3681b3afd2f7ac480c522eb1.json | help: improve styling of generic help text
Format the usage examples more consistently (particularly parentheses
instead of square brackets where one of several alternatives has to be
picked). And add the now much more useful `brew help <command>`.
Closes #113.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | Library/Homebrew/cmd/help.rb | @@ -1,18 +1,18 @@
HOMEBREW_HELP = <<-EOS
Example usage:
- brew [info | home | options ] [FORMULA...]
+ brew (info|home|options) [FORMULA...]
brew install FORMULA...
brew uninstall FORMULA...
- brew search [foo]
+ brew search [TEXT|/PATTERN/]
brew list [FORMULA...]
brew update
brew upgrade [FORMULA.... | false |
Other | Homebrew | brew | 312fdaa892bce745f909215f81f3257d170c0f5a.json | --version: move help to documentation comment
This implies that `--version` is treated in most places like a regular
command, e.g. being suggested in shell completion. Also fix the help
text that claimed output goes to standard error, while it actually goes
to standard output. | Library/Homebrew/cmd/--version.rb | @@ -0,0 +1,12 @@
+#: * `--version`:
+#: Print the version number of Homebrew to standard output and exit.
+
+module Homebrew
+ def __version
+ # As a special case, `--version` is implemented directly in `brew.rb`. This
+ # file merely serves as a container for the documentation. It also catches
+ # the ca... | true |
Other | Homebrew | brew | 312fdaa892bce745f909215f81f3257d170c0f5a.json | --version: move help to documentation comment
This implies that `--version` is treated in most places like a regular
command, e.g. being suggested in shell completion. Also fix the help
text that claimed output goes to standard error, while it actually goes
to standard output. | Library/Homebrew/manpages/brew.1.md.erb | @@ -50,9 +50,6 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
<%= commands.join("\n") %>
- * `--version`:
- Print the version number of brew to standard error and exit.
-
## EXTERNAL COMMANDS
Homebrew, like `git`(1), supports external commands. These are executable | true |
Other | Homebrew | brew | 312fdaa892bce745f909215f81f3257d170c0f5a.json | --version: move help to documentation comment
This implies that `--version` is treated in most places like a regular
command, e.g. being suggested in shell completion. Also fix the help
text that claimed output goes to standard error, while it actually goes
to standard output. | share/doc/homebrew/brew.1.html | @@ -410,7 +410,7 @@ <h2 id="COMMANDS">COMMANDS</h2>
<dt><code>--repository</code></dt><dd><p>Display where Homebrew's <code>.git</code> directory is located. For standard installs,
the <code>prefix</code> and <code>repository</code> are the same directory.</p></dd>
<dt><code>--repository</code> <var>user</var><code>... | true |
Other | Homebrew | brew | 312fdaa892bce745f909215f81f3257d170c0f5a.json | --version: move help to documentation comment
This implies that `--version` is treated in most places like a regular
command, e.g. being suggested in shell completion. Also fix the help
text that claimed output goes to standard error, while it actually goes
to standard output. | share/man/man1/brew.1 | @@ -586,7 +586,7 @@ Display where tap \fIuser\fR\fB/\fR\fIrepo\fR\'s directory is located\.
.
.TP
\fB\-\-version\fR
-Print the version number of brew to standard error and exit\.
+Print the version number of Homebrew to standard output and exit\.
.
.SH "EXTERNAL COMMANDS"
Homebrew, like \fBgit\fR(1), supports ext... | true |
Other | Homebrew | brew | 76f04799692ac896908bf2db21b9bad16769c2e3.json | --repository: move help to documentation comment | Library/Homebrew/cmd/--repository.rb | @@ -1,3 +1,10 @@
+#: * `--repository`:
+#: Display where Homebrew's `.git` directory is located. For standard installs,
+#: the `prefix` and `repository` are the same directory.
+#:
+#: * `--repository` <user>`/`<repo>:
+#: Display where tap <user>`/`<repo>'s directory is located.
+
require "tap"
module ... | true |
Other | Homebrew | brew | 76f04799692ac896908bf2db21b9bad16769c2e3.json | --repository: move help to documentation comment | Library/Homebrew/manpages/brew.1.md.erb | @@ -50,13 +50,6 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
<%= commands.join("\n") %>
- * `--repository`:
- Display where Homebrew's `.git` directory is located. For standard installs,
- the `prefix` and `repository` are the same directory.
-
- * `--repository` <user... | true |
Other | Homebrew | brew | 6931e9421a48e486f187b42a1c7789e742bcb1b5.json | --prefix: move help to documentation comment | Library/Homebrew/cmd/--prefix.rb | @@ -1,3 +1,9 @@
+#: * `--prefix`:
+#: Display Homebrew's install path. *Default:* `/usr/local`
+#:
+#: * `--prefix` <formula>:
+#: Display the location in the cellar where <formula> is or would be installed.
+
module Homebrew
def __prefix
if ARGV.named.empty? | true |
Other | Homebrew | brew | 6931e9421a48e486f187b42a1c7789e742bcb1b5.json | --prefix: move help to documentation comment | Library/Homebrew/manpages/brew.1.md.erb | @@ -50,12 +50,6 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
<%= commands.join("\n") %>
- * `--prefix`:
- Display Homebrew's install path. *Default:* `/usr/local`
-
- * `--prefix` <formula>:
- Display the location in the cellar where <formula> is or would be installed.... | true |
Other | Homebrew | brew | a3352c000e488be4a98c0c973784a049b5b2a060.json | --env: move help to documentation comment | Library/Homebrew/cmd/--env.rb | @@ -1,3 +1,6 @@
+#: * `--env`:
+#: Show a summary of the Homebrew build environment.
+
require "extend/ENV"
require "build_environment"
| true |
Other | Homebrew | brew | a3352c000e488be4a98c0c973784a049b5b2a060.json | --env: move help to documentation comment | Library/Homebrew/manpages/brew.1.md.erb | @@ -50,9 +50,6 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
<%= commands.join("\n") %>
- * `--env`:
- Show a summary of the Homebrew build environment.
-
* `--prefix`:
Display Homebrew's install path. *Default:* `/usr/local`
| true |
Other | Homebrew | brew | 046b4818069e4f5382edf256fa1d19e28d896309.json | --cellar: move help to documentation comment | Library/Homebrew/cmd/--cellar.rb | @@ -1,3 +1,11 @@
+#: * `--cellar`:
+#: Display Homebrew's Cellar path. *Default:* `$(brew --prefix)/Cellar`, or if
+#: that directory doesn't exist, `$(brew --repository)/Cellar`.
+#:
+#: * `--cellar` <formula>:
+#: Display the location in the cellar where <formula> would be installed,
+#: without any sor... | true |
Other | Homebrew | brew | 046b4818069e4f5382edf256fa1d19e28d896309.json | --cellar: move help to documentation comment | Library/Homebrew/manpages/brew.1.md.erb | @@ -50,14 +50,6 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
<%= commands.join("\n") %>
- * `--cellar`:
- Display Homebrew's Cellar path. *Default:* `$(brew --prefix)/Cellar`, or if
- that directory doesn't exist, `$(brew --repository)/Cellar`.
-
- * `--cellar` <formul... | true |
Other | Homebrew | brew | bab823288fbfbf8cd2cfa9fe5e71205e8afc938e.json | --cache: move help to documentation comment | Library/Homebrew/cmd/--cache.rb | @@ -1,3 +1,9 @@
+#: * `--cache`:
+#: Display Homebrew's download cache. See also `HOMEBREW_CACHE`.
+#:
+#: * `--cache` <formula>:
+#: Display the file or directory used to cache <formula>.
+
require "cmd/fetch"
module Homebrew | true |
Other | Homebrew | brew | bab823288fbfbf8cd2cfa9fe5e71205e8afc938e.json | --cache: move help to documentation comment | Library/Homebrew/manpages/brew.1.md.erb | @@ -50,12 +50,6 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
<%= commands.join("\n") %>
- * `--cache`:
- Display Homebrew's download cache. See also `HOMEBREW_CACHE`.
-
- * `--cache` <formula>:
- Display the file or directory used to cache <formula>.
-
* `--cellar`:... | true |
Other | Homebrew | brew | d183ff8065aafd3def71f9c9c728a3a92c1c4742.json | tests: fix Ruby 1.8 syntax warnings
In `Library/Homebrew/test/`:
test_integration_cmds.rb:431: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:502: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:507: warning: (...) interpreted as grouped expression
test_integration... | Library/Homebrew/test/test_integration_cmds.rb | @@ -412,8 +412,8 @@ def install
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
cmd("upgrade")
- assert (HOMEBREW_CELLAR/"testball/0.1").directory?,
- "The latest version directory should be created"
+ assert((HOMEBREW_CELLAR/"testball/0.1").directory?,
+ "The latest version directory should b... | false |
Other | Homebrew | brew | 799d3aec1575509550b122cd94b71ae45a5f5b8b.json | test-bot: simplify the logic
Closes #115.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/cmd/test-bot.rb | @@ -906,20 +906,13 @@ def sanitize_ARGV_and_ENV
def test_bot
sanitize_ARGV_and_ENV
- p ARGV
tap = resolve_test_tap
- if tap.installed?
- # make sure Tap is not a shallow clone.
- # bottle revision and bottle upload rely on full clone.
- if (tap.path/".git/shallow").exist?
- ... | false |
Other | Homebrew | brew | da34fba151ee33c1a2e14ab21ee0dc4ea451cc0f.json | test-bot: check all dependents for broken dylibs
Pulls 'brew linkage' in to main brew repo as a dev-cmd, and has test-bot
use it to detect dylib breakage, which usually means a revision bump is
needed. Checks all dependents, not just those with a 'test do' block
defined, since we can do this without formula support.
... | Library/Homebrew/cmd/test-bot.rb | @@ -513,7 +513,8 @@ def formula(formula_name)
dependents -= @formulae
dependents = dependents.map { |d| Formulary.factory(d) }
- testable_dependents = dependents.select { |d| d.test_defined? && d.bottled? }
+ bottled_dependents = dependents.select { |d| d.bottled? }
+ testable_dependents ... | true |
Other | Homebrew | brew | da34fba151ee33c1a2e14ab21ee0dc4ea451cc0f.json | test-bot: check all dependents for broken dylibs
Pulls 'brew linkage' in to main brew repo as a dev-cmd, and has test-bot
use it to detect dylib breakage, which usually means a revision bump is
needed. Checks all dependents, not just those with a 'test do' block
defined, since we can do this without formula support.
... | Library/Homebrew/dev-cmd/linkage.rb | @@ -0,0 +1,125 @@
+#
+# Description: check linkage of installed keg
+# Usage:
+# brew linkage <formulae>
+#
+# Only works on installed formulae. An error is raised if it is run on uninstalled
+# formulae.
+#
+# Options:
+# --test - testing version: only display broken libs; exit non-zero if any
+# ... | true |
Other | Homebrew | brew | 19fba42c69de00888461a14ab75d3e3bb2b3fc13.json | Xcode: update version detection for 2.x | Library/Homebrew/os/mac/xcode.rb | @@ -85,6 +85,13 @@ def uncached_version
if File.file? path
Utils.popen_read(path, "-version") =~ /Xcode (\d(\.\d)*)/
return $1 if $1
+
+ # Xcode 2.x's xcodebuild has a different version string
+ Utils.popen_read(path, "-version") =~ /DevToolsCore-(\d+\.\d)/
+ ... | false |
Other | Homebrew | brew | c6536066dc39da653d265640c6ba6046bb5def98.json | ARGV: remove unused 'usage' method
Also remove related helper method `Homebrew.help_s`. | Library/Homebrew/cmd/help.rb | @@ -58,10 +58,6 @@ def help(cmd = nil, empty_argv = false)
exit 0
end
- def help_s
- HOMEBREW_HELP
- end
-
private
def help_for_command(cmd) | true |
Other | Homebrew | brew | c6536066dc39da653d265640c6ba6046bb5def98.json | ARGV: remove unused 'usage' method
Also remove related helper method `Homebrew.help_s`. | Library/Homebrew/extend/ARGV.rb | @@ -198,11 +198,6 @@ def switch?(char)
options_only.any? { |arg| arg.scan("-").size == 1 && arg.include?(char) }
end
- def usage
- require "cmd/help"
- Homebrew.help_s
- end
-
def cc
value "cc"
end | true |
Other | Homebrew | brew | 3680c4667f1a47000c0152ca34bc3af7c41825ac.json | man: replace split header/footer with ERB template | Library/Homebrew/cmd/man.rb | @@ -1,4 +1,5 @@
require "formula"
+require "erb"
module Homebrew
SOURCE_PATH = HOMEBREW_LIBRARY_PATH/"manpages"
@@ -38,22 +39,19 @@ def regenerate_man_pages
end
def build_man_page
- header = (SOURCE_PATH/"header.1.md").read
- footer = (SOURCE_PATH/"footer.1.md").read
+ template = (SOURCE_PATH/"b... | true |
Other | Homebrew | brew | 3680c4667f1a47000c0152ca34bc3af7c41825ac.json | man: replace split header/footer with ERB template | Library/Homebrew/manpages/brew.1.md.erb | @@ -1,4 +1,43 @@
+brew(1) -- The missing package manager for OS X
+===============================================
+## SYNOPSIS
+
+`brew` `--version`<br>
+`brew` <command> [`--verbose`|`-v`] [<options>] [<formula>] ...
+
+## DESCRIPTION
+
+Homebrew is the easiest and most flexible way to install the UNIX tools Apple
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.