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
575b75fced18ef98f110db0bf8efb1f6561049db.json
LanguageModuleRequirement: remove jruby support
Library/Homebrew/dependency_collector.rb
@@ -18,7 +18,7 @@ class DependencyCollector # Define the languages that we can handle as external dependencies. LANGUAGE_MODULES = Set[ - :jruby, :lua, :perl, :python, :python3, :ruby + :lua, :perl, :python, :python3, :ruby ].freeze CACHE = {}
true
Other
Homebrew
brew
575b75fced18ef98f110db0bf8efb1f6561049db.json
LanguageModuleRequirement: remove jruby support
Library/Homebrew/requirements/language_module_requirement.rb
@@ -21,10 +21,8 @@ def message; <<-EOS.undent def the_test case @language - when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'] when :lua then %W[/usr/bin/env luarocks-5.2 show #{@import_name}] when :lua51 then %W[/usr/bin/env luarocks-5.1 show #{@import_name}] - wh...
true
Other
Homebrew
brew
aa1461b7d67e5c0f0f37420c8168b38f9784e28f.json
LanguageModuleRequirement: remove ocaml support
Library/Homebrew/dependency_collector.rb
@@ -18,7 +18,7 @@ class DependencyCollector # Define the languages that we can handle as external dependencies. LANGUAGE_MODULES = Set[ - :jruby, :lua, :ocaml, :perl, :python, :python3, :ruby + :jruby, :lua, :perl, :python, :python3, :ruby ].freeze CACHE = {}
false
Other
Homebrew
brew
36cef3c9744c7bc5d7215c5b79ea304a3aa2cfc2.json
LanguageModuleRequirement: remove node support
Library/Homebrew/dependency_collector.rb
@@ -18,7 +18,7 @@ class DependencyCollector # Define the languages that we can handle as external dependencies. LANGUAGE_MODULES = Set[ - :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby + :jruby, :lua, :ocaml, :perl, :python, :python3, :ruby ].freeze CACHE = {}
true
Other
Homebrew
brew
36cef3c9744c7bc5d7215c5b79ea304a3aa2cfc2.json
LanguageModuleRequirement: remove node support
Library/Homebrew/requirements/language_module_requirement.rb
@@ -24,7 +24,6 @@ def the_test when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'] when :lua then %W[/usr/bin/env luarocks-5.2 show #{@import_name}] when :lua51 then %W[/usr/bin/env luarocks-5.1 show #{@import_name}] - when :node then %W[/usr/bin/env node -e require('#{@imp...
true
Other
Homebrew
brew
36cef3c9744c7bc5d7215c5b79ea304a3aa2cfc2.json
LanguageModuleRequirement: remove node support
Library/Homebrew/test/test_language_module_requirement.rb
@@ -50,14 +50,4 @@ def test_bad_ruby_deps def test_good_ruby_deps assert_deps_pass "date" => :ruby end - - if which("node") - def test_bad_node_deps - assert_deps_fail "notapackage" => :node - end - - def test_good_node_deps - assert_deps_pass "util" => :node - end - end end
true
Other
Homebrew
brew
1ad2aeef86e6f0261a55d588a658a084a8f31ede.json
LanguageModuleRequirement: remove chicken support
Library/Homebrew/dependency_collector.rb
@@ -18,7 +18,7 @@ class DependencyCollector # Define the languages that we can handle as external dependencies. LANGUAGE_MODULES = Set[ - :chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby + :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby ].freeze CACHE = {}
true
Other
Homebrew
brew
1ad2aeef86e6f0261a55d588a658a084a8f31ede.json
LanguageModuleRequirement: remove chicken support
Library/Homebrew/requirements/language_module_requirement.rb
@@ -21,7 +21,6 @@ def message; <<-EOS.undent def the_test case @language - when :chicken then %W[/usr/bin/env csi -e (use\ #{@import_name})] when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'] when :lua then %W[/usr/bin/env luarocks-5.2 show #{@import_name}] when ...
true
Other
Homebrew
brew
1ad2aeef86e6f0261a55d588a658a084a8f31ede.json
LanguageModuleRequirement: remove chicken support
Library/Homebrew/test/test_language_module_requirement.rb
@@ -51,16 +51,6 @@ def test_good_ruby_deps assert_deps_pass "date" => :ruby end - if which("csc") - def test_bad_chicken_deps - assert_deps_fail "notapackage" => :chicken - end - - def test_good_chicken_deps - assert_deps_pass "extras" => :chicken - end - end - if which("node") ...
true
Other
Homebrew
brew
d4db443b1926b97660399f361e0b7a98ea24c608.json
LanguageModuleRequirement: remove rbx support This test wasn't running by default, so we missed that it wasn't actually being executed - or that it was failing when running in the testing environment. As far as I can tell this is not, and has not, been used either in core or in any tap, third party or otherwise, so j...
Library/Homebrew/dependency_collector.rb
@@ -18,7 +18,7 @@ class DependencyCollector # Define the languages that we can handle as external dependencies. LANGUAGE_MODULES = Set[ - :chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :rbx, :ruby + :chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby ].freeze CA...
true
Other
Homebrew
brew
d4db443b1926b97660399f361e0b7a98ea24c608.json
LanguageModuleRequirement: remove rbx support This test wasn't running by default, so we missed that it wasn't actually being executed - or that it was failing when running in the testing environment. As far as I can tell this is not, and has not, been used either in core or in any tap, third party or otherwise, so j...
Library/Homebrew/requirements/language_module_requirement.rb
@@ -31,7 +31,6 @@ def the_test when :python then %W[/usr/bin/env python -c import\ #{@import_name}] when :python3 then %W[/usr/bin/env python3 -c import\ #{@import_name}] when :ruby then %W[/usr/bin/env ruby -rubygems -e require\ '#{@import_name}'] - when :rbx then %W[/usr/bin/env rbx -rubygems -e req...
true
Other
Homebrew
brew
d4db443b1926b97660399f361e0b7a98ea24c608.json
LanguageModuleRequirement: remove rbx support This test wasn't running by default, so we missed that it wasn't actually being executed - or that it was failing when running in the testing environment. As far as I can tell this is not, and has not, been used either in core or in any tap, third party or otherwise, so j...
Library/Homebrew/test/test_language_module_requirement.rb
@@ -51,16 +51,6 @@ def test_good_ruby_deps assert_deps_pass "date" => :ruby end - if which("rbx") - def test_bad_rubinius_deps - assert_deps_fail "notapackage" => :rbx - end - - def test_good_rubinius_deps - assert_deps_pass "date" => :rbx - end - end - if which("csc") def test...
true
Other
Homebrew
brew
482481d24c7d66cdc2a6fdfb9933cf6fb7b429c9.json
pathname: fix use of `find` on Ruby 1.8.
Library/Homebrew/extend/pathname.rb
@@ -28,7 +28,7 @@ def abv def compute_disk_usage if self.directory? @file_count, @disk_usage = [0, 0] - self.find.each do |f| + self.find do |f| if !File.directory?(f) and !f.to_s.match(/\.DS_Store/) @file_count += 1 @disk_usage += File.size(f)
false
Other
Homebrew
brew
090b133a01d3918ea6a0d73768b836185a8dce35.json
cleanup: display total disk space to be cleared Closes Homebrew/homebrew#45642. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/cleanup.rb
@@ -2,8 +2,15 @@ require "keg" require "bottles" require "thread" +require "utils" module Homebrew + @@disk_cleanup_size = 0 + + def update_disk_cleanup_size(path_size) + @@disk_cleanup_size += path_size + end + def cleanup if ARGV.named.empty? cleanup_cellar @@ -16,6 +23,15 @@ def cleanup ...
false
Other
Homebrew
brew
a96a9004f4600ed71b0d9f6a22fbc9b2a2fe41f8.json
utils: add readable disk space, numbers methods.
Library/Homebrew/utils.rb
@@ -592,3 +592,32 @@ def private_repo?(user, repo) open(uri) { |json| json["private"] } end end + +def disk_usage_readable(size_in_bytes) + len = size_in_bytes.to_s.length + case + when len > 9 + sym, unit = ["G", 1_073_741_824] + when len > 6 + sym, unit = ["M", 1_048_576] + when len > 3 + sym, ...
false
Other
Homebrew
brew
4b2eb86bbf5bb0ae76619e67be1bc99e8b68ee40.json
audit: allow whitelisting of versioned Kibana. This commit modifies the whitelisting of the Kibama formula from the npm audit check to allow the versioned Kibana formulae to receive the same whitelisting. Closes Homebrew/homebrew#47500. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/audit.rb
@@ -614,7 +614,7 @@ def audit_text problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\"" end - if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name != "kibana" + if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] &...
false
Other
Homebrew
brew
2af64920fac8b892cc55cbfe9f6cd064def5a267.json
formula: pass sdk_path in std_cmake_args
Library/Homebrew/formula.rb
@@ -1047,6 +1047,7 @@ def std_cmake_args -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON + -DCMAKE_OSX_SYSROOT=#{MacOS.sdk_path} -Wno-dev ] end
false
Other
Homebrew
brew
618123e4bfe09fe17e488a9386b353e55b77adf7.json
test-bot: skip more building. There should be no compilation happening with `--fast`.
Library/Homebrew/cmd/test-bot.rb
@@ -553,11 +553,13 @@ def formula(formula_name) unless changed_dependences.empty? test "brew", "fetch", "--retry", "--build-bottle", *changed_dependences - # Install changed dependencies as new bottles so we don't have checksum problems. - test "brew", "install", "--build-bottle", *chang...
false
Other
Homebrew
brew
1f0267bb6dfdfc1871a488b35fe7d2821b73ffac.json
SUPPORTERS.md: update a link. Closes Homebrew/homebrew#47434. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
SUPPORTERS.md
@@ -325,7 +325,7 @@ These brilliant people supported our Kickstarter by giving us £15 or more: * [Chuck Fouts](https://github.com/gnarl) * [Chip Warden](https://twitter.com/lgw4) * [Ethan Schoonover](http://ethanschoonover.com) -* [Chi Trung Nguyen](http://www.napcaesmind.de) +* [Chi Trung Nguyen](http://ctnguyen.ne...
false
Other
Homebrew
brew
b7e98b129cc19d0d4ce283a358785665ac100212.json
cmd/options.rb: move common code in options.rb Closes Homebrew/homebrew#47423. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/cmd/info.rb
@@ -1,6 +1,6 @@ require "blacklist" require "caveats" -require "cmd/options" +require "options" require "formula" require "keg" require "tab"
true
Other
Homebrew
brew
b7e98b129cc19d0d4ce283a358785665ac100212.json
cmd/options.rb: move common code in options.rb Closes Homebrew/homebrew#47423. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/cmd/options.rb
@@ -1,4 +1,5 @@ require "formula" +require "options" module Homebrew def options @@ -24,12 +25,4 @@ def puts_options(formulae) end end end - - def dump_options_for_formula(f) - f.options.sort_by(&:flag).each do |opt| - puts "#{opt.flag}\n\t#{opt.description}" - end - puts "--devel\n...
true
Other
Homebrew
brew
b7e98b129cc19d0d4ce283a358785665ac100212.json
cmd/options.rb: move common code in options.rb Closes Homebrew/homebrew#47423. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/options.rb
@@ -112,3 +112,13 @@ def inspect "#<#{self.class.name}: #{to_a.inspect}>" end end + +module Homebrew + def dump_options_for_formula(f) + f.options.sort_by(&:flag).each do |opt| + puts "#{opt.flag}\n\t#{opt.description}" + end + puts "--devel\n\tInstall development version #{f.devel.version}" if ...
true
Other
Homebrew
brew
e865cee3d33e38485a46e1b88f8aa9466f31633f.json
Fix version parsing on URLs with no extensions
Library/Homebrew/test/test_versions.rb
@@ -361,4 +361,8 @@ def test_opam_version assert_version_detected "1.0.2", "https://opam.ocaml.org/archives/easy-format.1.0.2+opam.tar.gz" end + + def test_waf_version + assert_version_detected "1.8.12", "https://waf.io/waf-1.8.12" + end end
true
Other
Homebrew
brew
e865cee3d33e38485a46e1b88f8aa9466f31633f.json
Fix version parsing on URLs with no extensions
Library/Homebrew/version.rb
@@ -307,6 +307,10 @@ def self._parse(spec) m = /[-_]((?:\d+\.)*\d\.\d+-(?:p|rc|RC)?\d+)(?:[-._](?:bin|dist|stable|src|sources))?$/.match(stem) return m.captures.first unless m.nil? + # URL with no extension e.g. https://waf.io/waf-1.8.12 + m = /-((?:\d+\.)*\d+)$/.match(spec_s) + return m.captures.f...
true
Other
Homebrew
brew
30455d0fb5fce2652ca8cadd5941aecccc611e5b.json
Formula-Cookbook: recommend gdm for go resources Closes Homebrew/homebrew#46889. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
share/doc/homebrew/Formula-Cookbook.md
@@ -225,7 +225,7 @@ end [jrnl](https://github.com/Homebrew/homebrew/blob/master/Library/Formula/jrnl.rb) is an example of a formula that does this well. The end result means the user doesn't have use `pip` or Python and can just run `jrnl`. -[homebrew-pypi-poet](https://github.com/tdsmith/homebrew-pypi-poet) can h...
false
Other
Homebrew
brew
e27bddc82ae85e94a2f0016b176ea2a9c6dd824d.json
IntegrationCommandTests: improve bottle test Also let `cmd_output` capture `$stderr` Closes Homebrew/homebrew#47383. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/test_integration_cmds.rb
@@ -1,5 +1,6 @@ require "bundler" require "testing_env" +require "core_formula_repository" class IntegrationCommandTests < Homebrew::TestCase def cmd_output(*args) @@ -15,7 +16,21 @@ def cmd_output(*args) ENV["HOMEBREW_BREW_FILE"] = HOMEBREW_PREFIX/"bin/brew" ENV["HOMEBREW_INTEGRATION_TEST"] = arg...
false
Other
Homebrew
brew
f37f8b5c7ac97f5c370c55d3c2a447766bdc90c2.json
bottle: prevent bottling formula outside core or taps Closes Homebrew/homebrew#47233.
Library/Homebrew/cmd/bottle.rb
@@ -149,6 +149,10 @@ def bottle_formula(f) return ofail "Formula not installed or up-to-date: #{f.full_name}" end + unless f.tap + return ofail "Formula not from core or any taps: #{f.full_name}" + end + if f.bottle_disabled? ofail "Formula has disabled bottle: #{f.full_name}" ...
false
Other
Homebrew
brew
c318a9a03e2cf70c946c60e4807813d1efd417a5.json
tap: improve arguments resolution * Use `ARGV.include?` instead of `ARGV.first ==`, so users can pass `-v`/`-d` before the function flags(i.e. `--list-pinned` etc) * Restore the ability to call `brew tap --flags tap/name`.
Library/Homebrew/cmd/tap.rb
@@ -3,18 +3,18 @@ module Homebrew def tap - if ARGV.empty? - puts Tap.names - elsif ARGV.first == "--repair" + if ARGV.include? "--repair" Tap.each(&:link_manpages) migrate_taps :force => true - elsif ARGV.first == "--list-official" + elsif ARGV.include? "--list-official" ...
false
Other
Homebrew
brew
86bd9c9f39fbe4aa88791f3973d41b26ac37e036.json
tests: pass --trace and named args to rake Closes Homebrew/homebrew#47279. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/cmd/tests.rb
@@ -4,11 +4,19 @@ def tests ENV["TESTOPTS"] = "-v" if ARGV.verbose? ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.include? "--coverage" ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat" + Homebrew.install_gem_setup_path! "bundler" - quiet_system("bundle", "check") || \ - ...
false
Other
Homebrew
brew
28776ee1c342c4be755a597812d47d547238a08b.json
tests: add coveralls support Closes Homebrew/homebrew#47185. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/.simplecov
@@ -23,3 +23,8 @@ if name = ENV["HOMEBREW_INTEGRATION_TEST"] exit! exit_code end end + +if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"] + require "coveralls" + Coveralls.wear! +end
true
Other
Homebrew
brew
28776ee1c342c4be755a597812d47d547238a08b.json
tests: add coveralls support Closes Homebrew/homebrew#47185. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/Gemfile
@@ -4,3 +4,4 @@ gem "mocha", "~> 1.1" gem "minitest", "~> 5.3" gem "rake", "~> 10.3" gem "simplecov", "~> 0.10.0", :require => false +gem "coveralls", "0.8.9", :require => false
true
Other
Homebrew
brew
28776ee1c342c4be755a597812d47d547238a08b.json
tests: add coveralls support Closes Homebrew/homebrew#47185. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/Gemfile.lock
@@ -1,24 +1,42 @@ GEM remote: https://rubygems.org/ specs: + coveralls (0.8.9) + json (~> 1.8) + rest-client (>= 1.6.8, < 2) + simplecov (~> 0.10.0) + term-ansicolor (~> 1.3) + thor (~> 0.19.1) + tins (~> 1.6.0) docile (1.1.5) json (1.8.3) metaclass (0.0.4) - mi...
true
Other
Homebrew
brew
51efa46fcc91f4cc635ed8b7bd77a0a35f7656b6.json
test-bot: enable coverage on travis
Library/Homebrew/cmd/test-bot.rb
@@ -651,9 +651,13 @@ def homebrew if @tap test "brew", "readall", @tap.name else - test "brew", "tests", "--no-compat" + tests_args = ["--no-compat"] readall_args = ["--aliases"] - readall_args << "--syntax" if RUBY_VERSION.split(".").first.to_i >= 2 + if RUBY...
false
Other
Homebrew
brew
ef7a5cfa3acd85efc55b6aff97f55ddecb238b8b.json
Tap#unlink_manpages: fix symlink path
Library/Homebrew/tap.rb
@@ -196,7 +196,7 @@ def unlink_manpages return unless (path/"man").exist? (path/"man").find do |src| next if src.directory? - dst = HOMEBREW_PREFIX/src.relative_path_from(path) + dst = HOMEBREW_PREFIX/"share"/src.relative_path_from(path) dst.delete if dst.symlink? && src == dst.resolve...
false
Other
Homebrew
brew
7efae4635be1eec5dad066d2c52616a48f890700.json
Tap#unpin: remove PinnedTaps directory if it's empty
Library/Homebrew/tap.rb
@@ -299,6 +299,7 @@ def unpin raise TapPinStatusError.new(name, false) unless pinned? pinned_symlink_path.delete pinned_symlink_path.parent.rmdir_if_possible + pinned_symlink_path.parent.parent.rmdir_if_possible @pinned = false end
false
Other
Homebrew
brew
f72d4f17221e2c313e7076ac0b7b79c0a76018dd.json
readall: use Tap object to locate alias directory Let's hide implementation detail on where to find alias directory. This will benefit future core code and formulae separation. Also let `brew readall` check aliases for all taps.
Library/Homebrew/cmd/readall.rb
@@ -33,22 +33,29 @@ def readall Homebrew.failed = failed end - if ARGV.delete("--aliases") - Pathname.glob("#{HOMEBREW_LIBRARY}/Aliases/*").each do |f| - next unless f.symlink? - next if f.file? - onoe "Broken alias: #{f}" - Homebrew.failed = true - end - end - ...
false
Other
Homebrew
brew
b331e03c39f247beeee8c6083745d48b35b138f4.json
env: add java_cache env
Library/Homebrew/extend/ENV/shared.rb
@@ -240,6 +240,10 @@ def fortran set_cpu_flags(flags) end + def java_cache + append "_JAVA_OPTIONS", "-Duser.home=#{HOMEBREW_CACHE}/java_cache" + end + # ld64 is a newer linker provided for Xcode 2.5 # @private def ld64
false
Other
Homebrew
brew
6d802d808727e3e13aeab93ef5fac7ee831fca07.json
travis: use Xcode 7.2 on 10.11 and 7.1.1 on 10.10 Closes Homebrew/homebrew#47056. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
.travis.yml
@@ -4,11 +4,11 @@ matrix: include: - env: OSX=10.11 os: osx - osx_image: osx10.11 + osx_image: xcode7.2 rvm: system - env: OSX=10.10 os: osx - osx_image: xcode7 + osx_image: xcode7.1 rvm: system - env: OSX=10.9 HOMEBREW_RUBY=1.8.7 os: osx
false
Other
Homebrew
brew
02cd2c899a02b1271cf6e4dd8ce816e5513d9f9c.json
bottle: fix Ruby 1.8 breakage `OpenStruct` (of which `Tab` is a subclass) doesn't support subscripting with square brackets. Use normal dot notation to restore compatibility.
Library/Homebrew/cmd/bottle.rb
@@ -203,9 +203,9 @@ def bottle_formula(f) tab = Tab.for_keg(keg) original_tab = tab.dup - tab["poured_from_bottle"] = false - tab["HEAD"] = nil - tab["time"] = nil + tab.poured_from_bottle = false + tab.HEAD = nil + tab.time = nil tab.write ...
false
Other
Homebrew
brew
e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json
Allow multiple option_names in dep/reqs. This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/build_options.rb
@@ -24,21 +24,23 @@ def include?(name) # args << "--with-example1" # end</pre> def with?(val) - name = val.respond_to?(:option_name) ? val.option_name : val + option_names = val.respond_to?(:option_names) ? val.option_names : [val] - if option_defined? "with-#{name}" - include? "with-#{name}"...
true
Other
Homebrew
brew
e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json
Allow multiple option_names in dep/reqs. This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dependency.rb
@@ -4,15 +4,15 @@ class Dependency include Dependable - attr_reader :name, :tags, :env_proc, :option_name + attr_reader :name, :tags, :env_proc, :option_names DEFAULT_ENV_PROC = proc {} - def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_name = name) + def initialize(name, tags = [], ...
true
Other
Homebrew
brew
e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json
Allow multiple option_names in dep/reqs. This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/requirement.rb
@@ -10,7 +10,6 @@ class Requirement include Dependable attr_reader :tags, :name, :cask, :download, :default_formula - alias_method :option_name, :name def initialize(tags = []) @default_formula = self.class.default_formula @@ -26,6 +25,10 @@ def initialize(tags = []) @name ||= infer_name end ...
true
Other
Homebrew
brew
e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json
Allow multiple option_names in dep/reqs. This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/software_spec.rb
@@ -185,12 +185,12 @@ def add_legacy_patches(list) end def add_dep_option(dep) - name = dep.option_name - - if dep.optional? && !option_defined?("with-#{name}") - options << Option.new("with-#{name}", "Build with #{name} support") - elsif dep.recommended? && !option_defined?("without-#{name}") - ...
true
Other
Homebrew
brew
e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json
Allow multiple option_names in dep/reqs. This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/tab.rb
@@ -147,12 +147,15 @@ def self.empty end def with?(val) - name = val.respond_to?(:option_name) ? val.option_name : val - include?("with-#{name}") || unused_options.include?("without-#{name}") + option_names = val.respond_to?(:option_names) ? val.option_names : [val] + + option_names.any? do |name| +...
true
Other
Homebrew
brew
e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json
Allow multiple option_names in dep/reqs. This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/test/test_dependency.rb
@@ -49,13 +49,13 @@ def test_merge_repeats foo_named_dep = merged.find {|d| d.name == "foo"} assert_equal [:build, "bar"], foo_named_dep.tags - assert_includes foo_named_dep.option_name, "foo" - assert_includes foo_named_dep.option_name, "foo2" + assert_includes foo_named_dep.option_names, "foo" + ...
true
Other
Homebrew
brew
e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json
Allow multiple option_names in dep/reqs. This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/test/test_requirement.rb
@@ -14,9 +14,9 @@ def test_accepts_multiple_tags assert_equal %w[bar baz].sort, dep.tags.sort end - def test_option_name + def test_option_names dep = TestRequirement.new - assert_equal "test", dep.option_name + assert_equal %w[test], dep.option_names end def test_preserves_symbol_tags
true
Other
Homebrew
brew
7095378b31374323d613de448901731ed2b87b63.json
Add option_name tests.
Library/Homebrew/test/test_build_options.rb
@@ -20,6 +20,7 @@ def test_with_without assert @build.with?("bar") assert @build.with?("baz") assert @build.without?("qux") + assert @build.without?("xyz") end def test_used_options
true
Other
Homebrew
brew
7095378b31374323d613de448901731ed2b87b63.json
Add option_name tests.
Library/Homebrew/test/test_dependency.rb
@@ -52,3 +52,10 @@ def test_equality refute_eql foo1, foo3 end end + +class TapDependencyTests < Homebrew::TestCase + def test_option_name + dep = TapDependency.new("foo/bar/dog") + assert_equal "dog", dep.option_name + end +end
true
Other
Homebrew
brew
7095378b31374323d613de448901731ed2b87b63.json
Add option_name tests.
Library/Homebrew/test/test_requirement.rb
@@ -2,6 +2,8 @@ require "requirement" class RequirementTests < Homebrew::TestCase + class TestRequirement < Requirement; end + def test_accepts_single_tag dep = Requirement.new(%w[bar]) assert_equal %w[bar], dep.tags @@ -12,6 +14,11 @@ def test_accepts_multiple_tags assert_equal %w[bar baz].sort,...
true
Other
Homebrew
brew
4a89cfb1dc75a1fae98809868b26d98eda1f8c6f.json
man: remove broken --verbose functionality
Library/Homebrew/cmd/man.rb
@@ -25,15 +25,12 @@ def man puts "Writing HTML fragments to #{DOC_PATH}" puts "Writing manpages to #{TARGET_PATH}" - target_file = nil Dir["#{SOURCE_PATH}/*.md"].each do |source_file| target_html = DOC_PATH/"#{File.basename(source_file, ".md")}.html" safe_system "ronn --fra...
false
Other
Homebrew
brew
3cc101ec5ea20f46e104aba26d3dc16b7d763fca.json
pull: use tap object Fix the regression introduced by Homebrew/homebrew#46735.
Library/Homebrew/cmd/pull.rb
@@ -6,13 +6,6 @@ require "cmd/tap" module Homebrew - HOMEBREW_PULL_API_REGEX = %r{https://api\.github\.com/repos/([\w-]+)/homebrew(-[\w-]+)?/pulls/(\d+)} - - def tap(arg) - match = arg.match(%r{homebrew-([\w-]+)/}) - match[1].downcase if match - end - def pull_url(url) # GitHub provides commits/pul...
true
Other
Homebrew
brew
3cc101ec5ea20f46e104aba26d3dc16b7d763fca.json
pull: use tap object Fix the regression introduced by Homebrew/homebrew#46735.
Library/Homebrew/global.rb
@@ -41,6 +41,7 @@ module Homebrew alias_method :failed?, :failed end +HOMEBREW_PULL_API_REGEX = %r{https://api\.github\.com/repos/([\w-]+)/homebrew(-[\w-]+)?/pulls/(\d+)} HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/homebrew(-[\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})] require "co...
true
Other
Homebrew
brew
43713afa5f87d15c4ab82602c27d17cea65dd62c.json
test-bot: remove dead code
Library/Homebrew/cmd/test-bot.rb
@@ -898,9 +898,7 @@ def test_bot safe_system "brew", "tap", tap.name end - if ARGV.include? "--ci-reset-and-update" - return test_bot_ci_reset_and_update - elsif ARGV.include? "--ci-upload" + if ARGV.include? "--ci-upload" return test_ci_upload(tap) end
false
Other
Homebrew
brew
5773ca64c509094b261bdcfc43cadc9c8fd566c5.json
test-bot: fix Bintray url for bottle uploading
Library/Homebrew/cmd/test-bot.rb
@@ -830,11 +830,7 @@ def test_ci_upload(tap) tag = pr ? "pr-#{pr}" : "testing-#{number}" safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}" - bintray_repo = if tap.nil? - Bintray.repository(tap) - else - Bintray.repository(tap.name) - end + bintray_repo ...
false
Other
Homebrew
brew
65b197d2e085e683b56b504b4981247ed6d33949.json
test-bot: fix tap URL detection from Jenkins.
Library/Homebrew/cmd/test-bot.rb
@@ -56,7 +56,7 @@ def resolve_test_tap # Also can get tap from Jenkins GIT_URL. url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/") begin - tap = Tap.fetch(tap) + tap = Tap.fetch(url_path) return tap unless tap.core_formula_repository? rescue end
false
Other
Homebrew
brew
e3dcf7776ab5854cf7e0e28527cc70b79aec2c60.json
Revert "test-bot: remove dead code." This reverts commit 373da8666e633b06d8a5bb98621461b700f4b2d7.
Library/Homebrew/cmd/test-bot.rb
@@ -52,6 +52,16 @@ def resolve_test_tap end end + if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"] + # Also can get tap from Jenkins GIT_URL. + url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/") + begin + tap = Tap.fetch(tap) + return tap unless tap.cor...
false
Other
Homebrew
brew
50dc5f7a3db7af2ff222c756e06fa0debf46b4ef.json
os/mac/xcode: expect xcode 7.2
Library/Homebrew/os/mac/xcode.rb
@@ -14,12 +14,12 @@ def latest_version when "10.7" then "4.6.3" when "10.8" then "5.1.1" when "10.9" then "6.2" - when "10.10" then "7.1.1" - when "10.11" then "7.1.1" + when "10.10" then "7.2" + when "10.11" then "7.2" else # Default to newe...
false
Other
Homebrew
brew
6b42a0c1f535676a63cba4e09ebc8e1c618eaf41.json
os/mac: add xcode 7.2
Library/Homebrew/os/mac.rb
@@ -263,6 +263,7 @@ def preferred_arch "7.0.1" => { :clang => "7.0", :clang_build => 700 }, "7.1" => { :clang => "7.0", :clang_build => 700 }, "7.1.1" => { :clang => "7.0", :clang_build => 700 }, + "7.2" => { :clang => "7.0", :clang_build => 700 }, } def compilers_standard?
false
Other
Homebrew
brew
233a38ac9542db8eff93ffbcb305694da875bb69.json
brew.rb: improve handling of --version/-v option Make both `--version` and `-v` print the Homebrew version and exit, if provided as first and sole argument. `brew --version` no longer accepts additional arguments (they were previously ignored). Otherwise interpret `brew -v <arguments>` as if `brew <arguments> -v` was ...
Library/brew.rb
@@ -14,15 +14,12 @@ $:.unshift(HOMEBREW_LIBRARY_PATH.to_s) require "global" -if ARGV.first == "--version" - puts Homebrew.homebrew_version_string +if ARGV == %w[--version] || ARGV == %w[-v] + puts "Homebrew #{Homebrew.homebrew_version_string}" exit 0 elsif ARGV.first == "-v" - puts "Homebrew #{Homebrew.homeb...
false
Other
Homebrew
brew
85181a067f0f79599d149775f8b2b57fa7388bfa.json
manpage: remove superfluous spaces for consistency All other alternatives already don't use spaces around the pipe symbol. Closes Homebrew/homebrew#46825. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Library/Homebrew/manpages/brew.1.md
@@ -29,7 +29,7 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note * `list`: List all installed formulae. - * `search` <text> | `/`<text>`/`: + * `search` <text>|`/`<text>`/`: Perform a substring search of formula names for <text>. If <text> is surrounded with slashe...
true
Other
Homebrew
brew
85181a067f0f79599d149775f8b2b57fa7388bfa.json
manpage: remove superfluous spaces for consistency All other alternatives already don't use spaces around the pipe symbol. Closes Homebrew/homebrew#46825. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
share/doc/homebrew/brew.1.html
@@ -25,7 +25,7 @@ <h2 id="ESSENTIAL-COMMANDS">ESSENTIAL COMMANDS</h2> <dt><code>remove</code> <var>formula</var></dt><dd><p>Uninstall <var>formula</var>.</p></dd> <dt class="flush"><code>update</code></dt><dd><p>Fetch the newest version of Homebrew from GitHub using <code>git</code>(1).</p></dd> <dt class="flush"><c...
true
Other
Homebrew
brew
85181a067f0f79599d149775f8b2b57fa7388bfa.json
manpage: remove superfluous spaces for consistency All other alternatives already don't use spaces around the pipe symbol. Closes Homebrew/homebrew#46825. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
share/man/man1/brew.1
@@ -38,7 +38,7 @@ Fetch the newest version of Homebrew from GitHub using \fBgit\fR(1)\. List all installed formulae\. . .TP -\fBsearch\fR \fItext\fR | \fB/\fR\fItext\fR\fB/\fR +\fBsearch\fR \fItext\fR|\fB/\fR\fItext\fR\fB/\fR Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded w...
true
Other
Homebrew
brew
8144f90eac3103c369af1435440c7387ab583091.json
manpage: fix formatting of command list Restore definition list in `COMMANDS` section, thus massively improve formatting. In theory, `ronn` supports nested (definition) lists. In practice, this does not work (and is unlikely to be fixed soon because upstream seems to be rather inactive) causing the entire definition l...
Library/Homebrew/manpages/brew.1.md
@@ -377,21 +377,21 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note * `switch` <name> <version>: Symlink all of the specific <version> of <name>'s install to Homebrew prefix. - * `tap` [`--full`] <user>`/`<repo> [<URL>]: - Tap a formula repository or list existing taps. T...
true
Other
Homebrew
brew
8144f90eac3103c369af1435440c7387ab583091.json
manpage: fix formatting of command list Restore definition list in `COMMANDS` section, thus massively improve formatting. In theory, `ronn` supports nested (definition) lists. In practice, this does not work (and is unlikely to be fixed soon because upstream seems to be rather inactive) causing the entire definition l...
share/doc/homebrew/brew.1.html
@@ -34,9 +34,8 @@ <h2 id="ESSENTIAL-COMMANDS">ESSENTIAL COMMANDS</h2> <h2 id="COMMANDS">COMMANDS</h2> -<ul> -<li><p><code>audit</code> [<code>--strict</code>] [<code>--online</code>] [<var>formulae</var>]: -Check <var>formulae</var> for Homebrew coding style violations. This should be +<dl> +<dt><code>audit</code>...
true
Other
Homebrew
brew
8144f90eac3103c369af1435440c7387ab583091.json
manpage: fix formatting of command list Restore definition list in `COMMANDS` section, thus massively improve formatting. In theory, `ronn` supports nested (definition) lists. In practice, this does not work (and is unlikely to be fixed soon because upstream seems to be rather inactive) causing the entire definition l...
share/man/man1/brew.1
@@ -43,8 +43,9 @@ Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is su . .SH "COMMANDS" . -.IP "\(bu" 4 -\fBaudit\fR [\fB\-\-strict\fR] [\fB\-\-online\fR] [\fIformulae\fR]: Check \fIformulae\fR for Homebrew coding style violations\. This should be run before submitting a new formula\. +.T...
true
Other
Homebrew
brew
d2a44869f0b49f210c42bfe12787fa215a6c150e.json
test-bot: remove dead code.
Library/Homebrew/cmd/test-bot.rb
@@ -52,16 +52,6 @@ def resolve_test_tap end end - if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"] - # Also can get tap from Jenkins GIT_URL. - url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/") - begin - tap = Tap.fetch(tap) - return tap unless tap.cor...
false
Other
Homebrew
brew
6d1959b265d8ccee81bd32f59bb71b71b070a06a.json
Remove Git Conflict Markers in Documentation `Formula-Cookbook.md` contains leftover git conflict markers introduced in 15f291ddaa05cc010456a733b799382175c29dd4. This commit removes the conflict makers and a duplicated paragraph. Closes Homebrew/homebrew#46836. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
share/doc/homebrew/Formula-Cookbook.md
@@ -755,8 +755,7 @@ For example, Ruby 1.9’s gems should be installed to `var/lib/ruby/` so that ge ### launchd plist files -<<<<<<< 12f42a6761cb29ed3c9715fe2cbccff02bdc448f -Homebrew provides two Formula methods for launchd plist files. `plist_name` will return `homebrew.mxcl.<formula>`, and `plist_path` will retu...
false
Other
Homebrew
brew
d36d88edf27ead55adb6efe312f7f70f090b729d.json
Allow taps to link manpages. A blocker for https://github.com/caskroom/homebrew-cask/pull/15381 being merged. Closes Homebrew/homebrew#46795.
Library/Homebrew/cmd/tap.rb
@@ -5,6 +5,7 @@ def tap if ARGV.empty? puts Tap.names elsif ARGV.first == "--repair" + Tap.each(&:link_manpages) migrate_taps :force => true elsif ARGV.first == "--list-official" require "official_taps"
true
Other
Homebrew
brew
d36d88edf27ead55adb6efe312f7f70f090b729d.json
Allow taps to link manpages. A blocker for https://github.com/caskroom/homebrew-cask/pull/15381 being merged. Closes Homebrew/homebrew#46795.
Library/Homebrew/cmd/update.rb
@@ -76,6 +76,7 @@ def update puts "Already up-to-date." unless master_updated || !updated_taps.empty? Tap.clear_cache + Tap.each(&:link_manpages) # automatically tap any migrated formulae's new tap report.select_formula(:D).each do |f|
true
Other
Homebrew
brew
d36d88edf27ead55adb6efe312f7f70f090b729d.json
Allow taps to link manpages. A blocker for https://github.com/caskroom/homebrew-cask/pull/15381 being merged. Closes Homebrew/homebrew#46795.
Library/Homebrew/tap.rb
@@ -138,6 +138,8 @@ def install(options = {}) raise end + link_manpages + formula_count = formula_files.size puts "Tapped #{formula_count} formula#{plural(formula_count, "e")} (#{path.abv})" Descriptions.cache_formulae(formula_names) @@ -153,6 +155,29 @@ def install(options = {}) en...
true
Other
Homebrew
brew
b100ad223d24bef79bc2e40491b68aa06c434465.json
Tap#==: allow compare with string
Library/Homebrew/tap.rb
@@ -297,6 +297,11 @@ def formula_renames end end + def ==(other) + other = Tap.fetch(other) if other.is_a?(String) + self.class == other.class && self.name == other.name + end + def self.each return unless TAP_DIRECTORY.directory?
false
Other
Homebrew
brew
6e92609cf42c18a84c0eefd3e7dea56856330f76.json
Formulary: use same logic to handle core fully-qualified name
Library/Homebrew/cmd/install.rb
@@ -14,8 +14,8 @@ def install end ARGV.named.each do |name| - if !File.exist?(name) && (name !~ HOMEBREW_CORE_FORMULA_REGEX) \ - && (name =~ HOMEBREW_TAP_FORMULA_REGEX || name =~ HOMEBREW_CASK_TAP_FORMULA_REGEX) + if !File.exist?(name) && + (name =~ HOMEBREW_TAP_FORMULA_REGEX ...
true
Other
Homebrew
brew
6e92609cf42c18a84c0eefd3e7dea56856330f76.json
Formulary: use same logic to handle core fully-qualified name
Library/Homebrew/formulary.rb
@@ -262,14 +262,6 @@ def self.loader_for(ref) return FromUrlLoader.new(ref) when Pathname::BOTTLE_EXTNAME_RX return BottleLoader.new(ref) - when HOMEBREW_CORE_FORMULA_REGEX - name = $1 - formula_with_that_name = core_path(name) - if (newname = FORMULA_RENAMES[name]) && !formula_with...
true
Other
Homebrew
brew
6e92609cf42c18a84c0eefd3e7dea56856330f76.json
Formulary: use same logic to handle core fully-qualified name
Library/Homebrew/tap_constants.rb
@@ -1,7 +1,5 @@ # match taps' formulae, e.g. someuser/sometap/someformula HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$} -# match core's formulae, e.g. homebrew/homebrew/someformula -HOMEBREW_CORE_FORMULA_REGEX = %r{^homebrew/homebrew/([\w+-.]+)$}i # match taps' directory paths, e.g. HOMEBREW_LIBRAR...
true
Other
Homebrew
brew
871ec755242f0ab174c06f582e192b2a26d085a0.json
Formula: use CoreFormulaRepository, avoid duplicated logic
Library/Homebrew/formula.rb
@@ -1051,13 +1051,13 @@ def std_cmake_args # an array of all core {Formula} names # @private def self.core_names - @core_names ||= core_files.map { |f| f.basename(".rb").to_s }.sort + CoreFormulaRepository.instance.formula_names end # an array of all core {Formula} files # @private def self...
false
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/cmd/readall.rb
@@ -46,7 +46,7 @@ def readall if ARGV.named.empty? formulae = Formula.files else - tap = Tap.fetch(*tap_args) + tap = Tap.fetch(ARGV.named.first) raise TapUnavailableError, tap.name unless tap.installed? formulae = tap.formula_files end
true
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/cmd/tap-info.rb
@@ -1,15 +1,17 @@ -require "cmd/tap" +require "tap" module Homebrew def tap_info if ARGV.include? "--installed" taps = Tap else taps = ARGV.named.map do |name| - Tap.fetch(*tap_args(name)) + Tap.fetch(name) end end + raise "Homebrew/homebrew is not allowed" i...
true
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/cmd/tap-pin.rb
@@ -1,9 +1,10 @@ -require "cmd/tap" +require "tap" module Homebrew def tap_pin ARGV.named.each do |name| - tap = Tap.fetch(*tap_args(name)) + tap = Tap.fetch(name) + raise "Homebrew/homebrew is not allowed" if tap.core_formula_repository? tap.pin ohai "Pinned #{tap.name}" en...
true
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/cmd/tap-unpin.rb
@@ -1,9 +1,10 @@ -require "cmd/tap" +require "tap" module Homebrew def tap_unpin ARGV.named.each do |name| - tap = Tap.fetch(*tap_args(name)) + tap = Tap.fetch(name) + raise "Homebrew/homebrew is not allowed" if tap.core_formula_repository? tap.unpin ohai "Unpinned #{tap.name}" ...
true
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/cmd/tap.rb
@@ -12,8 +12,7 @@ def tap elsif ARGV.first == "--list-pinned" puts Tap.select(&:pinned?).map(&:name) else - user, repo = tap_args - tap = Tap.fetch(user, repo) + tap = Tap.fetch(ARGV.named[0]) begin tap.install(:clone_target => ARGV.named[1], :full_cl...
true
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/cmd/test-bot.rb
@@ -37,20 +37,29 @@ module Homebrew def resolve_test_tap tap = ARGV.value("tap") - return Tap.fetch(*tap_args(tap)) if tap + if tap + tap = Tap.fetch(tap) + return tap unless tap.core_formula_repository? + end if ENV["UPSTREAM_BOT_PARAMS"] bot_argv = ENV["UPSTREAM_BOT_PARAMS"]...
true
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/cmd/untap.rb
@@ -1,11 +1,12 @@ -require "cmd/tap" # for tap_args +require "tap" module Homebrew def untap raise "Usage is `brew untap <tap-name>`" if ARGV.empty? ARGV.named.each do |tapname| - tap = Tap.fetch(*tap_args(tapname)) + tap = Tap.fetch(tapname) + raise "Homebrew/homebrew is not allowed" i...
true
Other
Homebrew
brew
2c25303949a9fa091868cbdd42fd4ff4877869fc.json
remove unnecessary tap_args It's now handled by Tap.fetch
Library/Homebrew/tap_constants.rb
@@ -1,5 +1,3 @@ -# match expressions when taps are given as ARGS, e.g. someuser/sometap -HOMEBREW_TAP_ARGS_REGEX = %r{^([\w-]+)/(homebrew-)?([\w-]+)$} # match taps' formulae, e.g. someuser/sometap/someformula HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$} # match core's formulae, e.g. homebrew/homeb...
true
Other
Homebrew
brew
9f7a383017d3ed3cb4aedfbcdb58fd03eaa4599c.json
add CoreFormulaRepository singleton class
Library/Homebrew/tap.rb
@@ -16,10 +16,25 @@ def self.clear_cache CACHE.clear end - def self.fetch(user, repo) + def self.fetch(*args) + case args.length + when 1 + user, repo = args.first.split("/", 2) + when 2 + user = args[0] + repo = args[1] + end + + raise "Invalid tap name" unless user && repo + ...
false
Other
Homebrew
brew
c2a5a8388f81d8160df61f6ccd4b9161921bd1e5.json
Tap: add formula_file_to_name and alias_file_to_name
Library/Homebrew/tap.rb
@@ -168,7 +168,7 @@ def formula_files # an array of all {Formula} names of this {Tap}. def formula_names - @formula_names ||= formula_files.map { |f| "#{name}/#{f.basename(".rb")}" } + @formula_names ||= formula_files.map { |f| formula_file_to_name(f) } end # path to the directory of all alias fil...
false
Other
Homebrew
brew
89bd945bb7d623571da389db0167843fdbc805d6.json
Tap: use method instead of variable
Library/Homebrew/tap.rb
@@ -55,7 +55,7 @@ def initialize(user, repo) def remote @remote ||= if installed? if git? - @path.cd do + path.cd do Utils.popen_read("git", "config", "--get", "remote.origin.url").chomp end end @@ -66,7 +66,7 @@ def remote # True if this {Tap} is a git repos...
false
Other
Homebrew
brew
a8476c0dbe016719fbca2327cd93ebb386b4fdff.json
doctor: remove Xcode 7 on 10.10 warning
Library/Homebrew/cmd/doctor.rb
@@ -610,19 +610,6 @@ def check_xcode_select_path end end - # Xcode 7 lacking the 10.10 SDK is forcing sysroot to be declared - # nil on 10.10 & breaking compiles. CLT is workaround. - def check_sdk_path_not_nil_yosemite - if MacOS.version == :yosemite && !MacOS::CLT.installed? && MacOS::Xcode.installed?...
false
Other
Homebrew
brew
48bdd4811ec5ef54e4e408b0dcc4b7659c648a7d.json
MacOS.sdk: return newest SDK if requested not found `MacOS.sdk` and `.sdk_path` will now return the newest installed SDK instead of nil if called on a system that doesn’t have an SDK for the currently-installed OS. For example, Xcode 7 on OS X 10.10 does not include the 10.10 SDK, only the 10.11 SDK; software can be b...
Library/Homebrew/os/mac.rb
@@ -89,6 +89,9 @@ def sdk(v = version) begin @locator.sdk_for v rescue SDKLocator::NoSDKError + sdk = @locator.latest_sdk + # don't return an SDK that's older than the OS version + sdk unless sdk.nil? || sdk.version < version end end
false
Other
Homebrew
brew
f7d3710d12247c0c5bb07264834d6503216cba6b.json
test-bot: fix cleanup check. HOMEBREW_RUBY_PATH is always set.
Library/Homebrew/cmd/test-bot.rb
@@ -647,7 +647,7 @@ def cleanup_before git "rebase", "--abort" git "reset", "--hard" git "checkout", "-f", "master" - git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY_PATH"] + git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7" pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/rem...
false
Other
Homebrew
brew
18a743c470dd161218f4a44637db746761a3403c.json
manpage: synchronize maintainer list with README
Library/Homebrew/manpages/brew.1.md
@@ -716,7 +716,7 @@ Homebrew Documentation: <https://github.com/Homebrew/homebrew/blob/master/share/ ## AUTHORS -Homebrew's current maintainers are Misty De Meo, Adam Vandenberg, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn. +Homebrew's current maintainers are Mi...
true
Other
Homebrew
brew
18a743c470dd161218f4a44637db746761a3403c.json
manpage: synchronize maintainer list with README
share/doc/homebrew/brew.1.html
@@ -603,7 +603,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2> <h2 id="AUTHORS">AUTHORS</h2> -<p>Homebrew's current maintainers are Misty De Meo, Adam Vandenberg, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn.</p> +<p>Homebrew's current maintainers are Misty De Meo, Andrew J...
true
Other
Homebrew
brew
18a743c470dd161218f4a44637db746761a3403c.json
manpage: synchronize maintainer list with README
share/man/man1/brew.1
@@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "BREW" "1" "October 2015" "Homebrew" "brew" +.TH "BREW" "1" "December 2015" "Homebrew" "brew" . .SH "NAME" \fBbrew\fR \- The missing package manager for OS X @@ -692,7 +692,7 @@ Homebrew Documentation: \fIhttps://...
true
Other
Homebrew
brew
8f175cb03c57ac3a426d7cc1420f2b65aeaafd22.json
bin/brew: separate variable assignment and export This very slightly reduces duplication and the risk of inconsistency by exporting in one branch, but not the other. By putting all the `export` statements right before the `exec` it is more obvious what is passed on.
bin/brew
@@ -4,7 +4,7 @@ chdir() { } BREW_FILE_DIRECTORY="$(chdir "${0%/*}" && pwd -P)" -export HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/${0##*/}" +HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/${0##*/}" BREW_SYMLINK="$(readlink "$0")" if [ -n "$BREW_SYMLINK" ] @@ -31,10 +31,13 @@ then BREW_SYSTEM="$(uname -s | tr "[:uppe...
false
Other
Homebrew
brew
cbab4566dd9a36f5d37507490069f0989cf9dc5d.json
mac: expect xcode 7.1.1
Library/Homebrew/os/mac.rb
@@ -253,6 +253,7 @@ def preferred_arch "7.0" => { :clang => "7.0", :clang_build => 700 }, "7.0.1" => { :clang => "7.0", :clang_build => 700 }, "7.1" => { :clang => "7.0", :clang_build => 700 }, + "7.1.1" => { :clang => "7.0", :clang_build => 700 }, } def compilers_standard?
false
Other
Homebrew
brew
4a457d191d8136fada802eb203b2769ebd92d130.json
formula: fix reference to self.
Library/Homebrew/formula.rb
@@ -935,7 +935,7 @@ def outdated_versions if oldname && !rack.exist? && (dir = HOMEBREW_CELLAR/oldname).directory? && !dir.subdirs.empty? && tap == Tab.for_keg(dir.subdirs.first).tap - raise Migrator::MigrationNeededError.new(f) + raise Migrator::MigrationNeededError.new(self) end...
false
Other
Homebrew
brew
4c3a6c6022b2ad5e71b7315c275860400af85f20.json
formula: add missing require. Closes Homebrew/homebrew#46433. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/outdated.rb
@@ -1,6 +1,5 @@ require "formula" require "keg" -require "migrator" module Homebrew def outdated
true
Other
Homebrew
brew
4c3a6c6022b2ad5e71b7315c275860400af85f20.json
formula: add missing require. Closes Homebrew/homebrew#46433. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/formula.rb
@@ -12,6 +12,7 @@ require "tap" require "formula_renames" require "keg" +require "migrator" # A formula provides instructions and metadata for Homebrew to install a piece # of software. Every Homebrew formula is a {Formula}.
true
Other
Homebrew
brew
10c79620c15dd2dc0b02b1376f6a79515f9d01af.json
tab: use cache to avoid rereading the same files. Closes Homebrew/homebrew#46400. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/tab.rb
@@ -9,6 +9,11 @@ # `Tab.create`. class Tab < OpenStruct FILENAME = "INSTALL_RECEIPT.json" + CACHE = {} + + def self.clear_cache + CACHE.clear + end def self.create(formula, compiler, stdlib, build) attributes = { @@ -32,7 +37,7 @@ def self.create(formula, compiler, stdlib, build) end def se...
true
Other
Homebrew
brew
10c79620c15dd2dc0b02b1376f6a79515f9d01af.json
tab: use cache to avoid rereading the same files. Closes Homebrew/homebrew#46400. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/test/test_formula_installer.rb
@@ -20,10 +20,12 @@ def temporary_install(formula) assert_predicate formula, :installed? begin + Tab.clear_cache refute_predicate Tab.for_keg(keg), :poured_from_bottle yield formula ensure + Tab.clear_cache keg.unlink keg.uninstall formula.clear_cache
true
Other
Homebrew
brew
cd267e0bce9ca9cc1af37deab96c47e1cfb7645c.json
audit: check position of 'revision' and 'keg_only' Closes Homebrew/homebrew#46178. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/Homebrew/cmd/audit.rb
@@ -175,12 +175,14 @@ def audit_file [/^ mirror ["'][\S\ ]+["']/, "mirror"], [/^ version ["'][\S\ ]+["']/, "version"], [/^ (sha1|sha256) ["'][\S\ ]+["']/, "checksum"], + [/^ revision/, "revision"], [/^ head ["'][\S\ ]+["']/, "head"], ...
false