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
929fd12650b5f01f7f5aee1338cc25d993f59389.json
Remove unused method
Library/Homebrew/os/mac.rb
@@ -76,10 +76,6 @@ def default_compiler end end - def default_cxx_stdlib - version >= :mavericks ? :libcxx : :libstdcxx - end - def gcc_40_build_version @gcc_40_build_version ||= if (path = locate("gcc-4.0"))
false
Other
Homebrew
brew
a4cf3c273b1a78994c823b2c10eeb13a94ffd7a5.json
xcode: update clang version Closes Homebrew/homebrew#41095. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/Homebrew/os/mac/xcode.rb
@@ -119,7 +119,8 @@ def uncached_version when 51 then "5.1" when 60 then "6.0" when 61 then "6.1" - else "6.1" + when 70 then "7.0" + else "7.0" end end end @@ -162,7 +163,7 @@ def installed? def latest_v...
false
Other
Homebrew
brew
e40b73521709189c7d95169ff88939179d45d665.json
Decouple detect_stdlibs from ENV I want to decouple from the global ENV constant as much as possible so that eventually we can change the build environment implementation. detect_stdlibs only cares about the compiler, not the whole ENV.
Library/Homebrew/build.rb
@@ -128,7 +128,7 @@ def install formula.install - stdlibs = detect_stdlibs + stdlibs = detect_stdlibs(ENV.compiler) Tab.create(formula, ENV.compiler, stdlibs.first, formula.build).write # Find and link metafiles @@ -138,9 +138,9 @@ def install end end - def dete...
false
Other
Homebrew
brew
2bc40ff385c2fecea1e26230a8c6e8121bc66bae.json
Pull complex condition out of loop
Library/Homebrew/cmd/outdated.rb
@@ -39,8 +39,10 @@ def formulae_to_check end def print_outdated + verbose = ($stdout.tty? || ARGV.verbose?) && !ARGV.flag?("--quiet") + outdated_brews(formulae_to_check) do |f, versions| - if ($stdout.tty? || ARGV.verbose?) && !ARGV.flag?("--quiet") + if verbose puts "#{f.full_name} (...
false
Other
Homebrew
brew
75642e6271205d8c3ac9436e67cb4d6ffc0f32de.json
Use Dir.mktmpdir in doctor This matches how we create temporary directories elsewhere.
Library/Homebrew/cmd/doctor.rb
@@ -809,7 +809,7 @@ def check_for_multiple_volumes # Find the volumes for the TMP folder & HOMEBREW_CELLAR real_cellar = HOMEBREW_CELLAR.realpath - tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXXXX` }.strip + tmp = Pathname.new(Dir.mktmpdir("doctor", HOMEBREW_TEMP))...
false
Other
Homebrew
brew
5e7edbbd3c7ee5fa29ee9907a67e6a79998a90a5.json
Ask the exception for the formula name
Library/Homebrew/extend/ENV/shared.rb
@@ -203,9 +203,9 @@ def gcc_version_formula(name) def warn_about_non_apple_gcc(name) begin gcc_formula = gcc_version_formula(name) - rescue FormulaUnavailableError + rescue FormulaUnavailableError => e raise <<-EOS.undent - Homebrew GCC requested, but formula #{name.delete(".-")} not fo...
false
Other
Homebrew
brew
87e77350125602e6114e43ccc349f0287f8f5349.json
Ask the formula object for the opt path
Library/Homebrew/extend/ENV/shared.rb
@@ -192,8 +192,9 @@ def gcc_version_formula(name) version = name[GNU_GCC_REGEXP, 1] gcc_version_name = "gcc#{version.delete('.')}" - if HOMEBREW_PREFIX.join("opt", "gcc", "bin", name).exist? - Formulary.factory("gcc") + gcc = Formulary.factory("gcc") + if gcc.opt_bin.join(name).exist? + g...
false
Other
Homebrew
brew
7a75bbd85a6abc9a5828d7d48aa13a27a43432e4.json
download_strategy: fix url reassign We need reassign url after urls are inspected.
Library/Homebrew/download_strategy.rb
@@ -274,11 +274,11 @@ def fetch urls = actual_urls unless urls.empty? ohai "Downloading from #{urls.last}" - @url = urls.last if !ENV["HOMEBREW_NO_INSECURE_REDIRECT"].nil? && @url.start_with?("https://") && urls.any? { |u| !u.start_with? "https://" } raise "H...
false
Other
Homebrew
brew
3f11f1a0def50bba3349c0dc948f84c8bc82eb04.json
Eliminate special case for core gcc
Library/Homebrew/extend/ENV/shared.rb
@@ -221,21 +221,10 @@ def warn_about_non_apple_gcc(name) EOS end - if gcc_formula.name == "gcc" - return if gcc_formula.opt_prefix.exist? + unless gcc_formula.opt_prefix.exist? raise <<-EOS.undent - The Homebrew GCC was not installed. - You must: - brew install gcc...
false
Other
Homebrew
brew
1bba5fd88af811064d7f66dda57ac3127bdda05c.json
Pass full match to warn_about_non_apple_gcc
Library/Homebrew/extend/ENV/shared.rb
@@ -98,10 +98,10 @@ def fcflags; self['FCFLAGS']; end def compiler @compiler ||= if (cc = ARGV.cc) - warn_about_non_apple_gcc($1) if cc =~ GNU_GCC_REGEXP + warn_about_non_apple_gcc($&) if cc =~ GNU_GCC_REGEXP fetch_compiler(cc, "--cc") elsif (cc = homebrew_cc) - warn_about_non...
true
Other
Homebrew
brew
1bba5fd88af811064d7f66dda57ac3127bdda05c.json
Pass full match to warn_about_non_apple_gcc
Library/Homebrew/extend/ENV/std.rb
@@ -56,7 +56,7 @@ def setup_build_environment(formula=nil) send(compiler) if cc =~ GNU_GCC_REGEXP - gcc_formula = gcc_version_formula($1) + gcc_formula = gcc_version_formula($&) append_path "PATH", gcc_formula.opt_bin.to_s end
true
Other
Homebrew
brew
1bba5fd88af811064d7f66dda57ac3127bdda05c.json
Pass full match to warn_about_non_apple_gcc
Library/Homebrew/extend/ENV/super.rb
@@ -125,7 +125,7 @@ def determine_path end paths << apple_gcc42.opt_bin.to_s if apple_gcc42 when GNU_GCC_REGEXP - gcc_formula = gcc_version_formula($1) + gcc_formula = gcc_version_formula($&) paths << gcc_formula.opt_bin.to_s end
true
Other
Homebrew
brew
2d8c307a3cfdb85dd462ab6acc0f1d24015b1a38.json
README: add PGP key Closes Homebrew/homebrew#40914. Signed-off-by: Xu Cheng <xucheng@me.com>
README.md
@@ -19,6 +19,11 @@ Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/homebre ## Security Please report security issues to security@brew.sh. +This is our PGP key which is valid until June 17, 2016. +* Key ID: `CE59E297` +* Fingeprint: `C657 8F76 2E23 441E C879 EC5C E33A 3D3C CE59 E297` +* Ful...
false
Other
Homebrew
brew
60b70c993127c79f0cc7532ce159902d39f1aa5d.json
download_strategy: remove extra colon Closes Homebrew/homebrew#40920. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/download_strategy.rb
@@ -273,7 +273,7 @@ def fetch unless cached_location.exist? urls = actual_urls unless urls.empty? - ohai "Downloading from: #{urls.last}" + ohai "Downloading from #{urls.last}" if !ENV["HOMEBREW_NO_INSECURE_REDIRECT"].nil? && @url.start_with?("https://") && urls.any?...
false
Other
Homebrew
brew
ec1727a1bed5c431941972aeae064b6345e51321.json
Remove backports for Ruby 1.8.6 refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327, mistydemeo/tigerbrew#334
Library/Homebrew/extend/enumerable.rb
@@ -1,7 +0,0 @@ -module Enumerable - def group_by - inject({}) do |h, e| - h.fetch(yield(e)) { |k| h[k] = [] } << e; h - end - end unless method_defined?(:group_by) -end
true
Other
Homebrew
brew
ec1727a1bed5c431941972aeae064b6345e51321.json
Remove backports for Ruby 1.8.6 refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327, mistydemeo/tigerbrew#334
Library/Homebrew/extend/string.rb
@@ -15,33 +15,6 @@ def undent # EOS alias_method :undent_________________________________________________________72, :undent - def start_with?(*prefixes) - prefixes.any? do |prefix| - if prefix.respond_to?(:to_str) - prefix = prefix.to_str - self[0, prefix.length] == prefix ...
true
Other
Homebrew
brew
ec1727a1bed5c431941972aeae064b6345e51321.json
Remove backports for Ruby 1.8.6 refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327, mistydemeo/tigerbrew#334
Library/Homebrew/extend/symbol.rb
@@ -1,5 +0,0 @@ -class Symbol - def to_proc - proc { |*args| args.shift.send(self, *args) } - end unless method_defined?(:to_proc) -end
true
Other
Homebrew
brew
ec1727a1bed5c431941972aeae064b6345e51321.json
Remove backports for Ruby 1.8.6 refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327, mistydemeo/tigerbrew#334
Library/Homebrew/global.rb
@@ -3,8 +3,6 @@ require 'extend/pathname' require 'extend/ARGV' require 'extend/string' -require 'extend/symbol' -require 'extend/enumerable' require 'os' require 'utils' require 'exceptions'
true
Other
Homebrew
brew
09f8c54f8388412250a6e847989992a78953b63f.json
Move some constants from env to compiler constants
Library/Homebrew/compilers.rb
@@ -1,6 +1,15 @@ module CompilerConstants GNU_GCC_VERSIONS = %w[4.3 4.4 4.5 4.6 4.7 4.8 4.9 5] GNU_GCC_REGEXP = /^gcc-(4\.[3-9]|5)$/ + COMPILER_SYMBOL_MAP = { + "gcc-4.0" => :gcc_4_0, + "gcc-4.2" => :gcc, + "llvm-gcc" => :llvm, + "clang" => :clang, + } + + COMPILERS = COMPILER_SYMBOL_MAP.valu...
true
Other
Homebrew
brew
09f8c54f8388412250a6e847989992a78953b63f.json
Move some constants from env to compiler constants
Library/Homebrew/extend/ENV/shared.rb
@@ -7,16 +7,6 @@ module SharedEnvExtension CC_FLAG_VARS = %w{CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS} FC_FLAG_VARS = %w{FCFLAGS FFLAGS} - COMPILER_SYMBOL_MAP = { - "gcc-4.0" => :gcc_4_0, - "gcc-4.2" => :gcc, - "llvm-gcc" => :llvm, - "clang" => :clang, - } - - COMPILERS = COMPILER_SYMBOL_MAP.va...
true
Other
Homebrew
brew
d770a874e466d1e9a8df7672b37102291056cae1.json
audit: add benchmark inject code Closes Homebrew/homebrew#40847. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/audit.rb
@@ -20,6 +20,26 @@ def audit ENV.activate_extensions! ENV.setup_build_environment + if ARGV.switch? "D" + FormulaAuditor.module_eval do + instance_methods.grep(/audit_/).map do |name| + method = instance_method(name) + define_method(name) do |*args, &block| + begi...
false
Other
Homebrew
brew
89b20cf61e2226d4ef9e35beb633c1fa3166dbfe.json
tap_migrations: move some x11 to boneyard. https://github.com/Homebrew/homebrew-boneyard/pull/53
Library/Homebrew/tap_migrations.rb
@@ -62,7 +62,7 @@ "fox" => "homebrew/x11", "freeglut" => "homebrew/x11", "freerdp" => "homebrew/x11", - "fsv" => "homebrew/x11", + "fsv" => "homebrew/boneyard", "fuse-zip" => "homebrew/fuse", "fuse4x-kext" => "homebrew/fuse", "fuse4x" => "homebrew/fuse", @@ -77,7 +77,7 @@ "git-flow-clone" => "hom...
false
Other
Homebrew
brew
2f44990ea9e0439db24c8b6ef932c608f3f0069b.json
Revert "audit: add benchmark inject code" This reverts commit fb23d603ded2796299ed7fc2f4ffee22870b7ea6.
Library/Homebrew/cmd/audit.rb
@@ -20,26 +20,6 @@ def audit ENV.activate_extensions! ENV.setup_build_environment - if ARGV.switch? "D" - FormulaAuditor.module_eval do - instance_methods.grep(/audit_/).map do |name| - method = instance_method(name) - define_method(name) do |*args, &block| - begi...
false
Other
Homebrew
brew
7a59a3ee37966ad2378a3d96fbedde42506c5e00.json
audit: add benchmark inject code
Library/Homebrew/cmd/audit.rb
@@ -20,6 +20,26 @@ def audit ENV.activate_extensions! ENV.setup_build_environment + if ARGV.switch? "D" + FormulaAuditor.module_eval do + instance_methods.grep(/audit_/).map do |name| + method = instance_method(name) + define_method(name) do |*args, &block| + begi...
false
Other
Homebrew
brew
38974ed6b52cd65e6ab6e6b150a6b00cd80bbc4f.json
Run tests for both build environments
Library/Homebrew/test/test_ENV.rb
@@ -1,10 +1,9 @@ require 'testing_env' require 'extend/ENV' -class EnvironmentTests < Homebrew::TestCase +module SharedEnvTests def setup @env = {}.extend(EnvActivation) - @env.activate_extensions! end def test_switching_compilers @@ -105,9 +104,7 @@ def test_prepend_path @env.prepend_path '...
false
Other
Homebrew
brew
4648aa54c03845c0a3f4e00cba4879ee26ba91c7.json
search --desc: cache the query regexp Closes Homebrew/homebrew#40795. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/cmd/search.rb
@@ -23,8 +23,9 @@ def search exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all&section=all" elsif ARGV.include? '--desc' query = ARGV.next + rx = query_regexp(query) Formula.each do |formula| - if formula.desc =~ query_regexp(query) + ...
false
Other
Homebrew
brew
023bddbd046c7dce0f9e56344f9fb5e258e0f59f.json
Make UnsafeSubversionDownloadStrategy a no-op
Library/Homebrew/download_strategy.rb
@@ -496,16 +496,12 @@ def get_externals end end - def fetch_args - [] - end - def fetch_repo target, url, revision=nil, ignore_externals=false # Use "svn up" when the repository already exists locally. # This saves on bandwidth and will have a similar effect to verifying the # cache as ...
false
Other
Homebrew
brew
8bdc7b92d8f9b5bff1207b362295abc226d1d79c.json
Call expand_path on the value of HOMEBREW_CACHE Fixes Homebrew/homebrew#40752.
Library/Homebrew/config.rb
@@ -1,6 +1,6 @@ def cache - if ENV['HOMEBREW_CACHE'] - Pathname.new(ENV['HOMEBREW_CACHE']) + if ENV["HOMEBREW_CACHE"] + Pathname.new(ENV["HOMEBREW_CACHE"]).expand_path else # we do this for historic reasons, however the cache *should* be the same # directory whichever user is used and whatever ins...
false
Other
Homebrew
brew
7b733b408799c6a44343b5e5d5b68e6f26842783.json
Add pkgconfig files for 10.11 Fixes Homebrew/homebrew#40656.
Library/ENV/pkgconfig/10.10/libcurl.pc
@@ -28,7 +28,7 @@ exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP" -supported_features="SSL IPv6 libz AsynchDNS NTLM" +supported_features="SSL IPv6 libz AsynchDNS NTLM N...
true
Other
Homebrew
brew
7b733b408799c6a44343b5e5d5b68e6f26842783.json
Add pkgconfig files for 10.11 Fixes Homebrew/homebrew#40656.
Library/ENV/pkgconfig/10.11/libcurl.pc
@@ -0,0 +1,39 @@ +#*************************************************************************** +# _ _ ____ _ +# Project ___| | | | _ \| | +# / __| | | | |_) | | +# | (__| |_| | _ <| |___ +# ...
true
Other
Homebrew
brew
7b733b408799c6a44343b5e5d5b68e6f26842783.json
Add pkgconfig files for 10.11 Fixes Homebrew/homebrew#40656.
Library/ENV/pkgconfig/10.11/libexslt.pc
@@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + + +Name: libexslt +Version: 0.8.17 +Description: EXSLT Extension library +Requires: libxml-2.0 +Libs: -L${libdir} -lexslt -lxslt -lxml2 -lz -lpthread -licucore -lm +Cflags: -I${includedir}
true
Other
Homebrew
brew
7b733b408799c6a44343b5e5d5b68e6f26842783.json
Add pkgconfig files for 10.11 Fixes Homebrew/homebrew#40656.
Library/ENV/pkgconfig/10.11/libxml-2.0.pc
@@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include +modules=1 + +Name: libXML +Version: 2.9.0 +Description: libXML library version2. +Requires: +Libs: -L${libdir} -lxml2 +Libs.private: -lpthread -lz -lm +Cflags: -I${includedir}/libxml2
true
Other
Homebrew
brew
7b733b408799c6a44343b5e5d5b68e6f26842783.json
Add pkgconfig files for 10.11 Fixes Homebrew/homebrew#40656.
Library/ENV/pkgconfig/10.11/libxslt.pc
@@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + + +Name: libxslt +Version: 1.1.28 +Description: XSLT library version 2. +Requires: libxml-2.0 +Libs: -L${libdir} -lxslt -lxml2 -lz -lpthread -licucore -lm +Cflags: -I${includedir}
true
Other
Homebrew
brew
7b733b408799c6a44343b5e5d5b68e6f26842783.json
Add pkgconfig files for 10.11 Fixes Homebrew/homebrew#40656.
Library/ENV/pkgconfig/10.11/sqlite3.pc
@@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: SQLite +Description: SQL database engine +Version: 3.8.8 +Libs: -L${libdir} -lsqlite3 +Libs.private: +Cflags: -I${includedir}
true
Other
Homebrew
brew
7b733b408799c6a44343b5e5d5b68e6f26842783.json
Add pkgconfig files for 10.11 Fixes Homebrew/homebrew#40656.
Library/ENV/pkgconfig/10.11/zlib.pc
@@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +sharedlibdir=${libdir} +includedir=${prefix}/include + +Name: zlib +Description: zlib compression library +Version: 1.2.5 + +Requires: +Libs: -L${libdir} -L${sharedlibdir} -lz +Cflags: -I${includedir}
true
Other
Homebrew
brew
621a7ada9583544469ddb696d076d0237cb25bb4.json
Remove reference to "open" command Closes Homebrew/homebrew#40706.
Library/Homebrew/cmd/help.rb
@@ -17,7 +17,7 @@ Brewing: brew create [URL [--no-fetch]] brew edit [FORMULA...] - open https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md + https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md Further help: man brew
false
Other
Homebrew
brew
a047fc08d6353949441f65b1efd5b0359ce027a9.json
audit: enforce http for gnu ftpmirror
Library/Homebrew/cmd/audit.rb
@@ -941,6 +941,11 @@ def audit_urls problem "Please use \"http://ftpmirror.gnu.org\" instead of #{url}." end + # GNU's ftpmirror does NOT support SSL/TLS. + if url =~ %r[^https://ftpmirror\.gnu\.org/] + problem "Please use http:// for #{url}" + end + if mirrors.include?(url) prob...
false
Other
Homebrew
brew
778c25b4589d731e58dc4caa1f51f75c1a5e77b8.json
brew: warn about 10.11 unsupported Issue a warning about Homebrew's very basic support for 10.11 at this point in time on each run of `brew`. Closes Homebrew/homebrew#40536. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/brew.rb
@@ -50,6 +50,15 @@ EOABORT end +if OS.mac? && MacOS.version == "10.11" + opoo <<-EOS.undent + Although Homebrew has added initial recognition of 10.11, it is unsupported. + You may encounter breakage or other failure and there is no guarantee + Homebrew can resolve those issues until El Capitan is stabl...
false
Other
Homebrew
brew
8f852380941f42b41b89415a500aeb30ecd98e83.json
remove incorrect tag for Tap document
Library/Homebrew/tap.rb
@@ -4,7 +4,6 @@ # case, `user/repo` will be used as the {#name} of this {Tap}, where # {#user} represents Github username and {#repo} represents repository # name without leading `homebrew-`. -# @abstract class Tap TAP_DIRECTORY = HOMEBREW_LIBRARY/"Taps"
false
Other
Homebrew
brew
5e3a1a7b218fe38cea0c66fce02048169cc80c2b.json
Update tap documentation. Closes Homebrew/homebrew#40481. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/manpages/brew.1.md
@@ -345,12 +345,24 @@ Note that these flags should only appear after a command. * `switch` <name> <version>: Symlink all of the specific <version> of <name>'s install to Homebrew prefix. - * `tap` [--full] [<tap>]: - Tap a new formula repository from GitHub, or list existing taps. + * `tap` [--full] [<us...
true
Other
Homebrew
brew
5e3a1a7b218fe38cea0c66fce02048169cc80c2b.json
Update tap documentation. Closes Homebrew/homebrew#40481. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
share/doc/homebrew/brew-tap.md
@@ -1,44 +1,65 @@ # brew tap -The `brew tap` command is powerful, but has a few subtleties worth describing. -**tl;dr** `brew tap` allows you to add more GitHub repos to the list of formulae that `brew` tracks, updates and installs from. When naming tap repos and formulas, however, there are a few gotchas to beware ...
true
Other
Homebrew
brew
5e3a1a7b218fe38cea0c66fce02048169cc80c2b.json
Update tap documentation. Closes Homebrew/homebrew#40481. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
share/man/man1/brew.1
@@ -43,9 +43,8 @@ Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is su . .SH "COMMANDS" . -.TP -\fBaudit\fR [\-\-strict] [\fIformulae\fR] -Check \fIformulae\fR for Homebrew coding style violations\. This should be run before submitting a new formula\. +.IP "\(bu" 4 +\fBaudit\fR [\-\-stric...
true
Other
Homebrew
brew
be9c5d5d16332ffa888853745c7792a0c8bffd9c.json
Remove some 10.5 hacks
Library/Homebrew/download_strategy.rb
@@ -488,8 +488,6 @@ def fetch_repo target, url, revision=nil, ignore_externals=false # cache as it will make any changes to get the right revision. svncommand = target.directory? ? 'up' : 'checkout' args = ['svn', svncommand] + fetch_args - # SVN shipped with XCode 3.1.4 can't force a checkout. - a...
true
Other
Homebrew
brew
be9c5d5d16332ffa888853745c7792a0c8bffd9c.json
Remove some 10.5 hacks
Library/Homebrew/utils.rb
@@ -187,8 +187,6 @@ def curl *args flags = flags.delete("#") if ARGV.verbose? args = [flags, HOMEBREW_USER_AGENT, *args] - # See https://github.com/Homebrew/homebrew/issues/6103 - args << "--insecure" if MacOS.version < "10.6" args << "--verbose" if ENV['HOMEBREW_CURL_VERBOSE'] args << "--silent" unless...
true
Other
Homebrew
brew
bd0f1794787a676b38bd6639bd56ff0bb2ed7c4a.json
Remove obsolete doctor check We don't support 10.5 anymore, and tigerbrew doesn't have this check anymore, either.
Library/Homebrew/cmd/doctor.rb
@@ -1001,23 +1001,6 @@ def check_git_status end end -def check_git_ssl_verify - if MacOS.version <= :leopard && !ENV['GIT_SSL_NO_VERIFY'] then <<-EOS.undent - The version of libcurl provided with Mac OS X #{MacOS.version} has outdated - SSL certificates. - - This can cause problems when running Homebrew...
false
Other
Homebrew
brew
c704142590ef6a5699518a2f85b90d8cd42fe2a8.json
Add tip about devel version bumps Tip mentioned in https://github.com/Homebrew/homebrew/pull/40570 Closes Homebrew/homebrew#40578. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md
@@ -15,7 +15,7 @@ To make a new branch and submit it for review: 4. Make your changes to any Homebrew formula with `brew edit` (following all the requirements in the [Formula Cookbook](Formula-Cookbook.md)). Run `brew audit ANY_CHANGED_FORMULA`, `brew tests` and `brew install ANY_CHANGED_FORMULA && brew test ANY_CHANG...
false
Other
Homebrew
brew
787934ed6fcf1f0b7a6240f8daf6d8908cf09650.json
add brew tap-info
Library/Homebrew/cmd/tap-info.rb
@@ -0,0 +1,59 @@ +require "cmd/tap" + +module Homebrew + def tap_info + if ARGV.include? "--installed" + taps = Tap + else + taps = ARGV.named.map do |name| + Tap.new(*tap_args(name)) + end + end + + if ARGV.json == "v1" + print_tap_json(taps) + else + print_tap_info(taps...
false
Other
Homebrew
brew
44383fecb865014142c8934eacf2c90837a5b57c.json
(un)tap/update/readall: use Tap class
Library/Homebrew/cmd/readall.rb
@@ -34,12 +34,9 @@ def readall if ARGV.named.empty? formulae = Formula.full_names else - user, repo = tap_args - user.downcase! - repo.downcase! - tap = HOMEBREW_LIBRARY/"Taps/#{user}/homebrew-#{repo}" - raise "#{tap} does not exist!" unless tap.directory? - tap.find_formu...
true
Other
Homebrew
brew
44383fecb865014142c8934eacf2c90837a5b57c.json
(un)tap/update/readall: use Tap class
Library/Homebrew/cmd/tap.rb
@@ -1,9 +1,9 @@ +require "tap" + module Homebrew def tap if ARGV.empty? - each_tap do |user, repo| - puts "#{user.basename}/#{repo.basename.sub("homebrew-", "")}" if (repo/".git").directory? - end + puts Tap.names elsif ARGV.first == "--repair" migrate_taps :force => true ...
true
Other
Homebrew
brew
44383fecb865014142c8934eacf2c90837a5b57c.json
(un)tap/update/readall: use Tap class
Library/Homebrew/cmd/untap.rb
@@ -4,26 +4,16 @@ module Homebrew def untap raise "Usage is `brew untap <tap-name>`" if ARGV.empty? - ARGV.each do |tapname| - user, repo = tap_args(tapname) + ARGV.named.each do |tapname| + tap = Tap.new(*tap_args(tapname)) - # We consistently downcase in tap to ensure we are not bitte...
true
Other
Homebrew
brew
44383fecb865014142c8934eacf2c90837a5b57c.json
(un)tap/update/readall: use Tap class
Library/Homebrew/cmd/update.rb
@@ -27,14 +27,14 @@ def update # this procedure will be removed in the future if it seems unnecessasry rename_taps_dir_if_necessary - each_tap do |user, repo| - repo.cd do - updater = Updater.new(repo) + Tap.each do |tap| + tap.path.cd do + updater = Updater.new(tap.path) ...
true
Other
Homebrew
brew
f7bcfe5115f92e5e88596bf77d34f9a954e4c4b0.json
add Tap class
Library/Homebrew/tap.rb
@@ -0,0 +1,97 @@ +class Tap + TAP_DIRECTORY = HOMEBREW_LIBRARY/"Taps" + + extend Enumerable + + attr_reader :user + attr_reader :repo + attr_reader :name + attr_reader :path + attr_reader :remote + + def initialize(user, repo, remote=nil) + # we special case homebrew so users don't have to shift in a termina...
false
Other
Homebrew
brew
ea167399a293ac0a14d09150e0479ae849f9b2b8.json
audit: fix index method for ruby 1.8 Per https://github.com/Homebrew/homebrew/pull/40472#issuecomment-110357915
Library/Homebrew/cmd/audit.rb
@@ -56,7 +56,7 @@ def audit class FormulaText def initialize path @text = path.open("rb", &:read) - @lines = @text.lines + @lines = @text.lines.to_a end def without_patch
false
Other
Homebrew
brew
8604799f1a320850ac564935265f414f93598599.json
audit: add rules on field order Closes Homebrew/homebrew#40472. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/audit.rb
@@ -56,6 +56,7 @@ def audit class FormulaText def initialize path @text = path.open("rb", &:read) + @lines = @text.lines end def without_patch @@ -77,6 +78,11 @@ def has_trailing_newline? def =~ regex regex =~ @text end + + def line_number regex + index = @lines.index { |line| line =~...
false
Other
Homebrew
brew
3c418cfb4eaa5eeafb3613172954c01aca831af1.json
bottle: add homepage and desc into regex Some formulae put `desc` field behind `url` which can make bottle block go to strange place. So let's add `homepage` and `desc` into bottle regex. Closes Homebrew/homebrew#40469. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/bottle.rb
@@ -250,18 +250,19 @@ def merge indent = s.slice(/^ +stable do/).length - "stable do".length string = s.sub!(/^ {#{indent}}stable do(.|\n)+?^ {#{indent}}end\n/m, '\0' + output + "\n") else - string = s.sub!(/( - \ {2}( ...
false
Other
Homebrew
brew
c6e1090c43f769e80c1aa98c2029f1eb466e0da4.json
requirement: allow access default_formula directly
Library/Homebrew/cmd/test-bot.rb
@@ -344,7 +344,7 @@ def satisfied_requirements? formula, spec, dependency=nil satisfied ||= requirement.satisfied? satisfied ||= requirement.optional? if !satisfied && requirement.default_formula? - default = Formula[requirement.class.default_formula] + default = Formula[req...
true
Other
Homebrew
brew
c6e1090c43f769e80c1aa98c2029f1eb466e0da4.json
requirement: allow access default_formula directly
Library/Homebrew/cmd/uses.rb
@@ -26,7 +26,7 @@ def uses Requirement.prune if ignores.any? { |ignore| req.send(ignore) } && !dependent.build.with?(req) end deps.any? { |dep| dep.to_formula.full_name == ff.full_name } || - reqs.any? { |req| req.name == ff.name || [ff.name, ff.full_name].include?(...
true
Other
Homebrew
brew
c6e1090c43f769e80c1aa98c2029f1eb466e0da4.json
requirement: allow access default_formula directly
Library/Homebrew/requirement.rb
@@ -9,10 +9,11 @@ class Requirement include Dependable - attr_reader :tags, :name, :cask, :download + attr_reader :tags, :name, :cask, :download, :default_formula alias_method :option_name, :name def initialize(tags=[]) + @default_formula = self.class.default_formula @cask ||= self.class.cask ...
true
Other
Homebrew
brew
e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json
update docs to use https urls Closes Homebrew/homebrew#40446. Signed-off-by: Xu Cheng <xucheng@me.com>
share/doc/homebrew/Formula-Cookbook.md
@@ -87,7 +87,7 @@ A more complete example-formula [cheat-sheet](https://github.com/Homebrew/homebr All you need to make a formula is a URL to the tarball. - brew create http://example.com/foo-0.1.tar.gz + brew create https://example.com/foo-0.1.tar.gz This creates: @@ -97,7 +97,7 @@ And opens it in your...
true
Other
Homebrew
brew
e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json
update docs to use https urls Closes Homebrew/homebrew#40446. Signed-off-by: Xu Cheng <xucheng@me.com>
share/doc/homebrew/Press.md
@@ -14,4 +14,4 @@ - [CouchDB: The Definitive Guide (Installing on OS X, Appendix B)](http://oreilly.com/catalog/9780596155902) - [Installing ActiveMQ on OS - X](http://activemq.apache.org/getting-started.html#GettingStarted-UsingHomebrewinstalleronOSX) + X](https://activemq.apache.org/getting-started.h...
true
Other
Homebrew
brew
e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json
update docs to use https urls Closes Homebrew/homebrew#40446. Signed-off-by: Xu Cheng <xucheng@me.com>
share/doc/homebrew/Querying-Brew.md
@@ -1,5 +1,5 @@ # Querying Brew -_In this document we will be using [jq](http://stedolan.github.io/jq/) to parse JSON, available from Homebrew using `brew install jq`._ +_In this document we will be using [jq](https://stedolan.github.io/jq/) to parse JSON, available from Homebrew using `brew install jq`._ ## Overvi...
true
Other
Homebrew
brew
e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json
update docs to use https urls Closes Homebrew/homebrew#40446. Signed-off-by: Xu Cheng <xucheng@me.com>
share/doc/homebrew/README.md
@@ -25,7 +25,7 @@ However! Fixing build issues is easier than you think: try In short: 1. [Fork Homebrew](https://github.com/Homebrew/homebrew/fork). -2. `brew create http://example.com/foo-0.1.tar.gz` +2. `brew create https://example.com/foo-0.1.tar.gz` 3. `git checkout -b foo` 4. `git commit Library/Formul...
true
Other
Homebrew
brew
e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json
update docs to use https urls Closes Homebrew/homebrew#40446. Signed-off-by: Xu Cheng <xucheng@me.com>
share/doc/homebrew/Troubleshooting.md
@@ -52,5 +52,5 @@ Thank you! [Gist]:https://gist.github.com [Apple Developer]:https://developer.apple.com/downloads -[Java Developer Update]:http://support.apple.com/kb/DL1572 +[Java Developer Update]:https://support.apple.com/kb/DL1572 [JDK 7]:https://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-install...
true
Other
Homebrew
brew
965e2f50c3e8490ffb799ed01d6b1e8b1a7c98cc.json
brew tap: allow tapping non-GitHub repositories. `brew tap` restricts users to GitHub and checks for private repos. I created `brew any-tap` to support a wider variety of taps. With very small changes (and no extra flags!), this change allows users to use `brew tap` with GitHub as they always have or add one extra ar...
Library/Homebrew/cmd/tap.rb
@@ -7,11 +7,13 @@ def tap elsif ARGV.first == "--repair" migrate_taps :force => true else - opoo "Already tapped!" unless install_tap(*tap_args) + user, repo = tap_args + clone_target = ARGV.named[1] + opoo "Already tapped!" unless install_tap(user, repo, clone_target) end e...
true
Other
Homebrew
brew
965e2f50c3e8490ffb799ed01d6b1e8b1a7c98cc.json
brew tap: allow tapping non-GitHub repositories. `brew tap` restricts users to GitHub and checks for private repos. I created `brew any-tap` to support a wider variety of taps. With very small changes (and no extra flags!), this change allows users to use `brew tap` with GitHub as they always have or add one extra ar...
Library/Homebrew/cmd/untap.rb
@@ -7,10 +7,10 @@ def untap ARGV.each do |tapname| user, repo = tap_args(tapname) - # we consistently downcase in tap to ensure we are not bitten by case-insensive - # filesystem issues. Which is the default on mac. The problem being the - # filesystem cares, but our regexps don't. So unles...
true
Other
Homebrew
brew
f4af8337149659eeabb5a85017b80a5c52c602fc.json
Revert "upgrade: announce usage of --all." This reverts commit 9032f165bec3d0c7452169093fab32578816043b. This seems to have been universally unpopular so let's revert it. Closes Homebrew/homebrew#40372. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/upgrade.rb
@@ -5,14 +5,7 @@ module Homebrew def upgrade Homebrew.perform_preinstall_checks - if ARGV.include?("--all") || ARGV.named.empty? - unless ARGV.include? "--all" - opoo <<-EOS.undent - brew upgrade with no arguments will change behaviour soon! - It currently upgrades all formula...
true
Other
Homebrew
brew
f4af8337149659eeabb5a85017b80a5c52c602fc.json
Revert "upgrade: announce usage of --all." This reverts commit 9032f165bec3d0c7452169093fab32578816043b. This seems to have been universally unpopular so let's revert it. Closes Homebrew/homebrew#40372. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/manpages/brew.1.md
@@ -403,15 +403,11 @@ Note that these flags should only appear after a command. If `--rebase` is specified then `git pull --rebase` is used. - * `upgrade [--all] [install-options]` [<formulae>]: + * `upgrade [install-options]` [<formulae>]: Upgrade outdated, unpinned brews. Options for the `insta...
true
Other
Homebrew
brew
f4af8337149659eeabb5a85017b80a5c52c602fc.json
Revert "upgrade: announce usage of --all." This reverts commit 9032f165bec3d0c7452169093fab32578816043b. This seems to have been universally unpopular so let's revert it. Closes Homebrew/homebrew#40372. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
share/man/man1/brew.1
@@ -432,16 +432,13 @@ Fetch the newest version of Homebrew and all formulae from GitHub using \fBgit\f If \fB\-\-rebase\fR is specified then \fBgit pull \-\-rebase\fR is used\. . .TP -\fBupgrade [\-\-all] [install\-options]\fR [\fIformulae\fR] +\fBupgrade [install\-options]\fR [\fIformulae\fR] Upgrade outdated, unp...
true
Other
Homebrew
brew
aa49da260082deb6d3ec3492d6c836e6ad709ba7.json
utils: prefer keg curl over system on 10.6 Closes Homebrew/homebrew#39927. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/utils.rb
@@ -175,7 +175,12 @@ def quiet_system cmd, *args end def curl *args - curl = Pathname.new '/usr/bin/curl' + brewed_curl = HOMEBREW_PREFIX/"opt/curl/bin/curl" + curl = if MacOS.version <= "10.6" && brewed_curl.exist? + brewed_curl + else + Pathname.new '/usr/bin/curl' + end raise "#{curl} is not execut...
false
Other
Homebrew
brew
de43ac75032e7a1170b0def6500dffb48dba9bf7.json
Add support for fish shell completions * Library/Homebrew/caveats.rb: add caveats comparable to other shells * Library/Homebrew/formula.rb: define completion directory along the conventions explained in the fish documentation for $fish_complete_path * Library/Homebrew/keg.rb: add fish shell to check function for ...
Library/Homebrew/caveats.rb
@@ -12,6 +12,7 @@ def caveats caveats << f.keg_only_text if f.keg_only? && f.respond_to?(:keg_only_text) caveats << bash_completion_caveats caveats << zsh_completion_caveats + caveats << fish_completion_caveats caveats << plist_caveats caveats << python_caveats caveats << app_caveats @@...
true
Other
Homebrew
brew
de43ac75032e7a1170b0def6500dffb48dba9bf7.json
Add support for fish shell completions * Library/Homebrew/caveats.rb: add caveats comparable to other shells * Library/Homebrew/formula.rb: define completion directory along the conventions explained in the fish documentation for $fish_complete_path * Library/Homebrew/keg.rb: add fish shell to check function for ...
Library/Homebrew/formula.rb
@@ -414,13 +414,19 @@ def var; HOMEBREW_PREFIX+'var' end # installed. # This is symlinked into `HOMEBREW_PREFIX` after installation or with # `brew link` for formulae that are not keg-only. - def bash_completion; prefix+'etc/bash_completion.d' end + def bash_completion; prefix+'etc/bash_completion.d' end ...
true
Other
Homebrew
brew
de43ac75032e7a1170b0def6500dffb48dba9bf7.json
Add support for fish shell completions * Library/Homebrew/caveats.rb: add caveats comparable to other shells * Library/Homebrew/formula.rb: define completion directory along the conventions explained in the fish documentation for $fish_complete_path * Library/Homebrew/keg.rb: add fish shell to check function for ...
Library/Homebrew/keg.rb
@@ -222,6 +222,7 @@ def completion_installed? shell dir = case shell when :bash then path.join("etc", "bash_completion.d") when :zsh then path.join("share", "zsh", "site-functions") + when :fish then path.join("share", "fish", "vendor_completions.d") end dir && dir.d...
true
Other
Homebrew
brew
ffd92a87c5e0503c1ca63c52d54332c2c93618c2.json
tab: allow load from file content
Library/Homebrew/tab.rb
@@ -31,7 +31,11 @@ def self.create(formula, compiler, stdlib, build) end def self.from_file path - attributes = Utils::JSON.load(File.read(path)) + from_file_content(File.read(path), path) + end + + def self.from_file_content content, path + attributes = Utils::JSON.load(content) attributes["tab...
false
Other
Homebrew
brew
296ca615103a9b4b59519e4f0e3b75a6bc6f9b03.json
test-bot: simplify the upload logic If the bottle is already published, let's fail directly. Also silent the curl output. Closes Homebrew/homebrew#40295. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/test-bot.rb
@@ -789,6 +789,14 @@ def test_bot version = formula.pkg_version bintray_package = Bintray.package formula_name + if system "curl", "-I", "--silent", "--fail", "--output", "/dev/null", + "#{BottleSpecification::DEFAULT_DOMAIN}/#{bintray_repo}/#{filename}" + raise <<-E...
false
Other
Homebrew
brew
bd5083f970e26b3978f26493300951f9be0fad75.json
tap_migrations: add fuse migrations
Library/Homebrew/tap_migrations.rb
@@ -1,17 +1,21 @@ TAP_MIGRATIONS = { "adobe-air-sdk" => "homebrew/binary", + "afuse" => "homebrew/fuse", "agedu" => "homebrew/head-only", "aimage" => "homebrew/boneyard", "aplus" => "homebrew/boneyard", "apple-gcc42" => "homebrew/dupes", "appledoc" => "homebrew/boneyard", "appswitch" => "homebrew...
false
Other
Homebrew
brew
9928754c2234ee146f49e9a3dac3af017490e7dd.json
cookbook: add an explicit version if necessary Closes Homebrew/homebrew#40247. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
share/doc/homebrew/Formula-Cookbook.md
@@ -342,6 +342,8 @@ Add aliases by creating symlinks in `Library/Aliases`. You can run `brew audit` to test formulae for adherence to Homebrew house style. This includes warnings for trailing whitespace, preferred URLs for certain source hosts, and a lot of other style issues. Fixing these warnings before committing...
false
Other
Homebrew
brew
d8f9bfa730370c22665bd6b0b649daa87b856c00.json
test-bot: remove obsolete tap --repair
Library/Homebrew/cmd/test-bot.rb
@@ -710,12 +710,8 @@ def test_bot # Tap repository if required, this is done before everything else # because Formula parsing and/or git commit hash lookup depends on it. - if tap - if !repository.directory? - safe_system "brew", "tap", tap - else - quiet_system "brew", "tap", "--...
false
Other
Homebrew
brew
10bc99ff7b9d80342a99feb6d5e015c3c2de8230.json
SoftwareSpec: add full_name field
Library/Homebrew/software_spec.rb
@@ -18,7 +18,7 @@ class SoftwareSpec "32-bit" => Option.new("32-bit", "Build 32-bit only"), } - attr_reader :name, :owner + attr_reader :name, :full_name, :owner attr_reader :build, :resources, :patches, :options attr_reader :deprecated_flags, :deprecated_options attr_reader :dependency_collector...
false
Other
Homebrew
brew
9a90dbd275c78be3db9d88cb0fcb0f6885219d88.json
Formula: add full_name variable
Library/Homebrew/formula.rb
@@ -28,6 +28,11 @@ class Formula # e.g. `this-formula` attr_reader :name + # The fully-qualified name of this {Formula}. + # For core formula it's the same as {#name}. + # e.g. `homebrew/tap-name/this-formula` + attr_reader :full_name + # The full path to this {Formula}. # e.g. `/usr/local/Library/For...
false
Other
Homebrew
brew
26d1683039508647de1adbe675cafb507216bcf1.json
audit: enforce gnome urls Closes Homebrew/homebrew#40172. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/audit.rb
@@ -892,6 +892,8 @@ def audit_urls problem "Please use https:// for #{p}" when %r[^http://search\.mcpan\.org/CPAN/(.*)]i problem "#{p} should be `https://cpan.metacpan.org/#{$1}`" + when %r[^(http|ftp)://ftp\.gnome\.org/pub/gnome/(.*)]i + problem "#{p} should be `https://download.gn...
false
Other
Homebrew
brew
0fc906b03d9d385a77512acd895520092e244c93.json
Remove another unused default argument
Library/Homebrew/formula_versions.rb
@@ -48,7 +48,7 @@ def formula_at_revision(rev) end end - def bottle_version_map(branch="HEAD") + def bottle_version_map(branch) map = Hash.new { |h, k| h[k] = [] } rev_list(branch) do |rev| formula_at_revision(rev) do |f|
false
Other
Homebrew
brew
f80748096df45534e6f38cdfb2ee83e1051cb56b.json
Remove unused default argument
Library/Homebrew/formula_versions.rb
@@ -15,7 +15,7 @@ def initialize(formula) @entry_name = formula.path.relative_path_from(repository).to_s end - def rev_list(branch="HEAD") + def rev_list(branch) repository.cd do Utils.popen_read("git", "rev-list", "--abbrev-commit", "--remove-empty", branch, "--", entry_name) do |io| y...
false
Other
Homebrew
brew
bc3bf75c6c6324476357198d9a7ddaa02bb6ecc4.json
New-Maintainer-Checklist: add new documentation.
share/doc/homebrew/New-Maintainer-Checklist.md
@@ -0,0 +1,49 @@ +# New Maintainer Checklist +**This is a guide used by existing maintainers to invite new maintainers. You might find it interesting but there's nothing here users should have to know.** + +So, there's someone who has been making consistently high-quality contributions to Homebrew for a long time and s...
false
Other
Homebrew
brew
aac0e4a87873e998699bf68967127ec3f3632fd1.json
Fix variable reference
Library/Homebrew/cmd/test-bot.rb
@@ -525,7 +525,7 @@ def formula formula_name if formula.devel && formula.stable? && !ARGV.include?('--HEAD') \ && satisfied_requirements?(formula, :devel) test "brew", "fetch", "--retry", "--devel", *formula_fetch_options - run_as_not_developer { test "brew", "install", "--devel", "--ve...
false
Other
Homebrew
brew
efd52da101cbed109d8045c02fcf0cdc4ffa7989.json
Remove dead code
Library/Homebrew/cmd/update.rb
@@ -238,18 +238,6 @@ def dump dump_formula_report :D, "Deleted Formulae" end - def tapped_formula_for key - fetch(key, []).select { |path| HOMEBREW_TAP_PATH_REGEX === path.to_s } - end - - def new_tapped_formula - tapped_formula_for :A - end - - def removed_tapped_formula - tapped_formula_for :D...
true
Other
Homebrew
brew
efd52da101cbed109d8045c02fcf0cdc4ffa7989.json
Remove dead code
Library/Homebrew/test/test_updater.rb
@@ -126,11 +126,5 @@ def test_update_homebrew_with_tap_formulae_changes assert_equal %w{foo/bar/lua}, @report.select_formula(:A) assert_equal %w{foo/bar/git}, @report.select_formula(:M) assert_empty @report.select_formula(:D) - - assert_empty @report.removed_tapped_formula - assert_equal [repo.join...
true
Other
Homebrew
brew
f55257306e609859cba568528abea45d78f1844c.json
tab: add method to set tap.
Library/Homebrew/tab.rb
@@ -170,6 +170,10 @@ def tap source["tap"] end + def tap=(tap) + source["tap"] = tap + end + def to_json attributes = { "used_options" => used_options.as_flags,
false
Other
Homebrew
brew
c14794baa8f17dc7d933e5ef9559302707b7a801.json
keg: add rack method
Library/Homebrew/keg.rb
@@ -112,6 +112,10 @@ def to_s path.to_s end + def rack + path.parent + end + if Pathname.method_defined?(:to_path) alias_method :to_path, :to_s else
false
Other
Homebrew
brew
60383be03292c6996f16b24b46699741382e8db4.json
ARGV: add resolved_formulae method
Library/Homebrew/extend/ARGV.rb
@@ -16,6 +16,17 @@ def formulae @formulae ||= (downcased_unique_named - casks).map { |name| Formulary.factory(name, spec) } end + def resolved_formulae + require "formula" + @resolved_formulae ||= (downcased_unique_named - casks).map do |name| + if name.include?("/") + Formulary.factory(nam...
false
Other
Homebrew
brew
171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json
tap/untap/update/prune: remove obsolete method, add migrate_taps
Library/Homebrew/cmd/prune.rb
@@ -36,7 +36,7 @@ def prune end end - repair_taps(false) unless ARGV.dry_run? + migrate_taps :force => true unless ARGV.dry_run? if ObserverPathnameExtension.total.zero? puts "Nothing pruned" if ARGV.verbose?
true
Other
Homebrew
brew
171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json
tap/untap/update/prune: remove obsolete method, add migrate_taps
Library/Homebrew/cmd/tap.rb
@@ -5,7 +5,7 @@ def tap puts "#{user.basename}/#{repo.basename.sub("homebrew-", "")}" if (repo/".git").directory? end elsif ARGV.first == "--repair" - repair_taps + migrate_taps :force => true else opoo "Already tapped!" unless install_tap(*tap_args) end @@ -26,7 +26,6 @@...
true
Other
Homebrew
brew
171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json
tap/untap/update/prune: remove obsolete method, add migrate_taps
Library/Homebrew/cmd/untap.rb
@@ -21,29 +21,9 @@ def untap files = [] tapd.find_formula { |file| files << file } - unlink_tap_formula(files) tapd.rmtree tapd.dirname.rmdir_if_possible puts "Untapped #{files.length} formula#{plural(files.length, 'e')}" end end - - def unlink_tap_formula paths - u...
true
Other
Homebrew
brew
171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json
tap/untap/update/prune: remove obsolete method, add migrate_taps
Library/Homebrew/cmd/update.rb
@@ -1,5 +1,4 @@ require 'cmd/tap' -require 'cmd/untap' module Homebrew def update @@ -16,20 +15,12 @@ def update cd HOMEBREW_REPOSITORY git_init_if_necessary - tapped_formulae = [] - HOMEBREW_LIBRARY.join("Formula").children.each do |path| - next unless path.symlink? - tapped_formulae...
true
Other
Homebrew
brew
dd1a9e11ab5f366f86b5b9c8686cc0e89e5a93d1.json
README: add new maintainers.
README.md
@@ -20,7 +20,7 @@ Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/homebre Please report security issues to security@brew.sh. ## Who Are You? -Homebrew's current maintainers are [Misty De Meo](https://github.com/mistydemeo), [Adam Vandenberg](https://github.com/adamv), [Jack Nagel](https://g...
false
Other
Homebrew
brew
cd63b740a50d67378b0f25f71c73aa11e27c2754.json
Formula-Cookbook: add description field.
share/doc/homebrew/Formula-Cookbook.md
@@ -119,8 +119,7 @@ end **We don’t accept formulae without homepages!** -Homebrew doesn’t have a description field because the homepage is always up to date, and Homebrew is not. That’s way less maintenance for us. Try `brew home qt`. - +Homebrew now has a description field (`desc`). Try and summarize this from th...
false
Other
Homebrew
brew
86365470e6a2a02c1a54f75fae818b779375b079.json
Add a desc field to Formula
Library/Homebrew/formula.rb
@@ -163,6 +163,12 @@ def bottle Bottle.new(self, bottle_specification) if bottled? end + # The description of the software. + # @see .desc + def desc + self.class.desc + end + # The homepage for the software. # @see .homepage def homepage @@ -685,6 +691,7 @@ def recursive_requirements(&block) ...
false
Other
Homebrew
brew
3649b31765d94cd0e0f0cdfc1acae60951702b9b.json
ENV: Add gcc-5 to compilers support C++11 Closes Homebrew/homebrew#39758. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Library/Homebrew/extend/ENV/std.rb
@@ -275,7 +275,7 @@ def cxx11 if compiler == :clang append 'CXX', '-std=c++11' append 'CXX', '-stdlib=libc++' - elsif compiler =~ /gcc-4\.(8|9)/ + elsif compiler =~ /gcc-(4\.(8|9)|5)/ append 'CXX', '-std=c++11' else raise "The selected compiler doesn't support C++11: #{compil...
true
Other
Homebrew
brew
3649b31765d94cd0e0f0cdfc1acae60951702b9b.json
ENV: Add gcc-5 to compilers support C++11 Closes Homebrew/homebrew#39758. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Library/Homebrew/extend/ENV/super.rb
@@ -293,7 +293,7 @@ def cxx11 when "clang" append 'HOMEBREW_CCCFG', "x", '' append 'HOMEBREW_CCCFG', "g", '' - when /gcc-4\.(8|9)/ + when /gcc-(4\.(8|9)|5)/ append 'HOMEBREW_CCCFG', "x", '' else raise "The selected compiler doesn't support C++11: #{homebrew_cc}"
true
Other
Homebrew
brew
14981e6265f27a1439778bb894be283a9e741066.json
How to Open A PR: clarify one commit per formula.
share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md
@@ -29,7 +29,7 @@ To make changes based on feedback: 1. Checkout your branch again with `git checkout YOUR_BRANCH_NAME` 2. Make any requested changes and commit them with `git add` and `git commit` -3. Squash new commits into one change per formula with `git rebase --interactive origin/master` +3. Squash new commit...
false
Other
Homebrew
brew
a0540058833dcf89d4bba3734828393d8ac4164d.json
audit: fix two message typos Originally submitted as part of https://github.com/Homebrew/homebrew/pull/38824/files, later reverted due another hunk. Closes Homebrew/homebrew#39753. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/audit.rb
@@ -282,9 +282,9 @@ def audit_homepage # "Software" is redirected to https://wiki.freedesktop.org/www/Software/project_name if homepage =~ %r[^http://((?:www|nice|libopenraw|liboil|telepathy|xorg)\.)?freedesktop\.org/(?:wiki/)?] if homepage =~ /Software/ - problem "The url should be styled `http...
false