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 | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/libcurl.pc | @@ -0,0 +1,40 @@
+#***************************************************************************
+# _ _ ____ _
+# Project ___| | | | _ \| |
+# / __| | | | |_) | |
+# | (__| |_| | _ <| |___
+# ... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/libedit.pc | @@ -0,0 +1,12 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libedit
+Description: command line editor library provides generic line editing, history, and tokenization functi... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/libexslt.pc | @@ -0,0 +1,13 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+
+Name: libexslt
+Version: 0.8.17
+Description: EXSLT Extension library
+Requires: libxml-2.0
+Libs: -L${libdir} -lexsl... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/libffi.pc | @@ -0,0 +1,12 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+toolexeclibdir=${libdir}
+includedir=${prefix}/include/ffi
+
+Name: libffi
+Description: Library supporting Foreign Function Interfaces
+Version: 3.3-r... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/libxml-2.0.pc | @@ -0,0 +1,14 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+modules=1
+
+Name: libXML
+Version: 2.9.4
+Description: libXML library version2.
+Requires:
+Libs: -L${libdir} -lxml2
+Li... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/libxslt.pc | @@ -0,0 +1,13 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+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 ... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/ncurses.pc | @@ -0,0 +1,14 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+major_version=5
+version=5.7.20081102
+
+Name: ncurses
+Description: ncurses 5.7 library
+Version: ${version}
+Requires:
... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/ncursesw.pc | @@ -0,0 +1,14 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+major_version=5
+version=5.7.20081102
+
+Name: ncursesw
+Description: ncurses 5.7 library
+Version: ${version}
+Requires:... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/sqlite3.pc | @@ -0,0 +1,12 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: SQLite
+Description: SQL database engine
+Version: 3.32.3
+Libs: -L${libdir} -lsqlite3
+Libs.private:
+Cflags: | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/uuid.pc | @@ -0,0 +1,14 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+sharedlibdir=${libdir}
+includedir=${prefix}/include/uuid
+
+Name: uuid
+Description: Universally unique id library
+Version: 1.0
+
+Requires:
+Libs:
+... | true |
Other | Homebrew | brew | 3f10815f4f85e6279c9f739e6d3984855deb03d3.json | os/mac/pkgconfig: add pc files for Big Sur 11.1 | Library/Homebrew/os/mac/pkgconfig/11.1/zlib.pc | @@ -0,0 +1,14 @@
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
+prefix=${homebrew_sdkroot}/usr
+exec_prefix=/usr
+libdir=${exec_prefix}/lib
+sharedlibdir=${libdir}
+includedir=${prefix}/include
+
+Name: zlib
+Description: zlib compression library
+Version: 1.2.11
+
+Requires:
+Libs: -L${libd... | true |
Other | Homebrew | brew | 05b496194af2340826bc9d33ee8118186b1e6487.json | Fix version mapping. | Library/Homebrew/test/unversioned_cask_checker_spec.rb | @@ -16,6 +16,7 @@
["1.0", "1"] => "1.0",
["1.0", "0"] => "1.0",
["1.2.3.4000", "4000"] => "1.2.3.4000",
+ ["5", "5.0.45"] => "5.0.45",
}
expected_mappings.each do |(short_version, version), expected_version| | true |
Other | Homebrew | brew | 05b496194af2340826bc9d33ee8118186b1e6487.json | Fix version mapping. | Library/Homebrew/unversioned_cask_checker.rb | @@ -72,18 +72,15 @@ def self.version_from_package_info(package_info_path)
def self.decide_between_versions(short_version, version)
return short_version if short_version == version
- short_version_match = short_version&.match?(/\A\d+(\.\d+)+\Z/)
- version_match = version&.match?(/\A\d+(\.\d+)+\Z/... | true |
Other | Homebrew | brew | c6876ba65c7bcd5204a4f05a1f13f6004e733d85.json | Add `UnversionedCaskChecker` helper class. | Library/Homebrew/cask/cask.rbi | @@ -2,6 +2,8 @@
module Cask
class Cask
+ def artifacts; end
+
def homepage; end
end
end | true |
Other | Homebrew | brew | c6876ba65c7bcd5204a4f05a1f13f6004e733d85.json | Add `UnversionedCaskChecker` helper class. | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -6,6 +6,7 @@
require "cask/cask_loader"
require "cli/parser"
require "tap"
+require "unversioned_cask_checker"
module Homebrew
extend T::Sig
@@ -21,11 +22,11 @@ def self.bump_unversioned_casks_args
Check all casks with unversioned URLs in a given <tap> for updates.
EOS
switch "-n", "-... | true |
Other | Homebrew | brew | c6876ba65c7bcd5204a4f05a1f13f6004e733d85.json | Add `UnversionedCaskChecker` helper class. | Library/Homebrew/test/dev-cmd/bump-unversioned-casks_spec.rb | @@ -2,29 +2,7 @@
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
-require "dev-cmd/bump-unversioned-casks"
describe "Homebrew.bump_unversioned_casks_args" do
it_behaves_like "parseable arguments"
-
- describe "::decide_between_versions" do
- expected_mappings = {
- [nil, nil] ... | true |
Other | Homebrew | brew | c6876ba65c7bcd5204a4f05a1f13f6004e733d85.json | Add `UnversionedCaskChecker` helper class. | Library/Homebrew/test/unversioned_cask_checker_spec.rb | @@ -0,0 +1,28 @@
+# typed: false
+# frozen_string_literal: true
+
+require "unversioned_cask_checker"
+
+describe Homebrew::UnversionedCaskChecker do
+ describe "::decide_between_versions" do
+ expected_mappings = {
+ [nil, nil] => nil,
+ ["1.2", nil] => "1.2",
+ [nil, "1.2.3"] ... | true |
Other | Homebrew | brew | c6876ba65c7bcd5204a4f05a1f13f6004e733d85.json | Add `UnversionedCaskChecker` helper class. | Library/Homebrew/unversioned_cask_checker.rb | @@ -0,0 +1,167 @@
+# typed: true
+# frozen_string_literal: true
+
+require "cask/cask"
+require "cask/installer"
+
+module Homebrew
+ # Check unversioned casks for updates by extracting their
+ # contents and guessing the version from contained files.
+ #
+ # @api private
+ class UnversionedCaskChecker
+ extend... | true |
Other | Homebrew | brew | c6876ba65c7bcd5204a4f05a1f13f6004e733d85.json | Add `UnversionedCaskChecker` helper class. | docs/Manpage.md | @@ -904,11 +904,11 @@ present, "revision 1" will be added.
Check all casks with unversioned URLs in a given *`tap`* for updates.
* `-n`, `--dry-run`:
- List what would be done, but do not actually do anything.
+ Do everything except caching state and opening pull requests.
* `--limit`:
Maximum runtime in minu... | true |
Other | Homebrew | brew | c6876ba65c7bcd5204a4f05a1f13f6004e733d85.json | Add `UnversionedCaskChecker` helper class. | manpages/brew.1 | @@ -1250,15 +1250,15 @@ Check all casks with unversioned URLs in a given \fItap\fR for updates\.
.
.TP
\fB\-n\fR, \fB\-\-dry\-run\fR
-List what would be done, but do not actually do anything\.
+Do everything except caching state and opening pull requests\.
.
.TP
\fB\-\-limit\fR
Maximum runtime in minutes\.
.
.... | true |
Other | Homebrew | brew | 91ce799fe2c7432795a0f74e5ce84b6fd272d1f4.json | Ignore empty version strings. | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -233,8 +233,8 @@ def self.guess_cask_version(cask, installer)
def self.version_from_info_plist(info_plist_path)
plist = system_command!("plutil", args: ["-convert", "xml1", "-o", "-", info_plist_path]).plist
- short_version = plist["CFBundleShortVersionString"]
- version = plist["CFBundleVersion"]
+ ... | false |
Other | Homebrew | brew | 933499089cbba28ba37cc8671685c85d6cd9c6e0.json | Add test for `decide_between_versions`. | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -186,7 +186,7 @@ def self.guess_cask_version(cask, installer)
end
info_plist_paths.each do |info_plist_path|
- if (version = version_from_info_plist(cask, info_plist_path))
+ if (version = version_from_info_plist(info_plist_path))
return version
end
end
@@ -21... | true |
Other | Homebrew | brew | 933499089cbba28ba37cc8671685c85d6cd9c6e0.json | Add test for `decide_between_versions`. | Library/Homebrew/test/dev-cmd/bump-unversioned-casks_spec.rb | @@ -0,0 +1,27 @@
+# typed: false
+# frozen_string_literal: true
+
+require "cmd/shared_examples/args_parse"
+require "dev-cmd/bump-unversioned-casks"
+
+describe "Homebrew.bump_unversioned_casks_args" do
+ it_behaves_like "parseable arguments"
+
+ describe "::decide_between_versions" do
+ expected_mappings = {
+ ... | true |
Other | Homebrew | brew | bf46814dddade04338d85aea51d9446830c01e0a.json | Skip casks before extracting. | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -82,6 +82,11 @@ def self.bump_unversioned_casks
ohai "Checking #{cask.full_name}"
+ unless single_app_cask?(cask) || single_pkg_cask?(cask)
+ opoo "Skipping, cask #{cask} it not a single-app or PKG cask."
+ next
+ end
+
last_state = state.fetch(cask.full_name, {})
las... | false |
Other | Homebrew | brew | a3182a6386cdb3d5d581cc300ef27e55a388865d.json | Extract package into new temporary directory. | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -198,19 +198,22 @@ def self.guess_cask_version(cask, installer)
.uniq
if packages.count == 1
- extract_dir = dir/pkg_path.stem
- system_command! "pkgutil", args: ["--expand-full", pkg_path, extract_dir]
+ Dir.mktmpdir do |extract_dir|
+ extract_dir = Pathna... | false |
Other | Homebrew | brew | ef1ea75c08f34ae7153db4244207edfda4c3c558.json | Add support for single-package casks. | Library/Homebrew/cask/artifact/pkg.rb | @@ -15,7 +15,7 @@ module Artifact
#
# @api private
class Pkg < AbstractArtifact
- attr_reader :pkg_relative_path, :path, :stanza_options
+ attr_reader :path, :stanza_options
def self.from_args(cask, path, **stanza_options)
stanza_options.assert_valid_keys!(:allow_untrusted, :c... | true |
Other | Homebrew | brew | ef1ea75c08f34ae7153db4244207edfda4c3c558.json | Add support for single-package casks. | Library/Homebrew/dev-cmd/bump-unversioned-casks.rb | @@ -82,11 +82,6 @@ def self.bump_unversioned_casks
ohai "Checking #{cask.full_name}"
- unless single_app_cask?(cask)
- opoo "Skipping, not a single-app cask."
- next
- end
-
last_state = state.fetch(cask.full_name, {})
last_check_time = last_state["check_time"]&.yield_se... | true |
Other | Homebrew | brew | d768b6649a8682431a49397ae79c192bcdc1e219.json | bottle: add tests for json merging
- Extract the json reading from the json merging: it makes the code hard to understand.
This helps for the separation of concerns: the jsons are read in one method;
and merged in a second one
- Added a first test to check the merge function
No change in behaviour was done, this chan... | Library/Homebrew/dev-cmd/bottle.rb | @@ -436,9 +436,15 @@ def bottle_formula(f, args:)
end
end
- def merge(args:)
- bottles_hash = args.named.reduce({}) do |hash, json_file|
- hash.deep_merge(JSON.parse(IO.read(json_file))) do |key, first, second|
+ def parse_json_files(filenames)
+ filenames.map do |filename|
+ JSON.parse(IO.r... | true |
Other | Homebrew | brew | d768b6649a8682431a49397ae79c192bcdc1e219.json | bottle: add tests for json merging
- Extract the json reading from the json merging: it makes the code hard to understand.
This helps for the separation of concerns: the jsons are read in one method;
and merged in a second one
- Added a first test to check the merge function
No change in behaviour was done, this chan... | Library/Homebrew/test/dev-cmd/bottle_spec.rb | @@ -2,6 +2,7 @@
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
+require "dev-cmd/bottle"
describe "Homebrew.bottle_args" do
it_behaves_like "parseable arguments"
@@ -40,3 +41,156 @@
end
end
end
+
+describe Homebrew do
+ subject(:homebrew) { described_class }
+
+ def stub_has... | true |
Other | Homebrew | brew | 9d90ef29eb5094167c7e70e7f5e086ca529dc653.json | cmd/update: improve shallow clone message. | Library/Homebrew/cmd/update.sh | @@ -390,23 +390,29 @@ EOS
fi
fi
- # Homebrew/homebrew-core is extremely expensive to perform shallow clones on
- # so, on GitHub's request, don't allow it.
if [[ -f "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core/.git/shallow" ]]
then
odie <<EOS
homebrew-core is a shallow clone. To \`brew update\... | false |
Other | Homebrew | brew | 532864b0ef0109a9efa8bca15c50c99f531b65b1.json | dev-cmd/dispatch-build-bottle: remove testing code.
This was accidentally merged in https://github.com/Homebrew/brew/pull/9444. | Library/Homebrew/dev-cmd/dispatch-build-bottle.rb | @@ -58,8 +58,6 @@ def dispatch_build_bottle
else
macos.to_s
end
- p macos_label
- odie "no"
tap = Tap.fetch(args.tap || CoreTap.instance.name)
user, repo = tap.full_name.split("/") | false |
Other | Homebrew | brew | e51e0685b14ce15493fd09b6f9c60b578f0b8296.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -8041,6 +8041,11 @@ module GitHub
extend ::T::Private::Methods::SingletonMethodHooks
end
+module GitRepositoryExtension
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class HTTP::Cookie
def self.parse(set_cookie, origin, options=T.unsafe(nil), &blo... | false |
Other | Homebrew | brew | 8b206dfa335d55f3fa59f9bfd4c5701e246f851c.json | git_extensions: move commit_message from utils/git | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -89,7 +89,7 @@ def separate_commit_message(message)
end
def signoff!(path, pr: nil, dry_run: false)
- subject, body, trailers = separate_commit_message(Utils::Git.commit_message(path))
+ subject, body, trailers = separate_commit_message(path.git_commit_message)
if pr
# This is a tap pull ... | true |
Other | Homebrew | brew | 8b206dfa335d55f3fa59f9bfd4c5701e246f851c.json | git_extensions: move commit_message from utils/git | Library/Homebrew/extend/git_repository.rb | @@ -85,4 +85,12 @@ def git_last_commit_date
Utils.popen_read("git", "show", "-s", "--format=%cd", "--date=short", "HEAD", chdir: self).chomp.presence
end
+
+ # Gets the full commit message of the specified commit, or of the HEAD commit if unspecified.
+ sig { params(commit: String).returns(T.nilable(String)... | true |
Other | Homebrew | brew | 8b206dfa335d55f3fa59f9bfd4c5701e246f851c.json | git_extensions: move commit_message from utils/git | Library/Homebrew/test/dev-cmd/pr-pull_spec.rb | @@ -38,7 +38,7 @@ class Foo < Formula
EOS
end
let(:formula_file) { path/"Formula/foo.rb" }
- let(:path) { Tap::TAP_DIRECTORY/"homebrew/homebrew-foo" }
+ let(:path) { (Tap::TAP_DIRECTORY/"homebrew/homebrew-foo").extend(GitRepositoryExtension) }
describe "Homebrew.pr_pull_args" do
it_behaves_like "... | true |
Other | Homebrew | brew | 8b206dfa335d55f3fa59f9bfd4c5701e246f851c.json | git_extensions: move commit_message from utils/git | Library/Homebrew/test/utils/git_spec.rb | @@ -52,19 +52,6 @@
let(:files_hash2) { [@h2[0..6], ["README.md"]] }
let(:cherry_pick_commit) { @cherry_pick_commit[0..6] }
- describe "#commit_message" do
- it "returns the commit message" do
- expect(described_class.commit_message(HOMEBREW_CACHE, file_hash1)).to eq("File added")
- expect(describe... | true |
Other | Homebrew | brew | 8b206dfa335d55f3fa59f9bfd4c5701e246f851c.json | git_extensions: move commit_message from utils/git | Library/Homebrew/utils/git.rb | @@ -89,8 +89,9 @@ def file_at_commit(repo, file, commit)
end
def commit_message(repo, commit = nil)
+ odeprecated "Utils::Git.commit_message(repo)", "Pathname(repo).git_commit_message"
commit ||= "HEAD"
- Utils.safe_popen_read(git, "-C", repo, "log", "-1", "--pretty=%B", commit, "--", err: ... | true |
Other | Homebrew | brew | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f.json | git_extensions: move origin_branch from utils/git | Library/Homebrew/dev-cmd/bump-cask-pr.rb | @@ -77,8 +77,8 @@ def bump_cask_pr
old_hash = cask.sha256.to_s
tap_full_name = cask.tap&.full_name
- origin_branch = Utils::Git.origin_branch(cask.tap.path) if cask.tap
- origin_branch ||= "origin/master"
+ default_remote_branch = cask.tap.path.git_origin_branch if cask.tap
+ default_remote_bran... | true |
Other | Homebrew | brew | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f.json | git_extensions: move origin_branch from utils/git | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -84,44 +84,38 @@ def bump_formula_pr_args
end
def use_correct_linux_tap(formula, args:)
- if OS.linux? && formula.tap.core_tap?
- tap_full_name = formula.tap.full_name.gsub("linuxbrew", "homebrew")
- homebrew_core_url = "https://github.com/#{tap_full_name}"
- homebrew_core_remote = "homebre... | true |
Other | Homebrew | brew | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f.json | git_extensions: move origin_branch from utils/git | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -385,11 +385,8 @@ def pr_pull
_, user, repo, pr = *url_match
odie "Not a GitHub pull request: #{arg}" unless pr
- current_branch = tap.path.git_branch
- origin_branch = Utils::Git.origin_branch(tap.path).split("/").last
-
- if current_branch != origin_branch || args.branch_okay? || arg... | true |
Other | Homebrew | brew | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f.json | git_extensions: move origin_branch from utils/git | Library/Homebrew/diagnostic.rb | @@ -572,16 +572,9 @@ def check_tap_git_branch
return unless Utils::Git.available?
commands = Tap.map do |tap|
- next unless tap.path.git?
- next if tap.path.git_origin.blank?
+ next if tap.path.git_default_origin_branch?
- branch = tap.path.git_branch
- ... | true |
Other | Homebrew | brew | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f.json | git_extensions: move origin_branch from utils/git | Library/Homebrew/extend/git_repository.rb | @@ -63,6 +63,21 @@ def git_branch
Utils.popen_read("git", "rev-parse", "--abbrev-ref", "HEAD", chdir: self).chomp.presence
end
+ # Gets the name of the default origin HEAD branch.
+ sig { returns(T.nilable(String)) }
+ def git_origin_branch
+ return unless git? && Utils::Git.available?
+
+ Utils.pope... | true |
Other | Homebrew | brew | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f.json | git_extensions: move origin_branch from utils/git | Library/Homebrew/utils/git.rb | @@ -135,8 +135,8 @@ def setup_gpg!
end
def origin_branch(repo)
- Utils.popen_read(git, "-C", repo, "symbolic-ref", "-q", "--short",
- "refs/remotes/origin/HEAD").chomp.presence
+ odeprecated "Utils::Git.origin_branch(repo)", "Pathname(repo).git_origin_branch"
+ Pathname(... | true |
Other | Homebrew | brew | 92d3eda91425db1b5bf41a7ac02cc2d500106d8f.json | git_extensions: move origin_branch from utils/git | Library/Homebrew/utils/github.rb | @@ -679,7 +679,8 @@ def create_bump_pr(info, args:)
sourcefile_path = info[:sourcefile_path]
old_contents = info[:old_contents]
additional_files = info[:additional_files] || []
- origin_branch = info[:origin_branch]
+ remote = info[:remote] || "origin"
+ remote_branch = info[:remote_branch]
... | true |
Other | Homebrew | brew | d802b3755a6df6a9c1081061017d1d995c34771a.json | utils/git: remove redundant current_branch | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -385,7 +385,7 @@ def pr_pull
_, user, repo, pr = *url_match
odie "Not a GitHub pull request: #{arg}" unless pr
- current_branch = Utils::Git.current_branch(tap.path)
+ current_branch = tap.path.git_branch
origin_branch = Utils::Git.origin_branch(tap.path).split("/").last
if ... | true |
Other | Homebrew | brew | d802b3755a6df6a9c1081061017d1d995c34771a.json | utils/git: remove redundant current_branch | Library/Homebrew/utils/git.rb | @@ -140,7 +140,8 @@ def origin_branch(repo)
end
def current_branch(repo)
- Utils.popen_read("git", "-C", repo, "symbolic-ref", "--short", "HEAD").chomp.presence
+ odeprecated "Utils::Git.current_branch(repo)", "Pathname(repo).git_branch"
+ Pathname(repo).extend(GitRepositoryExtension).git_bra... | true |
Other | Homebrew | brew | 75be0ca4d08de6d00b1fe17ae1aee20f80c25ade.json | git_repository: add type signatures and comments | Library/Homebrew/extend/git_repository.rb | @@ -1,50 +1,70 @@
-# typed: false
+# typed: strict
# frozen_string_literal: true
require "utils/git"
require "utils/popen"
+# Extensions to {Pathname} for querying Git repository information.
+# @see Utils::Git
+# @api private
module GitRepositoryExtension
+ extend T::Sig
+
+ sig { returns(T::Boolean) }
de... | true |
Other | Homebrew | brew | 75be0ca4d08de6d00b1fe17ae1aee20f80c25ade.json | git_repository: add type signatures and comments | Library/Homebrew/extend/git_repository.rbi | @@ -0,0 +1,8 @@
+# typed: strict
+
+module GitRepositoryExtension
+ include Kernel
+
+ sig { params(args: T.any(String, Pathname)).returns(Pathname) }
+ def join(*args); end
+end | true |
Other | Homebrew | brew | 75be0ca4d08de6d00b1fe17ae1aee20f80c25ade.json | git_repository: add type signatures and comments | Library/Homebrew/utils/git.rb | @@ -4,6 +4,7 @@
module Utils
# Helper functions for querying Git information.
#
+ # @see GitRepositoryExtension
# @api private
module Git
module_function | true |
Other | Homebrew | brew | 7ef88f1966235c59216ec31836abedd6487f7cfc.json | Livecheck: Skip URL processing for GithubLatest | Library/Homebrew/livecheck/livecheck.rb | @@ -25,6 +25,11 @@ module Livecheck
lolg.it
].freeze
+ STRATEGY_SYMBOLS_TO_SKIP_PREPROCESS_URL = [
+ :github_latest,
+ :page_match,
+ ].freeze
+
UNSTABLE_VERSION_KEYWORDS = %w[
alpha
beta
@@ -381,8 +386,8 @@ def latest_version(formula, args:)
next
end... | false |
Other | Homebrew | brew | d173b57c4203915365b967d1c61fad49bd325536.json | github_latest: modify strategy and tests | Library/Homebrew/livecheck/strategy/github_latest.rb | @@ -7,10 +7,11 @@ module Strategy
# The {GithubLatest} strategy identifies versions of software at
# github.com by checking a repository's latest release page.
#
- # GitHub URLs take a few differemt formats:
+ # GitHub URLs take a few different formats:
#
- # * `https://github... | true |
Other | Homebrew | brew | d173b57c4203915365b967d1c61fad49bd325536.json | github_latest: modify strategy and tests | Library/Homebrew/test/livecheck/strategy/github_latest_spec.rb | @@ -6,17 +6,24 @@
describe Homebrew::Livecheck::Strategy::GithubLatest do
subject(:github_latest) { described_class }
- let(:github_download_url) { "https://github.com/example/example/releases/download/1.2.3/example-1.2.3.zip" }
- let(:github_archive_url) { "https://github.com/example/example/archive/v1.2.3.tar... | true |
Other | Homebrew | brew | f96b8e713875fee683299cda6000834fae594255.json | livecheck: add GithubLatest strategy | Library/Homebrew/livecheck/strategy.rb | @@ -78,6 +78,7 @@ def from_url(url, regex_provided = nil)
require_relative "strategy/apache"
require_relative "strategy/bitbucket"
require_relative "strategy/git"
+require_relative "strategy/github_latest"
require_relative "strategy/gnome"
require_relative "strategy/gnu"
require_relative "strategy/hackage" | true |
Other | Homebrew | brew | f96b8e713875fee683299cda6000834fae594255.json | livecheck: add GithubLatest strategy | Library/Homebrew/livecheck/strategy/github_latest.rb | @@ -0,0 +1,59 @@
+# typed: false
+# frozen_string_literal: true
+
+module Homebrew
+ module Livecheck
+ module Strategy
+ # The {GithubLatest} strategy identifies versions of software at
+ # github.com by checking a repository's latest release page.
+ #
+ # GitHub URLs take a few differemt forma... | true |
Other | Homebrew | brew | f96b8e713875fee683299cda6000834fae594255.json | livecheck: add GithubLatest strategy | Library/Homebrew/test/livecheck/strategy/github_latest_spec.rb | @@ -0,0 +1,26 @@
+# typed: false
+# frozen_string_literal: true
+
+require "livecheck/strategy/github_latest"
+
+describe Homebrew::Livecheck::Strategy::GithubLatest do
+ subject(:github_latest) { described_class }
+
+ let(:github_download_url) { "https://github.com/example/example/releases/download/1.2.3/example-1.2... | true |
Other | Homebrew | brew | 2a197af07610bb399ed87156062b13cd52e94b48.json | Add CPU family for Apple’s M1 SoC
According to reports, XNU’s CPU family identifier previously used for
the Westmere family (which Homebrew mislabels as the Arrandale family)
is now being reused for one of Apple’s M1 SoC models.
Resolve the conflict by splitting the list of CPU families and adding a
microarchitecture... | Library/Homebrew/extend/os/mac/hardware/cpu.rb | @@ -22,33 +22,10 @@ def type
end
def family
- case sysctl_int("hw.cpufamily")
- when 0x73d67300 # Yonah: Core Solo/Duo
- :core
- when 0x426f69ef # Merom: Core 2 Duo
- :core2
- when 0x78ea4fbc # Penryn
- :penryn
- when 0x6b5a4cd2 # Nehalem
- ... | true |
Other | Homebrew | brew | 2a197af07610bb399ed87156062b13cd52e94b48.json | Add CPU family for Apple’s M1 SoC
According to reports, XNU’s CPU family identifier previously used for
the Westmere family (which Homebrew mislabels as the Arrandale family)
is now being reused for one of Apple’s M1 SoC models.
Resolve the conflict by splitting the list of CPU families and adding a
microarchitecture... | Library/Homebrew/test/hardware/cpu_spec.rb | @@ -22,6 +22,7 @@
describe "::family" do
let(:cpu_families) {
[
+ :arm_firestorm_icestorm,
:arm_vortex_tempest,
:arrandale,
:atom,
@@ -48,5 +49,28 @@
it "returns the current CPU's family name as a symbol, or :dunno if it cannot be detected" do
expect(cpu_fami... | true |
Other | Homebrew | brew | 623840a304eae1b12c3f4671171f376b1c7365a8.json | workflows/tests: consolidate macOS tests.
We have a limited number of macOS workers (for the Homebrew
organisation) and queuing these seems to be slowing things down overall
compared to when we had one big job.
Linux throughput is still significantly quicker so it makes sense to
split up those jobs for providing quic... | .github/workflows/tests.yml | @@ -43,28 +43,15 @@ jobs:
hadolint Dockerfile
tap-syntax:
- name: ${{ matrix.name }}
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- include:
- - name: tap syntax (Linux)
- os: ubuntu-latest
- core-tap: linuxbrew-core
- - name: tap syntax ... | false |
Other | Homebrew | brew | e2ce4ab1b68c5ec234944e798038334f2a257131.json | add flags to deps --installed | Library/Homebrew/cmd/deps.rb | @@ -57,8 +57,14 @@ def deps_args
description: "Switch into the mode used by the `--all` option, but only list dependencies "\
"for each provided <formula>, one formula per line. This is used for "\
"debugging the `--installed`/`--all` display mode."
-
... | true |
Other | Homebrew | brew | e2ce4ab1b68c5ec234944e798038334f2a257131.json | add flags to deps --installed | docs/Manpage.md | @@ -129,6 +129,10 @@ show the intersection of dependencies for each formula.
List dependencies for all available formulae.
* `--for-each`:
Switch into the mode used by the `--all` option, but only list dependencies for each provided *`formula`*, one formula per line. This is used for debugging the `--installed`/... | true |
Other | Homebrew | brew | e2ce4ab1b68c5ec234944e798038334f2a257131.json | add flags to deps --installed | manpages/brew.1 | @@ -152,6 +152,14 @@ List dependencies for all available formulae\.
\fB\-\-for\-each\fR
Switch into the mode used by the \fB\-\-all\fR option, but only list dependencies for each provided \fIformula\fR, one formula per line\. This is used for debugging the \fB\-\-installed\fR/\fB\-\-all\fR display mode\.
.
+.TP
+\fB... | true |
Other | Homebrew | brew | 22a3025f6e42ba25e168baf098c2b038bb99cbb9.json | utils/pypi: return nil for non-pypi-packages from url | Library/Homebrew/test/utils/pypi_spec.rb | @@ -172,5 +172,13 @@
it "updates url to new version" do
expect(described_class.update_pypi_url(old_package_url, "5.29.0")).to eq package_url
end
+
+ it "returns nil for invalid versions" do
+ expect(described_class.update_pypi_url(old_package_url, "0.0.0")).to eq nil
+ end
+
+ it "returns... | true |
Other | Homebrew | brew | 22a3025f6e42ba25e168baf098c2b038bb99cbb9.json | utils/pypi: return nil for non-pypi-packages from url | Library/Homebrew/utils/pypi.rb | @@ -110,8 +110,12 @@ def <=>(other)
def update_pypi_url(url, version)
package = Package.new url, is_url: true
+ return unless package.valid_pypi_package?
+
_, url = package.pypi_info(version: version)
url
+ rescue ArgumentError
+ nil
end
# Return true if resources were checked (even i... | true |
Other | Homebrew | brew | 33fccb46ca109bfcdbdbce78e7a06a4c22bbd31c.json | add two flag to deps --installed | Library/Homebrew/cmd/deps.rb | @@ -57,8 +57,15 @@ def deps_args
description: "Switch into the mode used by the `--all` option, but only list dependencies "\
"for each provided <formula>, one formula per line. This is used for "\
"debugging the `--installed`/`--all` display mode."
+ ... | true |
Other | Homebrew | brew | 33fccb46ca109bfcdbdbce78e7a06a4c22bbd31c.json | add two flag to deps --installed | docs/Manpage.md | @@ -129,6 +129,10 @@ show the intersection of dependencies for each formula.
List dependencies for all available formulae.
* `--for-each`:
Switch into the mode used by the `--all` option, but only list dependencies for each provided *`formula`*, one formula per line. This is used for debugging the `--installed`/... | true |
Other | Homebrew | brew | 33fccb46ca109bfcdbdbce78e7a06a4c22bbd31c.json | add two flag to deps --installed | manpages/brew.1 | @@ -152,6 +152,14 @@ List dependencies for all available formulae\.
\fB\-\-for\-each\fR
Switch into the mode used by the \fB\-\-all\fR option, but only list dependencies for each provided \fIformula\fR, one formula per line\. This is used for debugging the \fB\-\-installed\fR/\fB\-\-all\fR display mode\.
.
+.TP
+\fB... | true |
Other | Homebrew | brew | cb4ed5a8c20fc6d50883204ea79024a765e56b00.json | workflows/tests: run vendored gems on macOS 11.
All existing workflows using this seem to be broken. | .github/workflows/tests.yml | @@ -132,7 +132,7 @@ jobs:
os: ubuntu-latest
core-tap: linuxbrew-core
- name: vendored gems (macOS)
- os: macos-latest
+ os: macos-11.0
core-tap: homebrew-core
steps:
- name: Set up Homebrew | false |
Other | Homebrew | brew | 32901b71f551478226acf571f77ba6ad59ab461b.json | Update RBI files for rubocop-rspec. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.3.0.rbi | @@ -1116,6 +1116,8 @@ RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError
end
+RuboCop::AST::NodePattern::LexerRex::NODE_TYPE = T.let(T.unsafe(nil), Regexp)
+
RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.uns... | true |
Other | Homebrew | brew | 32901b71f551478226acf571f77ba6ad59ab461b.json | Update RBI files for rubocop-rspec. | Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.0.1.rbi | @@ -1112,6 +1112,57 @@ class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base
def block_loc(send_node); end
end
+module RuboCop::Cop::RSpec::Rails
+end
+
+class RuboCop::Cop::RSpec::Rails::HttpStatus < ::RuboCop::Cop::RSpec::Base
+ include(::RuboCop::Cop::ConfigurableEnforcedStyle)
+ extend(:... | true |
Other | Homebrew | brew | 32901b71f551478226acf571f77ba6ad59ab461b.json | Update RBI files for rubocop-rspec. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -28085,31 +28085,10 @@ class RuboCop::AST::NodePattern::Parser
end
module RuboCop::AST::NodePattern::Sets
- SET_AFTER_ACTION_APPEND_AFTER_ACTION_APPEND_AROUND_ACTION_ETC = ::T.let(nil, ::T.untyped)
- SET_AP_P_PP_ETC = ::T.let(nil, ::T.untyped)
- SET_BELONGS_TO_HAS_ONE_HAS_MANY_HAS_AND_BELONGS_TO_MANY = ::T.le... | true |
Other | Homebrew | brew | 1bfd2ac0e2613b0f5ceb0d5da16c9ff512b5dd4d.json | Fix wrong `force` keyword. | Library/Homebrew/cmd/fetch.rb | @@ -125,14 +125,10 @@ def fetch
else
cask = formula_or_cask
- options = {
- force: args.force?,
- quarantine: args.quarantine?,
- }.compact
+ quarantine = args.quarantine?
+ quarantine = true if quarantine.nil?
- options[:quarantine] = true i... | false |
Other | Homebrew | brew | d98595d1f1aa0713074855bd9a90fbac0ce046f9.json | sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -2914,8 +2914,6 @@ class Addrinfo
end
class Array
- def excluding(*elements); end
-
def extract_options!(); end
def fifth(); end
@@ -2926,8 +2924,6 @@ class Array
def from(position); end
- def including(*elements); end
-
def second(); end
def second_to_last(); end
@@ -2949,8 +2945,6 @@ c... | false |
Other | Homebrew | brew | 6f097685493b82330bbae2a743038745e6892a2b.json | Add missing require in `dev-cmd/irb`. | Library/Homebrew/dev-cmd/irb.rb | @@ -1,6 +1,7 @@
# typed: false
# frozen_string_literal: true
+require "formulary"
require "cli/parser"
class Symbol | false |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/.rubocop.yml | @@ -26,10 +26,6 @@ Cask/Desc:
Description: 'Ensure that the desc stanza conforms to various content and style checks.'
Enabled: true
-Cask/HomepageMatchesUrl:
- Description: 'Ensure that the homepage and url match, otherwise add a comment. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/ca... | true |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/Homebrew/cask/audit.rb | @@ -52,6 +52,9 @@ def run!
check_sha256
check_desc
check_url
+ check_unnecessary_verified
+ check_missing_verified
+ check_no_match
check_generic_artifacts
check_token_valid
check_token_bad_words
@@ -345,6 +348,80 @@ def bad_osdn_url?
bad_url_format?(/osd/... | true |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/Homebrew/cask/url.rb | @@ -8,7 +8,7 @@ class URL
extend T::Sig
attr_reader :uri, :specs,
- :using,
+ :verified, :using,
:tag, :branch, :revisions, :revision,
:trust_cert, :cookies, :referer, :header, :user_agent,
:data
@@ -19,6 +19,7 @@ class URL
sig do
pa... | true |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/Homebrew/rubocops/cask/homepage_matches_url.rb | @@ -1,180 +0,0 @@
-# typed: false
-# frozen_string_literal: true
-
-require "forwardable"
-
-module RuboCop
- module Cop
- module Cask
- # This cop checks that a cask's homepage matches the download URL,
- # or if it doesn't, checks if a comment in the form
- # `# example.com was verified as official... | true |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/Homebrew/rubocops/rubocop-cask.rb | @@ -13,7 +13,6 @@
require "rubocops/cask/mixin/cask_help"
require "rubocops/cask/mixin/on_homepage_stanza"
require "rubocops/cask/desc"
-require "rubocops/cask/homepage_matches_url"
require "rubocops/cask/homepage_url_trailing_slash"
require "rubocops/cask/no_dsl_version"
require "rubocops/cask/stanza_order" | true |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/Homebrew/test/cask/audit_spec.rb | @@ -887,5 +887,80 @@ def tmp_cask(name, text)
expect(subject).to pass
end
end
+
+ context "when the url matches the homepage" do
+ let(:cask_token) { "foo" }
+ let(:cask) do
+ tmp_cask cask_token.to_s, <<~RUBY
+ cask '#{cask_token}' do
+ version '1.0'
+ ... | true |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/Homebrew/test/rubocops/cask/homepage_matches_url_spec.rb | @@ -1,216 +0,0 @@
-# typed: false
-# frozen_string_literal: true
-
-require "rubocops/rubocop-cask"
-require "test/rubocops/cask/shared_examples/cask_cop"
-
-describe RuboCop::Cop::Cask::HomepageMatchesUrl do
- include CaskCop
-
- subject(:cop) { described_class.new }
-
- context "when the url matches the homepage a... | true |
Other | Homebrew | brew | 058a1c3645e28a5e9add92bdd21b6a2aa95b2503.json | add verified parameter in url | Library/Homebrew/test/support/fixtures/cask/Casks/generic-artifact-relative-target.rb | @@ -1,3 +1,11 @@
cask "generic-artifact-relative-target" do
+ version "1.2.3"
+ sha256 "d5b2dfbef7ea28c25f7a77cd7fa14d013d82b626db1d82e00e25822464ba19e2"
+
+ url "file://#{TEST_FIXTURE_DIR}/cask/AppWithBinary.zip"
+ name "With Binary"
+ desc "Cask with a binary stanza"
+ homepage "https://brew.sh/with-binary"
+
... | true |
Other | Homebrew | brew | f8ff0f465f44943c470a2e683519d2b5459f109e.json | tap: add tests for formula list methods | Library/Homebrew/test/spec_helper.rb | @@ -241,6 +241,10 @@ def find_files
CoreTap.instance.path/".git",
CoreTap.instance.alias_dir,
CoreTap.instance.path/"formula_renames.json",
+ CoreTap.instance.path/"tap_migrations.json",
+ CoreTap.instance.path/"audit_exceptions",
+ CoreTap.instance.path/"style_exceptions... | true |
Other | Homebrew | brew | f8ff0f465f44943c470a2e683519d2b5459f109e.json | tap: add tests for formula list methods | Library/Homebrew/test/tap_spec.rb | @@ -18,6 +18,8 @@
before do
path.mkpath
+ (path/"audit_exceptions").mkpath
+ (path/"style_exceptions").mkpath
end
def setup_tap_files
@@ -38,6 +40,27 @@ class Foo < Formula
{ "removed-formula": "homebrew/foo" }
JSON
+ %w[audit_exceptions style_exceptions].each do |exceptions_dir... | true |
Other | Homebrew | brew | ba63619f8efacd04ca6e75b593fec3fc95f56edb.json | tests: remove final reference to formula_exist | Library/Homebrew/test/spec_helper.rb | @@ -47,7 +47,6 @@
require "test/support/helper/spec/shared_context/homebrew_cask" if OS.mac?
require "test/support/helper/spec/shared_context/integration_test"
-require "test/support/helper/spec/shared_examples/formulae_exist"
TEST_DIRECTORIES = [
CoreTap.instance.path/"Formula", | false |
Other | Homebrew | brew | 80a46edee487163cb853c6a4ab81e5b81dc54d77.json | tap: add style_exceptions configuration | Library/Homebrew/rubocops/extend/formula.rb | @@ -35,6 +35,7 @@ def on_class(node)
class_node, parent_class_node, @body = *node
@formula_name = Pathname.new(@file_path).basename(".rb").to_s
+ @tap_style_exceptions = nil
audit_formula(node, class_node, parent_class_node, @body)
end
@@ -472,6 +473,31 @@ def formula_tap
... | true |
Other | Homebrew | brew | 80a46edee487163cb853c6a4ab81e5b81dc54d77.json | tap: add style_exceptions configuration | Library/Homebrew/tap.rb | @@ -21,12 +21,14 @@ class Tap
HOMEBREW_TAP_FORMULA_RENAMES_FILE = "formula_renames.json"
HOMEBREW_TAP_MIGRATIONS_FILE = "tap_migrations.json"
HOMEBREW_TAP_AUDIT_EXCEPTIONS_DIR = "audit_exceptions"
+ HOMEBREW_TAP_STYLE_EXCEPTIONS_DIR = "style_exceptions"
HOMEBREW_TAP_PYPI_FORMULA_MAPPINGS = "pypi_formula_ma... | true |
Other | Homebrew | brew | 80a46edee487163cb853c6a4ab81e5b81dc54d77.json | tap: add style_exceptions configuration | Library/Homebrew/tap_auditor.rb | @@ -8,13 +8,14 @@ module Homebrew
class TapAuditor
extend T::Sig
- attr_reader :name, :path, :tap_audit_exceptions, :tap_pypi_formula_mappings, :problems
+ attr_reader :name, :path, :tap_audit_exceptions, :tap_style_exceptions, :tap_pypi_formula_mappings, :problems
sig { params(tap: Tap, strict: ... | true |
Other | Homebrew | brew | 97c9a952d3a78f532a2caaa5efdad743513018ff.json | Recognize AMD CPUs on Linux | Library/Homebrew/extend/os/linux/hardware/cpu.rb | @@ -20,12 +20,24 @@ def family
# See https://software.intel.com/en-us/articles/intel-architecture-and-processor-identification-with-cpuid-model-and-family-numbers
# and https://github.com/llvm-mirror/llvm/blob/HEAD/lib/Support/Host.cpp
# and https://en.wikipedia.org/wiki/List_of_Intel_CPU_mic... | false |
Other | Homebrew | brew | 7d9758a05ecf8cef93ba919568579cd0bee58c82.json | Fix RuboCop offenses. | Library/Homebrew/extend/os/mac/hardware/cpu.rb | @@ -77,7 +77,7 @@ def features
"machdep.cpu.features",
"machdep.cpu.extfeatures",
"machdep.cpu.leaf7_features",
- ).split(" ").map { |s| s.downcase.to_sym }
+ ).split.map { |s| s.downcase.to_sym }
end
def sse4? | true |
Other | Homebrew | brew | 7d9758a05ecf8cef93ba919568579cd0bee58c82.json | Fix RuboCop offenses. | Library/Homebrew/formula.rb | @@ -2010,7 +2010,7 @@ def system(cmd, *args)
@exec_count += 1
logfn = format("#{logs}/#{active_log_prefix}%02<exec_count>d.%<cmd_base>s",
exec_count: @exec_count,
- cmd_base: File.basename(cmd).split(" ").first)
+ cmd_base: File.basename(cmd).split.f... | true |
Other | Homebrew | brew | 7d9758a05ecf8cef93ba919568579cd0bee58c82.json | Fix RuboCop offenses. | Library/Homebrew/formula_installer.rb | @@ -1217,7 +1217,7 @@ def forbidden_license_check
pattern = /#{s.to_s.tr("_", " ")}/i
forbidden_licenses.sub!(pattern, s.to_s)
end
- forbidden_licenses = forbidden_licenses.split(" ").to_h do |license|
+ forbidden_licenses = forbidden_licenses.split.to_h do |license|
[license, SPDX.licen... | true |
Other | Homebrew | brew | 7d9758a05ecf8cef93ba919568579cd0bee58c82.json | Fix RuboCop offenses. | Library/Homebrew/rubocops/livecheck.rb | @@ -146,7 +146,7 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
def autocorrect(node)
lambda do |corrector|
- pattern = node.source.split(" ")[1..].join
+ pattern = node.source.split[1..].join
corrector.replace(node.source_range, "regex(#... | true |
Other | Homebrew | brew | 7d9758a05ecf8cef93ba919568579cd0bee58c82.json | Fix RuboCop offenses. | Library/Homebrew/test/exceptions_spec.rb | @@ -81,6 +81,7 @@
let(:mod) do
Module.new do
class Bar < Requirement; end
+
class Baz < Formula; end
end
end | true |
Other | Homebrew | brew | 10f2a39f9ca5f7893d3488e6ce9fb3e43039cd52.json | Remove unneeded quotes. | .github/workflows/tests.yml | @@ -50,10 +50,10 @@ jobs:
include:
- name: tap syntax (Linux)
os: ubuntu-latest
- core-tap: "linuxbrew-core"
+ core-tap: linuxbrew-core
- name: tap syntax (macOS)
os: macos-11.0
- core-tap: "homebrew-core"
+ core-tap: h... | false |
Other | Homebrew | brew | da8d91bd053c315ff72430043a7481f26f32e04a.json | Fix `.simplecov` exit status for integration tests. | Library/Homebrew/.simplecov | @@ -30,16 +30,17 @@ SimpleCov.start do
SimpleCov.print_error_status = false
SimpleCov.at_exit do
- $stdout.reopen("/dev/null")
-
# Just save result, but don't write formatted output.
coverage_result = Coverage.result
# TODO: this method is private, find a better way.
SimpleC... | true |
Other | Homebrew | brew | da8d91bd053c315ff72430043a7481f26f32e04a.json | Fix `.simplecov` exit status for integration tests. | Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb | @@ -13,7 +13,8 @@
matcher :be_a_success do
match do |actual|
status = actual.is_a?(Proc) ? actual.call : actual
- status.respond_to?(:success?) && status.success?
+ expect(status).to respond_to(:success?)
+ status.success?
end
def supports_block_expectations? | true |
Other | Homebrew | brew | 8298f95677c939f42299ba4c42d1bd89a38c6179.json | Increase timeout for integration tests. | Library/Homebrew/test/spec_helper.rb | @@ -80,7 +80,11 @@
if ENV["CI"]
config.verbose_retry = true
config.display_try_failure_messages = true
- config.default_retry_count = 2
+
+ config.around(:each, :integration_test) do |example|
+ example.metadata[:timeout] ||= 120
+ example.run
+ end
config.around(:each, :needs_net... | false |
Other | Homebrew | brew | 2552ecb1e7b4148123e3b83990aee05a0a452271.json | Add missing `require`s for `style` spec. | Library/Homebrew/test/cask/cmd/style_spec.rb | @@ -3,6 +3,9 @@
require "open3"
+require "cli/args"
+require "cli/named_args"
+
require_relative "shared_examples/invalid_option"
describe Cask::Cmd::Style, :cask do | false |
Other | Homebrew | brew | 91893c42f87256582593d74c3cac536a2fc3c81d.json | Update RBI files for rubocop-performance. | Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.0.0.rbi | @@ -5,9 +5,6 @@
# typed: true
module Regexp::Expression
- class << self
- def parsed(exp); end
- end
end
class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation
@@ -86,7 +83,7 @@ end
class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base
def match_length; end... | true |
Other | Homebrew | brew | 91893c42f87256582593d74c3cac536a2fc3c81d.json | Update RBI files for rubocop-performance. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.2.0.rbi | @@ -24,9 +24,16 @@ class RuboCop::AST::AndNode < ::RuboCop::AST::Node
def inverse_operator; end
end
+class RuboCop::AST::ArgNode < ::RuboCop::AST::Node
+ def default?; end
+ def default_value; end
+ def name; end
+end
+
class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node
include(::RuboCop::AST::CollectionN... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.