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
3d423b0587d54029cc60616d506318425c22e7a4.json
Add `path` method to `Caskroom` and `Cache`.
Library/Homebrew/compat/hbc/caskroom.rb
@@ -3,42 +3,42 @@ module Caskroom class << self module Compat def migrate_legacy_caskroom - return if Hbc.caskroom.exist? + return if path.exist? - legacy_caskroom = Pathname.new("/opt/homebrew-cask/Caskroom") - return if Hbc.caskroom == legacy_caskroom - ...
true
Other
Homebrew
brew
3d423b0587d54029cc60616d506318425c22e7a4.json
Add `path` method to `Caskroom` and `Cache`.
Library/Homebrew/test/cask/cask_spec.rb
@@ -74,7 +74,7 @@ it "proposes a versioned metadata directory name for each instance" do cask_token = "local-caffeine" c = Hbc::CaskLoader.load(cask_token) - metadata_timestamped_path = Hbc.caskroom.join(cask_token, ".metadata", c.version) + metadata_timestamped_path = Hbc::Caskroom.path.jo...
true
Other
Homebrew
brew
3d423b0587d54029cc60616d506318425c22e7a4.json
Add `path` method to `Caskroom` and `Cache`.
Library/Homebrew/test/cask/cli/uninstall_spec.rb
@@ -103,7 +103,7 @@ [last_installed_version, "456000"], ] } - let(:caskroom_path) { Hbc.caskroom.join(token).tap(&:mkpath) } + let(:caskroom_path) { Hbc::Caskroom.path.join(token).tap(&:mkpath) } before do timestamped_versions.each do |timestamped_version| @@ -143,7 +143,7 @@ ...
true
Other
Homebrew
brew
3d423b0587d54029cc60616d506318425c22e7a4.json
Add `path` method to `Caskroom` and `Cache`.
Library/Homebrew/test/cask/installer_spec.rb
@@ -9,7 +9,7 @@ Hbc::Installer.new(caffeine).install - expect(Hbc.caskroom.join("local-caffeine", caffeine.version)).to be_a_directory + expect(Hbc::Caskroom.path.join("local-caffeine", caffeine.version)).to be_a_directory expect(Hbc::Config.global.appdir.join("Caffeine.app")).to be_a_direct...
true
Other
Homebrew
brew
3d423b0587d54029cc60616d506318425c22e7a4.json
Add `path` method to `Caskroom` and `Cache`.
Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb
@@ -23,7 +23,7 @@ begin HOMEBREW_CASK_DIRS.values.each(&:mkpath) - [Hbc::Config.global.binarydir, Hbc.caskroom, Hbc.cache].each(&:mkpath) + [Hbc::Config.global.binarydir, Hbc::Caskroom.path, Hbc::Cache.path].each(&:mkpath) Hbc.default_tap = Tap.fetch("Homebrew", "cask-spec").tap do |tap...
true
Other
Homebrew
brew
845cb99e29b7f37573eb9e499b1aed16ee6e7149.json
Ignore `HOMEBREW_NO_GITHUB_API` when testing.
Library/Homebrew/dev-cmd/tests.rb
@@ -39,16 +39,12 @@ def tests ENV.delete("HOMEBREW_CASK_OPTS") ENV.delete("HOMEBREW_TEMP") ENV.delete("HOMEBREW_LINKAGE_CACHE") + ENV.delete("HOMEBREW_NO_GITHUB_API") ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1" ENV["HOMEBREW_DEVELOPER"] = "1" ENV["HOMEBREW_NO_COMPAT"] = "1...
true
Other
Homebrew
brew
845cb99e29b7f37573eb9e499b1aed16ee6e7149.json
Ignore `HOMEBREW_NO_GITHUB_API` when testing.
Library/Homebrew/test/cask/cli/search_spec.rb
@@ -3,7 +3,6 @@ describe Hbc::CLI::Search, :cask do before do allow(Tty).to receive(:width).and_return(0) - ENV.delete("HOMEBREW_NO_GITHUB_API") end it_behaves_like "a command that handles invalid options"
true
Other
Homebrew
brew
717032d86dd458539004b67e1ac883937df0121f.json
Use `Searchable` module.
Library/Homebrew/cmd/desc.rb
@@ -30,9 +30,10 @@ def desc results.print elsif search_type.size > 1 odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--description." - elsif arg = ARGV.named.join(" ") - regex = query_regexp(arg) - results = Descriptions.search(regex, search_type.first) + elsif !ARGV.na...
true
Other
Homebrew
brew
717032d86dd458539004b67e1ac883937df0121f.json
Use `Searchable` module.
Library/Homebrew/cmd/install.rb
@@ -68,14 +68,16 @@ #: creating patches to the software. require "missing_formula" -require "cmd/search" require "formula_installer" require "development_tools" require "install" +require "search" module Homebrew module_function + extend Search + def install raise FormulaUnspecifiedError if A...
true
Other
Homebrew
brew
717032d86dd458539004b67e1ac883937df0121f.json
Use `Searchable` module.
Library/Homebrew/cmd/search.rb
@@ -55,9 +55,9 @@ def search(argv = ARGV) if args.remaining.empty? puts Formatter.columns(Formula.full_names.sort) elsif args.desc? - query = args.remaining.first - regex = query_regexp(query) - Descriptions.search(regex, :desc).print + query = args.remaining.join(" ") + string...
true
Other
Homebrew
brew
717032d86dd458539004b67e1ac883937df0121f.json
Use `Searchable` module.
Library/Homebrew/descriptions.rb
@@ -1,6 +1,7 @@ require "formula" require "formula_versions" require "search" +require "searchable" class Descriptions extend Homebrew::Search @@ -97,16 +98,18 @@ def self.uncache_formulae(formula_names, options = { save: true }) end # Given a regex, find all formulae whose specified fields contain a m...
true
Other
Homebrew
brew
717032d86dd458539004b67e1ac883937df0121f.json
Use `Searchable` module.
Library/Homebrew/search.rb
@@ -1,14 +1,12 @@ +require "searchable" + module Homebrew module Search - def simplify_string(string) - string.downcase.gsub(/[^a-z\d]/i, "") - end - def query_regexp(query) if m = query.match(%r{^/(.*)/$}) Regexp.new(m[1]) else - Regexp.new(simplify_string(query), Rege...
true
Other
Homebrew
brew
717032d86dd458539004b67e1ac883937df0121f.json
Use `Searchable` module.
Library/Homebrew/test/cask/cli/search_spec.rb
@@ -3,6 +3,7 @@ describe Hbc::CLI::Search, :cask do before do allow(Tty).to receive(:width).and_return(0) + ENV.delete("HOMEBREW_NO_GITHUB_API") end it_behaves_like "a command that handles invalid options" @@ -51,6 +52,8 @@ end it "doesn't output anything to non-TTY stdout when there are no ...
true
Other
Homebrew
brew
717032d86dd458539004b67e1ac883937df0121f.json
Use `Searchable` module.
Library/Homebrew/test/search_spec.rb
@@ -49,27 +49,13 @@ end end - describe "#simplify_string" do - it "simplifies a query with dashes" do - expect(mod.query_regexp("que-ry")).to eq(/query/i) - end - - it "simplifies a query with @ symbols" do - expect(mod.query_regexp("query@1")).to eq(/query1/i) - end - end - describ...
true
Other
Homebrew
brew
46e0de1762c8b2b8d5dfaa4953e9b031489a9a6b.json
Add `Searchable` helper module.
Library/Homebrew/searchable.rb
@@ -0,0 +1,31 @@ +module Searchable + def search(string_or_regex, &block) + case string_or_regex + when Regexp + search_regex(string_or_regex, &block) + else + search_string(string_or_regex.to_str, &block) + end + end + + private + + def simplify_string(string) + string.downcase.gsub(/[^a-z...
true
Other
Homebrew
brew
46e0de1762c8b2b8d5dfaa4953e9b031489a9a6b.json
Add `Searchable` helper module.
Library/Homebrew/test/searchable_spec.rb
@@ -0,0 +1,30 @@ +require "searchable" + +describe Searchable do + subject { ary.extend(described_class) } + + let(:ary) { ["with-dashes"] } + + describe "#search" do + context "when given a block" do + let(:ary) { [["with-dashes", "withdashes"]] } + + it "searches by the selected argument" do + ...
true
Other
Homebrew
brew
6fcc5d14de042e5328a0d37972af35aa98f5a9eb.json
Simplify strings for search.
Library/Homebrew/cmd/desc.rb
@@ -9,11 +9,13 @@ #: first search, making that search slower than subsequent ones. require "descriptions" -require "cmd/search" +require "search" module Homebrew module_function + extend Search + def desc search_type = [] search_type << :either if ARGV.flag? "--search" @@ -28,8 +30,8 @@ def...
true
Other
Homebrew
brew
6fcc5d14de042e5328a0d37972af35aa98f5a9eb.json
Simplify strings for search.
Library/Homebrew/descriptions.rb
@@ -1,7 +1,10 @@ require "formula" require "formula_versions" +require "search" class Descriptions + extend Homebrew::Search + CACHE_FILE = HOMEBREW_CACHE + "desc_cache.json" def self.cache @@ -99,11 +102,11 @@ def self.search(regex, field = :either) results = case field when :name - @cac...
true
Other
Homebrew
brew
6fcc5d14de042e5328a0d37972af35aa98f5a9eb.json
Simplify strings for search.
Library/Homebrew/search.rb
@@ -1,10 +1,14 @@ module Homebrew module Search + def simplify_string(string) + string.downcase.gsub(/[^a-z\d]/i, "") + end + def query_regexp(query) if m = query.match(%r{^/(.*)/$}) Regexp.new(m[1]) else - Regexp.new(query.chars.join('[^a-z\d]*'), Regexp::IGNORECASE) +...
true
Other
Homebrew
brew
6fcc5d14de042e5328a0d37972af35aa98f5a9eb.json
Simplify strings for search.
Library/Homebrew/test/search_spec.rb
@@ -49,32 +49,31 @@ end end - describe "#query_regexp" do - it "correctly parses a regex query" do - expect(mod.query_regexp("/^query$/")).to eq(/^query$/) + describe "#simplify_string" do + it "simplifies a query with dashes" do + expect(mod.query_regexp("que-ry")).to eq(/query/i) end ...
true
Other
Homebrew
brew
14b3b82fcaa5c3e44c5e89de6b5ca802218f4a0e.json
Remove exact match from `brew cask search`.
Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb
@@ -9,7 +9,7 @@ class AbstractCommand option "--debug", :debug, false option "--verbose", :verbose, false option "--outdated", :outdated_only, false - option "--require-sha", :require_sha, false + option "--require-sha", :require_sha, false ...
true
Other
Homebrew
brew
14b3b82fcaa5c3e44c5e89de6b5ca802218f4a0e.json
Remove exact match from `brew cask search`.
Library/Homebrew/cask/lib/hbc/cli/search.rb
@@ -21,7 +21,6 @@ def self.extract_regexp(string) end def self.search(*arguments) - exact_match = nil partial_matches = [] search_term = arguments.join(" ") search_regexp = extract_regexp arguments.first @@ -32,36 +31,30 @@ def self.search(*arguments) else ...
true
Other
Homebrew
brew
14b3b82fcaa5c3e44c5e89de6b5ca802218f4a0e.json
Remove exact match from `brew cask search`.
Library/Homebrew/test/cask/cli/search_spec.rb
@@ -13,7 +13,7 @@ expect { Hbc::CLI::Search.run("local") }.to output(<<~EOS).to_stdout.as_tty - ==> Partial Matches + ==> Matches local-caffeine local-transmission EOS @@ -94,9 +94,8 @@ expect { Hbc::CLI::Search.run("test-opera") }.to output(<<~EOS).to_stdo...
true
Other
Homebrew
brew
3a361c139e9dad4874c17cb254a8657140354195.json
Extend `search` tests.
Library/Homebrew/test/cmd/search_remote_tap_spec.rb
@@ -1,24 +1,45 @@ require "cmd/search" describe Homebrew do - specify "#search_taps" do - # Otherwise the tested method returns [], regardless of our stub - ENV.delete("HOMEBREW_NO_GITHUB_API") + describe "#search_taps" do + before do + ENV.delete("HOMEBREW_NO_GITHUB_API") + end - json_respo...
true
Other
Homebrew
brew
3a361c139e9dad4874c17cb254a8657140354195.json
Extend `search` tests.
Library/Homebrew/test/cmd/search_spec.rb
@@ -1,3 +1,5 @@ +require "cmd/search" + describe "brew search", :integration_test do before do setup_test_formula "testball" @@ -63,4 +65,18 @@ .and be_a_success end end + + describe "::query_regexp" do + it "correctly parses a regex query" do + expect(Homebrew.query_regexp("/^query$/...
true
Other
Homebrew
brew
05568420c0f6290cf09c5448c2891e5134360629.json
linkage_checker: fix cache invalidation. Rather than using the name of the keg for the key use the full path. This provides several advantages: - there's no need to invalidate the cache on a `brew upgrade` or `brew switch` - it's easier to figure out what cache entries can be removed and this can be done whenever...
Library/Homebrew/formula_installer.rb
@@ -607,7 +607,7 @@ def finish # Updates the cache for a particular formula after doing an install CacheStoreDatabase.use(:linkage) do |db| break unless db.created? - LinkageChecker.new(keg, formula, cache_db: db) + LinkageChecker.new(keg, formula, cache_db: db, rebuild_cache: true) end ...
true
Other
Homebrew
brew
05568420c0f6290cf09c5448c2891e5134360629.json
linkage_checker: fix cache invalidation. Rather than using the name of the keg for the key use the full path. This provides several advantages: - there's no need to invalidate the cache on a `brew upgrade` or `brew switch` - it's easier to figure out what cache entries can be removed and this can be done whenever...
Library/Homebrew/keg.rb
@@ -272,6 +272,11 @@ def remove_opt_record end def uninstall + CacheStoreDatabase.use(:linkage) do |db| + break unless db.created? + LinkageCacheStore.new(path, db).flush_cache! + end + path.rmtree path.parent.rmdir_if_possible remove_opt_record if optlinked?
true
Other
Homebrew
brew
05568420c0f6290cf09c5448c2891e5134360629.json
linkage_checker: fix cache invalidation. Rather than using the name of the keg for the key use the full path. This provides several advantages: - there's no need to invalidate the cache on a `brew upgrade` or `brew switch` - it's easier to figure out what cache entries can be removed and this can be done whenever...
Library/Homebrew/linkage_cache_store.rb
@@ -6,19 +6,19 @@ # by the `brew linkage` command # class LinkageCacheStore < CacheStore - # @param [String] keg_name + # @param [String] keg_path # @param [CacheStoreDatabase] database # @return [nil] - def initialize(keg_name, database) - @keg_name = keg_name + def initialize(keg_path, database) + ...
true
Other
Homebrew
brew
05568420c0f6290cf09c5448c2891e5134360629.json
linkage_checker: fix cache invalidation. Rather than using the name of the keg for the key use the full path. This provides several advantages: - there's no need to invalidate the cache on a `brew upgrade` or `brew switch` - it's easier to figure out what cache entries can be removed and this can be done whenever...
Library/Homebrew/linkage_checker.rb
@@ -6,10 +6,11 @@ class LinkageChecker attr_reader :undeclared_deps def initialize(keg, formula = nil, cache_db:, - use_cache: !ENV["HOMEBREW_LINKAGE_CACHE"].nil?) + use_cache: !ENV["HOMEBREW_LINKAGE_CACHE"].nil?, + rebuild_cache: false) @keg = keg @form...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho.rb
@@ -12,7 +12,7 @@ # The primary namespace for ruby-macho. module MachO # release version - VERSION = "1.1.0".freeze + VERSION = "1.2.0".freeze # Opens the given filename as a MachOFile or FatFile, depending on its magic. # @param filename [String] the file being opened
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/exceptions.rb
@@ -10,7 +10,7 @@ class ModificationError < MachOError # Raised when a Mach-O file modification fails but can be recovered when # operating on multiple Mach-O slices of a fat binary in non-strict mode. class RecoverableModificationError < ModificationError - # @return [Fixnum, nil] The index of the Mach-O s...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/fat_file.rb
@@ -261,11 +261,8 @@ def write(filename) # @raise [MachOError] if the instance was initialized without a file # @note Overwrites all data in the file! def write! - if filename.nil? - raise MachOError, "cannot write to a default file when initialized from a binary string" - else - ...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/headers.rb
@@ -450,10 +450,10 @@ module Headers # Fat binary header structure # @see MachO::FatArch class FatHeader < MachOStructure - # @return [Fixnum] the magic number of the header (and file) + # @return [Integer] the magic number of the header (and file) attr_reader :magic - # @return [...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/load_commands.rb
@@ -58,6 +58,8 @@ module LoadCommands 0x2e => :LC_LINKER_OPTIMIZATION_HINT, 0x2f => :LC_VERSION_MIN_TVOS, 0x30 => :LC_VERSION_MIN_WATCHOS, + 0x31 => :LC_NOTE, + 0x32 => :LC_BUILD_VERSION, }.freeze # association of symbol representations to load command constants @@ -66,20 +68,...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/macho_file.rb
@@ -134,7 +134,7 @@ def command(name) alias [] command # Inserts a load command at the given offset. - # @param offset [Fixnum] the offset to insert at + # @param offset [Integer] the offset to insert at # @param lc [LoadCommands::LoadCommand] the load command to insert # @param options [Has...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/sections.rb
@@ -76,25 +76,25 @@ class Section < MachOStructure # pad bytes attr_reader :segname - # @return [Fixnum] the memory address of the section + # @return [Integer] the memory address of the section attr_reader :addr - # @return [Fixnum] the size, in bytes, of the section + # @...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/structure.rb
@@ -8,11 +8,11 @@ class MachOStructure FORMAT = "".freeze # The size of the data structure, in bytes. - # @return [Fixnum] the size, in bytes + # @return [Integer] the size, in bytes # @api private SIZEOF = 0 - # @return [Fixnum] the size, in bytes, of the represented structure. + # ...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/tools.rb
@@ -88,7 +88,7 @@ def self.delete_rpath(filename, old_path, options = {}) # Merge multiple Mach-Os into one universal (Fat) binary. # @param filename [String] the fat binary to create - # @param files [Array<MachO::MachOFile, MachO::FatFile>] the files to merge + # @param files [Array<String>] the fil...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/utils.rb
@@ -2,9 +2,9 @@ module MachO # A collection of utility functions used throughout ruby-macho. module Utils # Rounds a value to the next multiple of the given round. - # @param value [Fixnum] the number being rounded - # @param round [Fixnum] the number being rounded with - # @return [Fixnum] the roun...
true
Other
Homebrew
brew
99bf57d366b93dad617246dfe10867b6a34ab2b2.json
vendor: Update ruby-macho to 1.2.0 See https://github.com/Homebrew/homebrew-core/issues/28675.
Library/Homebrew/vendor/macho/macho/view.rb
@@ -7,13 +7,13 @@ class MachOView # @return [Symbol] the endianness of the data (`:big` or `:little`) attr_reader :endianness - # @return [Fixnum] the offset of the relevant data (in {#raw_data}) + # @return [Integer] the offset of the relevant data (in {#raw_data}) attr_reader :offset # C...
true
Other
Homebrew
brew
7f2cebd4dfd444adc8e19ffbdc16485d8725042e.json
Xcode: fix version detection with unknown clang
Library/Homebrew/os/mac/xcode.rb
@@ -147,6 +147,7 @@ def detect_version end def detect_version_from_clang_version + return "dunno" if DevelopmentTools.clang_version.null? # This logic provides a fake Xcode version based on the # installed CLT version. This is useful as they are packaged # simultaneousl...
false
Other
Homebrew
brew
b092f1d0a979ac5259242c0791537e3e5b30dc19.json
pkg-config: add initial files for 10.14
Library/Homebrew/os/mac/pkgconfig/10.14/libcurl.pc
@@ -0,0 +1,39 @@ +#*************************************************************************** +# _ _ ____ _ +# Project ___| | | | _ \| | +# / __| | | | |_) | | +# | (__| |_| | _ <| |___ +# ...
true
Other
Homebrew
brew
b092f1d0a979ac5259242c0791537e3e5b30dc19.json
pkg-config: add initial files for 10.14
Library/Homebrew/os/mac/pkgconfig/10.14/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
b092f1d0a979ac5259242c0791537e3e5b30dc19.json
pkg-config: add initial files for 10.14
Library/Homebrew/os/mac/pkgconfig/10.14/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.4 +Description: libXML library version2. +Requires: +Libs: -L${libdir} -lxml2 +Libs.private: -lz -lpthread -licucore -lm +Cflags: -I${includedir}/libxml2
true
Other
Homebrew
brew
b092f1d0a979ac5259242c0791537e3e5b30dc19.json
pkg-config: add initial files for 10.14
Library/Homebrew/os/mac/pkgconfig/10.14/libxslt.pc
@@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + + +Name: libxslt +Version: 1.1.29 +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
b092f1d0a979ac5259242c0791537e3e5b30dc19.json
pkg-config: add initial files for 10.14
Library/Homebrew/os/mac/pkgconfig/10.14/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.22.0 +Libs: -L${libdir} -lsqlite3 +Libs.private: +Cflags: -I${includedir}
true
Other
Homebrew
brew
b092f1d0a979ac5259242c0791537e3e5b30dc19.json
pkg-config: add initial files for 10.14
Library/Homebrew/os/mac/pkgconfig/10.14/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.11 + +Requires: +Libs: -L${libdir} -L${sharedlibdir} -lz +Cflags: -I${includedir}
true
Other
Homebrew
brew
194c48e9d291f126151f1c2dc1a7829b92d8184d.json
xcode: add initial support for Xcode 10.0
Library/Homebrew/os/mac/xcode.rb
@@ -19,16 +19,18 @@ def latest_version when "10.11" then "8.2.1" when "10.12" then "9.2" when "10.13" then "9.3" + when "10.14" then "10.0" else raise "macOS '#{MacOS.version}' is invalid" unless OS::Mac.prerelease? # Default to newest known version of ...
false
Other
Homebrew
brew
9391ac01a987769f1a9dd3b4459433dcdb71bcf2.json
test: add symlink for macOS Mojave bottle
Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.mojave.bottle.tar.gz
@@ -0,0 +1 @@ +testball_bottle-0.1.yosemite.bottle.tar.gz \ No newline at end of file
false
Other
Homebrew
brew
0c12ab5e83c0117ca7839cf9763677113baa87db.json
mac/version: add symbol for macOS Mojave
Library/Homebrew/os/mac/version.rb
@@ -4,6 +4,7 @@ module OS module Mac class Version < ::Version SYMBOLS = { + mojave: "10.14", high_sierra: "10.13", sierra: "10.12", el_capitan: "10.11",
false
Other
Homebrew
brew
e05f72bc5232a7fd880da28050e59e45123ef0d7.json
create: Move FormulaCreator to formula_creator.rb
Library/Homebrew/dev-cmd/create.rb
@@ -20,10 +20,9 @@ #: the specified tap. require "formula" +require "formula_creator" require "missing_formula" require "cli_parser" -require "digest" -require "erb" module Homebrew module_function @@ -41,7 +40,7 @@ def create switch :debug flag "--set-name=" flag "--set-version=...
true
Other
Homebrew
brew
e05f72bc5232a7fd880da28050e59e45123ef0d7.json
create: Move FormulaCreator to formula_creator.rb
Library/Homebrew/formula_creator.rb
@@ -0,0 +1,153 @@ +require "digest" +require "erb" + +module Homebrew + class FormulaCreator + attr_reader :url, :sha256, :desc, :homepage + attr_accessor :name, :version, :tap, :path, :mode + + def url=(url) + @url = url + path = Pathname.new(url) + if @name.nil? + case url + whe...
true
Other
Homebrew
brew
1d3e8c5550a0c32a227f0cf3db97c2c0410fb886.json
Add test for locale.detect
Library/Homebrew/test/locale_spec.rb
@@ -72,4 +72,14 @@ expect(subject.eql?("zh_CN_Hans")).to be false end end + + describe "#detect" do + let(:locale_groups) { [["zh"], ["zh-TW"]] } + + it "finds best matching language code, independent of order" do + expect(described_class.new("zh", "TW", nil).detect(locale_groups)).to eql(["z...
false
Other
Homebrew
brew
f60751d91c1c2cd8d0f20cc634be303d6665dfa4.json
create: Use Parser to parse args
Library/Homebrew/dev-cmd/create.rb
@@ -21,6 +21,7 @@ require "formula" require "missing_formula" +require "cli_parser" require "digest" require "erb" @@ -29,16 +30,29 @@ module Homebrew # Create a formula from a tarball URL def create + Homebrew::CLI::Parser.parse do + switch "--autotools" + switch "--cmake" + switch "-...
false
Other
Homebrew
brew
39a6f7f83f7c33d4b0367fb3d1cd2d71801167e0.json
linkage: Use Parser to parse args
Library/Homebrew/dev-cmd/linkage.rb
@@ -15,22 +15,31 @@ require "cache_store" require "linkage_checker" +require "cli_parser" module Homebrew module_function def linkage + Homebrew::CLI::Parser.parse do + switch "--test" + switch "--reverse" + switch "--cached" + switch :verbose + switch :debug + end + C...
false
Other
Homebrew
brew
d98c45b2d3e06385fd2026ed6f431b93a4614c46.json
Fix code style in `audit` spec.
Library/Homebrew/test/dev-cmd/audit_spec.rb
@@ -4,7 +4,7 @@ module Count def self.increment @count ||= 0 - @count += 1 + @count += 1 end end @@ -350,23 +350,22 @@ class Foo < Formula end describe "#audit_revision_and_version_scheme" do - subject do + subject { fa = described_class.new(Formulary.factory(formula...
false
Other
Homebrew
brew
61617a257ec361b2c9701a42814f24415e2eddad.json
linkage_checker: use default use_cache parameter for callers.
Library/Homebrew/extend/os/mac/formula_cellar_checks.rb
@@ -67,9 +67,7 @@ def check_linkage keg = Keg.new(formula.prefix) CacheStoreDatabase.use(:linkage) do |db| - checker = LinkageChecker.new( - keg, formula, cache_db: db, use_cache: !ENV["HOMEBREW_LINKAGE_CACHE"].nil? - ) + checker = LinkageChecker.new(keg, formula, cache_db: db) ...
true
Other
Homebrew
brew
61617a257ec361b2c9701a42814f24415e2eddad.json
linkage_checker: use default use_cache parameter for callers.
Library/Homebrew/formula.rb
@@ -1537,9 +1537,7 @@ def undeclared_runtime_dependencies return [] unless keg undeclared_deps = CacheStoreDatabase.use(:linkage) do |db| - linkage_checker = LinkageChecker.new( - keg, self, cache_db: db, use_cache: !ENV["HOMEBREW_LINKAGE_CACHE"].nil? - ) + linkage_checker = LinkageChe...
true
Other
Homebrew
brew
33cf882e348ae854f127ce7c1feec4235f552adc.json
bump-formula-pr: improve bad argument handling.
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -339,6 +339,9 @@ def inreplace_pairs(path, replacement_pairs) unless Homebrew.args.quiet? ohai "replace #{old.inspect} with #{new.inspect}" end + unless old + raise "No old value for new value #{new}! Did you pass the wrong arguments?" + end contents.gsub!...
false
Other
Homebrew
brew
9e57be73eccbfebc2a8772d71a7eacebceba3ff6.json
shims/super/cc: Add support for Linux
Library/Homebrew/shims/linux/super/cc
@@ -1,366 +0,0 @@ -#!/bin/sh -# Make sure this shim uses the same Ruby interpreter that is used by Homebrew. -unset RUBYLIB -unset RUBYOPT -if [ -z "$HOMEBREW_RUBY_PATH" ] -then - echo "${0##*/}: The build tool has reset ENV; --env=std required." >&2 - exit 1 -fi -exec "$HOMEBREW_RUBY_PATH" -x "$0" "$@" -#!/usr/bin/e...
true
Other
Homebrew
brew
9e57be73eccbfebc2a8772d71a7eacebceba3ff6.json
shims/super/cc: Add support for Linux
Library/Homebrew/shims/linux/super/cc
@@ -0,0 +1 @@ +../../super/cc \ No newline at end of file
true
Other
Homebrew
brew
9e57be73eccbfebc2a8772d71a7eacebceba3ff6.json
shims/super/cc: Add support for Linux
Library/Homebrew/shims/super/cc
@@ -13,6 +13,14 @@ exec "$HOMEBREW_RUBY_PATH" -x "$0" "$@" require "pathname" require "set" +def mac? + RUBY_PLATFORM[/darwin/] +end + +def linux? + RUBY_PLATFORM[/linux/] +end + class Cmd attr_reader :config, :prefix, :cellar, :opt, :tmpdir, :sysroot, :deps attr_reader :archflags, :optflags, :keg_regex, :...
true
Other
Homebrew
brew
f308aa4800ad9e35b4d6fb98e7372f690048c1c2.json
Tty.width: use `tput cols` when `stty size` returns 0; bin/brew: add 'COLUMNS' and 'LINES' to env variables Signed-off-by: lukertty <lukertty@gmail.com>
Library/Homebrew/utils/tty.rb
@@ -7,7 +7,7 @@ def strip_ansi(string) def width width = `/bin/stty size 2>/dev/null`.split[1] - width ||= `/usr/bin/tput cols 2>/dev/null`.split[0] + width = `/usr/bin/tput cols 2>/dev/null`.split[0] if width.to_i.zero? width ||= 80 width.to_i end
true
Other
Homebrew
brew
f308aa4800ad9e35b4d6fb98e7372f690048c1c2.json
Tty.width: use `tput cols` when `stty size` returns 0; bin/brew: add 'COLUMNS' and 'LINES' to env variables Signed-off-by: lukertty <lukertty@gmail.com>
bin/brew
@@ -72,7 +72,7 @@ then FILTERED_ENV=() # Filter all but the specific variables. - for VAR in HOME SHELL PATH TERM LOGNAME USER CI TRAVIS SSH_AUTH_SOCK SUDO_ASKPASS \ + for VAR in HOME SHELL PATH TERM COLUMNS LINES LOGNAME USER CI TRAVIS SSH_AUTH_SOCK SUDO_ASKPASS \ http_proxy https_proxy ftp_pro...
true
Other
Homebrew
brew
f8f77ea52d2e8a8798fb216d73d2da0961f627d0.json
cmd/list: add common `ls` options. We need to manually specify these now so let's add a few that we'd either previously documented or we've caught being used in the wild and adjust the documentation accordingly.
Library/Homebrew/cmd/list.rb
@@ -1,7 +1,7 @@ -#: * `list`, `ls` [`--full-name`]: +#: * `list`, `ls` [`--full-name`] [`-1`] [`-l`] [`-t`] [`-r`]: #: List all installed formulae. If `--full-name` is passed, print formulae -#: with fully-qualified names. If `--full-name` is not passed, any other -#: options (e.g. `-t`) are passed to `ls` ...
true
Other
Homebrew
brew
f8f77ea52d2e8a8798fb216d73d2da0961f627d0.json
cmd/list: add common `ls` options. We need to manually specify these now so let's add a few that we'd either previously documented or we've caught being used in the wild and adjust the documentation accordingly.
docs/Manpage.md
@@ -302,10 +302,10 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note If `--force` (or `-f`) is passed, Homebrew will allow keg-only formulae to be linked. - * `list`, `ls` [`--full-name`]: + * `list`, `ls` [`--full-name`] [`-1`] [`-l`] [`-t`] [`-r`]: List all installed f...
true
Other
Homebrew
brew
f8f77ea52d2e8a8798fb216d73d2da0961f627d0.json
cmd/list: add common `ls` options. We need to manually specify these now so let's add a few that we'd either previously documented or we've caught being used in the wild and adjust the documentation accordingly.
manpages/brew.1
@@ -311,8 +311,8 @@ If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, Homebrew will list all files which If \fB\-\-force\fR (or \fB\-f\fR) is passed, Homebrew will allow keg\-only formulae to be linked\. . .TP -\fBlist\fR, \fBls\fR [\fB\-\-full\-name\fR] -List all installed formulae\. If \fB\-\-full\-name\fR is passed, ...
true
Other
Homebrew
brew
81d467abbaa6410fc3734314b8a7605163d6c64f.json
with-languages.rb: remove trailing whitespace
Library/Homebrew/test/support/fixtures/cask/Casks/with-languages.rb
@@ -1,6 +1,6 @@ cask 'with-languages' do version '1.2.3' - + language "zh" do sha256 "abc123" "zh-CN" @@ -13,6 +13,6 @@ url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip" homepage 'http://example.com/local-caffeine' - + app 'Caffeine.app' end
false
Other
Homebrew
brew
ecbd9b9a2675142e4f23eca1a181a210247bdcf8.json
Add gtk-mac-integration to gnome_devel_whitelist
Library/Homebrew/dev-cmd/audit.rb
@@ -606,6 +606,7 @@ def audit_specs libart 2.3.21 pygtkglext 1.1.0 libepoxy 1.5.0 + gtk-mac-integration 2.1.2 ].each_slice(2).to_a.map do |formula, version| [formula, version.split(".")[0..1].join(".")] end
false
Other
Homebrew
brew
d1fb1d2abc9eeffde4f2318f09d72978dd68949b.json
Use simpler check.
Library/Homebrew/cmd/search.rb
@@ -122,7 +122,7 @@ def search_taps(query, silent: false) matches.map do |match| filename = File.basename(match["path"], ".rb") tap = Tap.fetch(match["repository"]["full_name"]) - next if tap.installed? && !(tap.user == "Homebrew" && tap.repo.start_with?("cask")) + next if tap.installed? &&...
false
Other
Homebrew
brew
50a43cf6780cc5380bb00d192296d91ebb3cddc9.json
Reset `repo_var` in `clear_cache`.
Library/Homebrew/compat/tap.rb
@@ -15,10 +15,9 @@ def initialize(user, repo) old_path = path old_remote = path.git_origin + clear_cache super(new_user, new_repo) - @repo_var = nil - new_initial_revision_var = "HOMEBREW_UPDATE_BEFORE#{repo_var}" new_current_revision_var = "HOMEBREW_UPDATE_AFTER#{repo_v...
true
Other
Homebrew
brew
50a43cf6780cc5380bb00d192296d91ebb3cddc9.json
Reset `repo_var` in `clear_cache`.
Library/Homebrew/tap.rb
@@ -84,6 +84,7 @@ def initialize(user, repo) # clear internal cache def clear_cache @remote = nil + @repo_var = nil @formula_dir = nil @cask_dir = nil @formula_files = nil
true
Other
Homebrew
brew
27f1613cd3aba7e7141d27babc9dd728b5ceab83.json
Reset `repo_var` so it actually is re-computed.
Library/Homebrew/compat/tap.rb
@@ -17,6 +17,8 @@ def initialize(user, repo) super(new_user, new_repo) + @repo_var = nil + new_initial_revision_var = "HOMEBREW_UPDATE_BEFORE#{repo_var}" new_current_revision_var = "HOMEBREW_UPDATE_AFTER#{repo_var}"
false
Other
Homebrew
brew
54834ccbe3b97707bae1482d3bc10039ec1c01d6.json
Move `repo_var` method to `Tap` class.
Library/Homebrew/cmd/update-report.rb
@@ -327,11 +327,11 @@ def initialize(var_name) def initialize(tap) @tap = tap - initial_revision_var = "HOMEBREW_UPDATE_BEFORE#{repo_var}" + initial_revision_var = "HOMEBREW_UPDATE_BEFORE#{tap.repo_var}" @initial_revision = ENV[initial_revision_var].to_s raise ReporterRevisionUnsetError, initi...
true
Other
Homebrew
brew
54834ccbe3b97707bae1482d3bc10039ec1c01d6.json
Move `repo_var` method to `Tap` class.
Library/Homebrew/tap.rb
@@ -111,6 +111,13 @@ def default_remote "https://github.com/#{full_name}" end + def repo_var + @repo_var ||= path.to_s + .strip_prefix(TAP_DIRECTORY.to_s) + .tr("^A-Za-z0-9", "_") + .upcase + end + # True if this {Tap} is a git repository....
true
Other
Homebrew
brew
54834ccbe3b97707bae1482d3bc10039ec1c01d6.json
Move `repo_var` method to `Tap` class.
Library/Homebrew/test/cmd/update-report_spec.rb
@@ -20,8 +20,8 @@ def perform_update(fixture_name = "") def initialize(tap) @tap = tap - ENV["HOMEBREW_UPDATE_BEFORE#{repo_var}"] = "12345678" - ENV["HOMEBREW_UPDATE_AFTER#{repo_var}"] = "abcdef00" + ENV["HOMEBREW_UPDATE_BEFORE#{tap.repo_var}"] = "12345678" + ENV["HOMEBREW_...
true
Other
Homebrew
brew
f7e308ab44f15db2e2d3536e1d8deb829705102e.json
list.rb: use new syntax correctly
Library/Homebrew/cmd/list.rb
@@ -31,7 +31,7 @@ def list switch "--pinned" switch "--versions" switch "--full-name" - switch "--multiple", required_for: "--versions" + switch "--multiple", depends_on: "--versions" switch :verbose end
false
Other
Homebrew
brew
0408b78a23092fb345bee7af3dcac7c62c175848.json
tests: remove linkage cache env. Otherwise this will mess with `brew tests`.
Library/Homebrew/dev-cmd/tests.rb
@@ -38,6 +38,7 @@ def tests ENV.delete("VERBOSE") ENV.delete("HOMEBREW_CASK_OPTS") ENV.delete("HOMEBREW_TEMP") + ENV.delete("HOMEBREW_LINKAGE_CACHE") ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1" ENV["HOMEBREW_DEVELOPER"] = "1" ENV["HOMEBREW_NO_COMPAT"] = "1" if args.no_comp...
true
Other
Homebrew
brew
0408b78a23092fb345bee7af3dcac7c62c175848.json
tests: remove linkage cache env. Otherwise this will mess with `brew tests`.
Library/Homebrew/test/spec_helper.rb
@@ -43,8 +43,8 @@ config.filter_run_when_matching :focus - # TODO when https://github.com/rspec/rspec-expectations/pull/1056 makes - # it into a stable release: + # TODO: when https://github.com/rspec/rspec-expectations/pull/1056 + # makes it into a stable release: # config.expect_with :rspec do |c|...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/cmd/analytics_spec.rb
@@ -30,20 +30,6 @@ end end - it "fails when running `brew analytics on off`" do - expect { brew "analytics", "on", "off" } - .to output(/Invalid usage/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - end - - it "fails when running `brew analytics testball`" do - expect ...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/cmd/command_spec.rb
@@ -4,10 +4,4 @@ .to output(%r{#{Regexp.escape(HOMEBREW_LIBRARY_PATH)}/cmd/info.rb}).to_stdout .and be_a_success end - - it "fails when the given command is unknown" do - expect { brew "command", "does-not-exist" } - .to output(/Unknown command/).to_stderr - .and be_a_failure - end end
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/cmd/desc_spec.rb
@@ -10,22 +10,6 @@ .and be_a_success end - it "fails when both --search and --name are specified" do - expect { brew "desc", "--search", "--name" } - .to output(/Pick one, and only one/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - end - - describe "--search" do - i...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/cmd/install_spec.rb
@@ -2,21 +2,6 @@ it "installs Formulae" do setup_test_formula "testball1" - expect { brew "install", "testball1", "--head" } - .to output(/Specify `\-\-HEAD`/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - - expect { brew "install", "testball1", "--HEAD" } - .to outp...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/cmd/link_spec.rb
@@ -1,11 +1,4 @@ describe "brew link", :integration_test do - it "fails when no argument is given" do - expect { brew "link" } - .to output(/This command requires a keg argument/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - end - it "does not fail if the given Formula is alrea...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/cmd/migrate_spec.rb
@@ -4,27 +4,6 @@ setup_test_formula "testball2" end - it "fails when no argument is given" do - expect { brew "migrate" } - .to output(/Invalid usage/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - end - - it "fails when a given Formula doesn't exist" do - expect { bre...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/cmd/switch_spec.rb
@@ -1,15 +1,5 @@ describe "brew switch", :integration_test do it "allows switching between Formula versions" do - expect { brew "switch" } - .to output(/Usage: brew switch <formula> <version>/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - - expect { brew "switch", "testball", ...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/deps_spec.rb
@@ -15,13 +15,6 @@ .and not_to_output.to_stderr end - it "outputs a dependency for a Formula that has one dependency" do - expect { brew "deps", "bar" } - .to be_a_success - .and output("foo\n").to_stdout - .and not_to_output.to_stderr - end - it "outputs all of a Formula's dependenci...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/dev-cmd/pull_spec.rb
@@ -1,11 +1,4 @@ describe "brew pull", :integration_test do - it "fails when no argument is given" do - expect { brew "pull" } - .to output(/This command requires at least one argument/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - end - it "fetches a patch from a GitHub commit...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/dev-cmd/ruby_spec.rb
@@ -4,10 +4,5 @@ .to be_a_success .and not_to_output.to_stdout .and not_to_output.to_stderr - - expect { brew "ruby", "-e", "exit 1" } - .to be_a_failure - .and not_to_output.to_stdout - .and not_to_output.to_stderr end end
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/dev-cmd/tap_spec.rb
@@ -69,15 +69,5 @@ .to be_a_success .and not_to_output.to_stdout .and not_to_output.to_stderr - - expect { brew "tap", "--force-auto-update", "homebrew/bar" } - .to be_a_success - .and not_to_output.to_stdout - .and not_to_output.to_stderr - - expect { brew "untap", "homebrew/b...
true
Other
Homebrew
brew
f6bf9893780e17c0ae853a45944229286fbd5f88.json
Remove some integration tests We have an awful lot of integration tests and they are (comparatively) really slow. Let's kill those that test edge case conditions and focus on those that test that our functionality works as expected. Edge cases can be better tested with unit tests.
Library/Homebrew/test/dev-cmd/test_spec.rb
@@ -1,27 +1,4 @@ describe "brew test", :integration_test do - it "fails when no argument is given" do - expect { brew "test" } - .to output(/This command requires a formula argument/).to_stderr - .and not_to_output.to_stdout - .and be_a_failure - end - - it "fails when a Formula is not installed" ...
true
Other
Homebrew
brew
434e8d8e2fc4dbd51e3193e8560ecad65f916e7e.json
test/cmd/install: Fix a test failure on Linux Fix the error: Error: Homebrew GCC requested, but formula gcc not found!
Library/Homebrew/test/cmd/install_spec.rb
@@ -207,7 +207,7 @@ def install it "succeeds when a non-fatal requirement isn't satisfied" do setup_test_formula "testball1", <<~EOS class NonFatalRequirement < Requirement - satisfy { false } + satisfy(build_env: false) { false } end depends_on NonFatalRequirement
false
Other
Homebrew
brew
b01446d059ef66480624585d1aa6e42990c6006b.json
audit: Add condition check on new_formula_audits
Library/Homebrew/dev-cmd/audit.rb
@@ -123,8 +123,7 @@ def audit options[:style_offenses] = style_results.file_offenses(f.path) fa = FormulaAuditor.new(f, options) fa.audit - - next if fa.problems.empty? + next if fa.problems.empty? && fa.new_formula_problems.empty? fa.problems formula_count += 1 probl...
false
Other
Homebrew
brew
36e961ad985325f3087317f42b56266189936c75.json
Doco: add a Shell Completion doc This describes how to configure your shell to use Homebrew-managed completion definitions. Needed because this is a manual step the user has to do.
docs/README.md
@@ -6,6 +6,7 @@ - [Installation](Installation.md) - [Frequently Asked Questions](FAQ.md) - [Common Issues](Common-Issues.md) +- [`brew` Shell Completion](Shell-Completion.md) - [Tips and Tricks](Tips-N'-Tricks.md) - [Bottles (binary packages)](Bottles.md)
true
Other
Homebrew
brew
36e961ad985325f3087317f42b56266189936c75.json
Doco: add a Shell Completion doc This describes how to configure your shell to use Homebrew-managed completion definitions. Needed because this is a manual step the user has to do.
docs/Shell-Completion.md
@@ -0,0 +1,44 @@ +# Homebrew Shell Completion + +Homebrew comes with completion definitions for the `brew` command. Some packages also provide completion definitions for their own programs. + +`zsh`, `bash` and `fish` are currently supported. (Homebrew provides `brew` completions for `zsh` and `bash`; `fish` provides i...
true
Other
Homebrew
brew
b109e6da5d24baad2fbb76b9b502e817c1f2b902.json
Handle Tap migration in `Tap#initialize`.
Library/Homebrew/compat/tap.rb
@@ -1,18 +1,38 @@ -module CaskTapMigrationExtension - def parse_user_repo(*args) - user, repo = super +module CaskTapMigration + def initialize(user, repo) + super - if user == "caskroom" - user = "Homebrew" - repo = "cask-#{repo}" unless repo == "cask" - end + return unless user == "caskro...
true
Other
Homebrew
brew
b109e6da5d24baad2fbb76b9b502e817c1f2b902.json
Handle Tap migration in `Tap#initialize`.
Library/Homebrew/extend/git_repository.rb
@@ -13,6 +13,13 @@ def git_origin end end + def git_origin=(origin) + return unless git? && Utils.git_available? + cd do + Utils.popen_read("git", "remote", "set-url", "origin", origin).chuzzle + end + end + def git_head return unless git? && Utils.git_available? cd do
true
Other
Homebrew
brew
b109e6da5d24baad2fbb76b9b502e817c1f2b902.json
Handle Tap migration in `Tap#initialize`.
Library/Homebrew/tap.rb
@@ -12,7 +12,7 @@ class Tap TAP_DIRECTORY = HOMEBREW_LIBRARY/"Taps" - def self.parse_user_repo(*args) + def self.fetch(*args) case args.length when 1 user, repo = args.first.split("/", 2) @@ -29,13 +29,6 @@ def self.parse_user_repo(*args) user = user.capitalize if ["homebrew", "linuxbrew"...
true
Other
Homebrew
brew
76bfd0cecbe8ca74af5b8ea35a4a7251dd1fc729.json
Add superenv for Linux
Library/Homebrew/build.rb
@@ -68,6 +68,7 @@ def expand_deps def install formula_deps = deps.map(&:to_formula) keg_only_deps = formula_deps.select(&:keg_only?) + run_time_deps = deps.reject(&:build?).map(&:to_formula) formula_deps.each do |dep| fixopt(dep) unless dep.opt_prefix.directory? @@ -78,6 +79,7 @@ def insta...
true
Other
Homebrew
brew
76bfd0cecbe8ca74af5b8ea35a4a7251dd1fc729.json
Add superenv for Linux
Library/Homebrew/extend/ENV/super.rb
@@ -15,12 +15,13 @@ module Superenv include SharedEnvExtension # @private - attr_accessor :keg_only_deps, :deps + attr_accessor :keg_only_deps, :deps, :run_time_deps attr_accessor :x11 def self.extended(base) base.keg_only_deps = [] base.deps = [] + base.run_time_deps = [] end # @...
true