Merge remote-tracking branch 'origin/master' into auto-bump
This commit is contained in:
commit
9127bf2c71
1
.github/workflows/docker.yml
vendored
1
.github/workflows/docker.yml
vendored
@ -16,6 +16,7 @@ permissions:
|
||||
jobs:
|
||||
ubuntu:
|
||||
if: github.repository_owner == 'Homebrew'
|
||||
name: docker (Ubuntu ${{ matrix.version }})
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
||||
run: vale docs/
|
||||
|
||||
- name: Install Ruby
|
||||
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
|
||||
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0
|
||||
with:
|
||||
bundler-cache: true
|
||||
working-directory: docs
|
||||
|
||||
2
.github/workflows/rubydoc.yml
vendored
2
.github/workflows/rubydoc.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
path: rubydoc
|
||||
|
||||
- name: Install Ruby
|
||||
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
|
||||
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0
|
||||
with:
|
||||
bundler-cache: true
|
||||
working-directory: rubydoc
|
||||
|
||||
2
.github/workflows/vendor-gems.yml
vendored
2
.github/workflows/vendor-gems.yml
vendored
@ -90,7 +90,7 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Generate push token
|
||||
uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1
|
||||
uses: actions/create-github-app-token@3378cda945da322a8db4b193e19d46352ebe2de5 # v1
|
||||
id: app-token
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
with:
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -89,6 +89,7 @@
|
||||
**/vendor/bundle/ruby/*/gems/json_schemer-*/
|
||||
**/vendor/bundle/ruby/*/gems/kramdown-*/
|
||||
**/vendor/bundle/ruby/*/gems/language_server-protocol-*/
|
||||
**/vendor/bundle/ruby/*/gems/logger-*/
|
||||
**/vendor/bundle/ruby/*/gems/method_source-*/
|
||||
**/vendor/bundle/ruby/*/gems/mini_portile2-*/
|
||||
**/vendor/bundle/ruby/*/gems/minitest-*/
|
||||
|
||||
@ -278,6 +278,7 @@ Sorbet/StrictSigil:
|
||||
- "Taps/**/*"
|
||||
- "/**/{Formula,Casks}/**/*.rb"
|
||||
- "**/{Formula,Casks}/**/*.rb"
|
||||
- "Homebrew/{standalone,startup}/*.rb" # These are loaded before sorbet-runtime
|
||||
- "Homebrew/test/**/*.rb"
|
||||
|
||||
Sorbet/TrueSigil:
|
||||
|
||||
@ -25,7 +25,7 @@ GEM
|
||||
kramdown (2.4.0)
|
||||
rexml
|
||||
language_server-protocol (3.17.0.3)
|
||||
logger (1.6.0)
|
||||
logger (1.6.1)
|
||||
method_source (1.1.0)
|
||||
minitest (5.25.1)
|
||||
netrc (0.11.0)
|
||||
@ -37,7 +37,7 @@ GEM
|
||||
parser
|
||||
rainbow (~> 3.0)
|
||||
sorbet-runtime (>= 0.5)
|
||||
parser (3.3.4.2)
|
||||
parser (3.3.5.0)
|
||||
ast (~> 2.4.1)
|
||||
racc
|
||||
patchelf (1.5.1)
|
||||
@ -57,13 +57,12 @@ GEM
|
||||
logger
|
||||
redcarpet (3.6.0)
|
||||
regexp_parser (2.9.2)
|
||||
rexml (3.3.6)
|
||||
strscan
|
||||
rexml (3.3.7)
|
||||
rspec (3.13.0)
|
||||
rspec-core (~> 3.13.0)
|
||||
rspec-expectations (~> 3.13.0)
|
||||
rspec-mocks (~> 3.13.0)
|
||||
rspec-core (3.13.0)
|
||||
rspec-core (3.13.1)
|
||||
rspec-support (~> 3.13.0)
|
||||
rspec-expectations (3.13.2)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
@ -91,7 +90,7 @@ GEM
|
||||
rubocop-ast (>= 1.31.1, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 2.4.0, < 3.0)
|
||||
rubocop-ast (1.32.1)
|
||||
rubocop-ast (1.32.3)
|
||||
parser (>= 3.3.1.0)
|
||||
rubocop-md (1.2.2)
|
||||
rubocop (>= 1.0)
|
||||
@ -120,22 +119,21 @@ GEM
|
||||
simplecov-html (0.12.3)
|
||||
simplecov_json_formatter (0.1.4)
|
||||
simpleidn (0.2.3)
|
||||
sorbet (0.5.11553)
|
||||
sorbet-static (= 0.5.11553)
|
||||
sorbet-runtime (0.5.11553)
|
||||
sorbet-static (0.5.11553-aarch64-linux)
|
||||
sorbet-static (0.5.11553-universal-darwin)
|
||||
sorbet-static (0.5.11553-x86_64-linux)
|
||||
sorbet-static-and-runtime (0.5.11553)
|
||||
sorbet (= 0.5.11553)
|
||||
sorbet-runtime (= 0.5.11553)
|
||||
sorbet (0.5.11554)
|
||||
sorbet-static (= 0.5.11554)
|
||||
sorbet-runtime (0.5.11554)
|
||||
sorbet-static (0.5.11554-aarch64-linux)
|
||||
sorbet-static (0.5.11554-universal-darwin)
|
||||
sorbet-static (0.5.11554-x86_64-linux)
|
||||
sorbet-static-and-runtime (0.5.11554)
|
||||
sorbet (= 0.5.11554)
|
||||
sorbet-runtime (= 0.5.11554)
|
||||
spoom (1.4.2)
|
||||
erubi (>= 1.10.0)
|
||||
prism (>= 0.28.0)
|
||||
sorbet-static-and-runtime (>= 0.5.10187)
|
||||
thor (>= 0.19.2)
|
||||
stackprof (0.2.26)
|
||||
strscan (3.1.0)
|
||||
tapioca (0.16.2)
|
||||
bundler (>= 2.2.25)
|
||||
netrc (>= 0.11.0)
|
||||
@ -149,7 +147,7 @@ GEM
|
||||
unicode-display_width (2.5.0)
|
||||
vernier (1.1.2)
|
||||
warning (1.4.0)
|
||||
yard (0.9.36)
|
||||
yard (0.9.37)
|
||||
yard-sorbet (0.9.0)
|
||||
sorbet-runtime
|
||||
yard
|
||||
|
||||
@ -4,10 +4,7 @@
|
||||
require "api/analytics"
|
||||
require "api/cask"
|
||||
require "api/formula"
|
||||
require "warnings"
|
||||
Warnings.ignore :default_gems do
|
||||
require "base64" # TODO: Add this to the Gemfile or remove it before moving to Ruby 3.4.
|
||||
end
|
||||
require "base64" # TODO: vendor this for Ruby 3.4.
|
||||
|
||||
module Homebrew
|
||||
# Helper functions for using Homebrew's formulae.brew.sh API.
|
||||
|
||||
@ -54,6 +54,13 @@ then
|
||||
HOMEBREW_DEFAULT_CACHE="${HOME}/Library/Caches/Homebrew"
|
||||
HOMEBREW_DEFAULT_LOGS="${HOME}/Library/Logs/Homebrew"
|
||||
HOMEBREW_DEFAULT_TEMP="/private/tmp"
|
||||
|
||||
HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)"
|
||||
|
||||
IFS=. read -r -a MACOS_VERSION_ARRAY <<<"${HOMEBREW_MACOS_VERSION}"
|
||||
printf -v HOMEBREW_MACOS_VERSION_NUMERIC "%02d%02d%02d" "${MACOS_VERSION_ARRAY[@]}"
|
||||
|
||||
unset MACOS_VERSION_ARRAY
|
||||
else
|
||||
CACHE_HOME="${HOMEBREW_XDG_CACHE_HOME:-${HOME}/.cache}"
|
||||
HOMEBREW_DEFAULT_CACHE="${CACHE_HOME}/Homebrew"
|
||||
@ -161,7 +168,7 @@ case "$@" in
|
||||
homebrew-command-path "$@" && exit 0
|
||||
;;
|
||||
# falls back to cmd/list.rb on a non-zero return
|
||||
list*)
|
||||
list* | ls*)
|
||||
source "${HOMEBREW_LIBRARY}/Homebrew/list.sh"
|
||||
homebrew-list "$@" && exit 0
|
||||
;;
|
||||
@ -523,7 +530,6 @@ then
|
||||
HOMEBREW_PRODUCT="Homebrew"
|
||||
HOMEBREW_SYSTEM="Macintosh"
|
||||
[[ "${HOMEBREW_PROCESSOR}" == "x86_64" ]] && HOMEBREW_PROCESSOR="Intel"
|
||||
HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)"
|
||||
# Don't change this from Mac OS X to match what macOS itself does in Safari on 10.12
|
||||
HOMEBREW_OS_USER_AGENT_VERSION="Mac OS X ${HOMEBREW_MACOS_VERSION}"
|
||||
|
||||
@ -534,9 +540,6 @@ then
|
||||
HOMEBREW_PHYSICAL_PROCESSOR="arm64"
|
||||
fi
|
||||
|
||||
IFS=. read -r -a MACOS_VERSION_ARRAY <<<"${HOMEBREW_MACOS_VERSION}"
|
||||
printf -v HOMEBREW_MACOS_VERSION_NUMERIC "%02d%02d%02d" "${MACOS_VERSION_ARRAY[@]}"
|
||||
|
||||
IFS=. read -r -a MACOS_VERSION_ARRAY <<<"${HOMEBREW_MACOS_OLDEST_ALLOWED}"
|
||||
printf -v HOMEBREW_MACOS_OLDEST_ALLOWED_NUMERIC "%02d%02d%02d" "${MACOS_VERSION_ARRAY[@]}"
|
||||
|
||||
|
||||
@ -295,6 +295,7 @@ module Homebrew
|
||||
|
||||
cleanup_cache
|
||||
cleanup_empty_api_source_directories
|
||||
cleanup_bootsnap
|
||||
cleanup_logs
|
||||
cleanup_lockfiles
|
||||
cleanup_python_site_packages
|
||||
@ -314,7 +315,6 @@ module Homebrew
|
||||
return if periodic
|
||||
|
||||
cleanup_portable_ruby
|
||||
cleanup_bootsnap
|
||||
else
|
||||
args.each do |arg|
|
||||
formula = begin
|
||||
@ -528,9 +528,11 @@ module Homebrew
|
||||
|
||||
def cleanup_bootsnap
|
||||
bootsnap = cache/"bootsnap"
|
||||
return unless bootsnap.exist?
|
||||
return unless bootsnap.directory?
|
||||
|
||||
cleanup_path(bootsnap) { bootsnap.rmtree }
|
||||
bootsnap.each_child do |subdir|
|
||||
cleanup_path(subdir) { subdir.rmtree } if subdir.basename.to_s != Homebrew.bootsnap_key
|
||||
end
|
||||
end
|
||||
|
||||
def cleanup_cache_db(rack = nil)
|
||||
|
||||
@ -63,7 +63,7 @@ module Homebrew
|
||||
}],
|
||||
[:flag, "--cc=", {
|
||||
description: "Attempt to compile using the specified <compiler>, which should be the name of the " \
|
||||
"compiler's executable, e.g. `gcc-7` for GCC 7. In order to use LLVM's clang, specify " \
|
||||
"compiler's executable, e.g. `gcc-9` for GCC 9. In order to use LLVM's clang, specify " \
|
||||
"`llvm_clang`. To use the Apple-provided clang, specify `clang`. This option will only " \
|
||||
"accept compilers that are provided by Homebrew or bundled with macOS. Please do not " \
|
||||
"file issues if you encounter errors while using this option.",
|
||||
|
||||
@ -18,6 +18,23 @@ homebrew-shellenv() {
|
||||
HOMEBREW_SHELL_NAME="$(/bin/ps -p "${PPID}" -c -o comm=)"
|
||||
fi
|
||||
|
||||
if [[ -n "${HOMEBREW_MACOS}" ]] &&
|
||||
[[ "${HOMEBREW_MACOS_VERSION_NUMERIC}" -ge "140000" ]] &&
|
||||
[[ -x /usr/libexec/path_helper ]]
|
||||
then
|
||||
HOMEBREW_PATHS_FILE="${HOMEBREW_PREFIX}/etc/paths"
|
||||
|
||||
if [[ ! -f "${HOMEBREW_PATHS_FILE}" ]]
|
||||
then
|
||||
printf '%s/bin\n%s/sbin\n' "${HOMEBREW_PREFIX}" "${HOMEBREW_PREFIX}" >"${HOMEBREW_PATHS_FILE}" 2>/dev/null
|
||||
fi
|
||||
|
||||
if [[ -r "${HOMEBREW_PATHS_FILE}" ]]
|
||||
then
|
||||
PATH_HELPER_ROOT="${HOMEBREW_PREFIX}"
|
||||
fi
|
||||
fi
|
||||
|
||||
case "${HOMEBREW_SHELL_NAME}" in
|
||||
fish | -fish)
|
||||
echo "set -gx HOMEBREW_PREFIX \"${HOMEBREW_PREFIX}\";"
|
||||
@ -31,7 +48,12 @@ homebrew-shellenv() {
|
||||
echo "setenv HOMEBREW_PREFIX ${HOMEBREW_PREFIX};"
|
||||
echo "setenv HOMEBREW_CELLAR ${HOMEBREW_CELLAR};"
|
||||
echo "setenv HOMEBREW_REPOSITORY ${HOMEBREW_REPOSITORY};"
|
||||
echo "setenv PATH ${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:\$PATH;"
|
||||
if [[ -n "${PATH_HELPER_ROOT}" ]]
|
||||
then
|
||||
PATH_HELPER_ROOT="${PATH_HELPER_ROOT}" PATH="${HOMEBREW_PATH}" /usr/libexec/path_helper -c
|
||||
else
|
||||
echo "setenv PATH ${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:\$PATH;"
|
||||
fi
|
||||
echo "test \${?MANPATH} -eq 1 && setenv MANPATH :\${MANPATH};"
|
||||
echo "setenv INFOPATH ${HOMEBREW_PREFIX}/share/info\`test \${?INFOPATH} -eq 1 && echo :\${INFOPATH}\`;"
|
||||
;;
|
||||
@ -47,7 +69,12 @@ homebrew-shellenv() {
|
||||
echo "export HOMEBREW_PREFIX=\"${HOMEBREW_PREFIX}\";"
|
||||
echo "export HOMEBREW_CELLAR=\"${HOMEBREW_CELLAR}\";"
|
||||
echo "export HOMEBREW_REPOSITORY=\"${HOMEBREW_REPOSITORY}\";"
|
||||
echo "export PATH=\"${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin\${PATH+:\$PATH}\";"
|
||||
if [[ -n "${PATH_HELPER_ROOT}" ]]
|
||||
then
|
||||
PATH_HELPER_ROOT="${PATH_HELPER_ROOT}" PATH="${HOMEBREW_PATH}" /usr/libexec/path_helper -s
|
||||
else
|
||||
echo "export PATH=\"${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin\${PATH+:\$PATH}\";"
|
||||
fi
|
||||
echo "[ -z \"\${MANPATH-}\" ] || export MANPATH=\":\${MANPATH#:}\";"
|
||||
echo "export INFOPATH=\"${HOMEBREW_PREFIX}/share/info:\${INFOPATH:-}\";"
|
||||
;;
|
||||
|
||||
@ -362,11 +362,4 @@ homebrew-vendor-install() {
|
||||
lock "vendor-install ${VENDOR_NAME}"
|
||||
fetch
|
||||
install
|
||||
|
||||
# Bootsnap needs cleaned up on a new Ruby version.
|
||||
# It's cleaned up by every `brew cleanup` run anyway so not a big deal to do it here, too.
|
||||
if [[ "${VENDOR_NAME}" == "ruby" ]]
|
||||
then
|
||||
rm -rf "${HOMEBREW_CACHE}/bootsnap"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -685,7 +685,9 @@ module Homebrew
|
||||
"root_url" => bottle.root_url,
|
||||
"cellar" => bottle_cellar.to_s,
|
||||
"rebuild" => bottle.rebuild,
|
||||
"date" => Pathname(filename.to_s).mtime.strftime("%F"),
|
||||
# date is used for org.opencontainers.image.created which is an RFC 3339 date-time.
|
||||
# Time#iso8601 produces an XML Schema date-time that meets RFC 3339 ABNF.
|
||||
"date" => Pathname(filename.to_s).mtime.utc.iso8601,
|
||||
"tags" => {
|
||||
bottle_tag.to_s => {
|
||||
"filename" => filename.url_encode,
|
||||
|
||||
@ -124,10 +124,7 @@ module Homebrew
|
||||
|
||||
sig { params(totals: T::Hash[String, T::Hash[Symbol, Integer]]).returns(String) }
|
||||
def generate_csv(totals)
|
||||
require "warnings"
|
||||
Warnings.ignore :default_gems do
|
||||
require "csv"
|
||||
end
|
||||
require "csv" # TODO: this will be removed from Ruby 3.4
|
||||
|
||||
CSV.generate do |csv|
|
||||
csv << %w[user repo author committer coauthor review total]
|
||||
|
||||
@ -28,6 +28,8 @@ module Homebrew
|
||||
sig { override.void }
|
||||
def run
|
||||
ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil)
|
||||
# Recover $TMPDIR for emacsclient
|
||||
ENV["TMPDIR"] = ENV.fetch("HOMEBREW_TMPDIR", nil)
|
||||
|
||||
unless (HOMEBREW_REPOSITORY/".git").directory?
|
||||
odie <<~EOS
|
||||
|
||||
@ -3356,7 +3356,7 @@ class Formula
|
||||
#
|
||||
# @!attribute [w] license
|
||||
# @see https://docs.brew.sh/License-Guidelines Homebrew License Guidelines
|
||||
# @see https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/ SPDX license expression guide
|
||||
# @see https://spdx.github.io/spdx-spec/latest/annexes/spdx-license-expressions/ SPDX license expression guide
|
||||
# @api public
|
||||
def license(args = nil)
|
||||
if args.nil?
|
||||
|
||||
@ -199,14 +199,34 @@ module Homebrew
|
||||
"LGPL-3.0" => ["LGPL-3.0-only", "LGPL-3.0-or-later"],
|
||||
}.freeze
|
||||
|
||||
# The following licenses are non-free/open based on multiple sources (e.g. Debian, Fedora, FSF, OSI, ...)
|
||||
INCOMPATIBLE_LICENSES = [
|
||||
"Aladdin", # https://www.gnu.org/licenses/license-list.html#Aladdin
|
||||
"CPOL-1.02", # https://www.gnu.org/licenses/license-list.html#cpol
|
||||
"gSOAP-1.3b", # https://salsa.debian.org/ellert/gsoap/-/blob/master/debian/copyright
|
||||
"JSON", # https://wiki.debian.org/DFSGLicenses#JSON_evil_license
|
||||
"MS-LPL", # https://github.com/spdx/license-list-XML/issues/1432#issuecomment-1077680709
|
||||
"OPL-1.0", # https://wiki.debian.org/DFSGLicenses#Open_Publication_License_.28OPL.29_v1.0
|
||||
].freeze
|
||||
INCOMPATIBLE_LICENSE_PREFIXES = [
|
||||
"BUSL", # https://spdx.org/licenses/BUSL-1.1.html#notes
|
||||
"CC-BY-NC", # https://people.debian.org/~bap/dfsg-faq.html#no_commercial
|
||||
"Elastic", # https://www.elastic.co/licensing/elastic-license#Limitations
|
||||
"SSPL", # https://fedoraproject.org/wiki/Licensing/SSPL#License_Notes
|
||||
].freeze
|
||||
|
||||
def audit_license
|
||||
if formula.license.present?
|
||||
licenses, exceptions = SPDX.parse_license_expression formula.license
|
||||
|
||||
sspl_licensed = licenses.any? { |license| license.to_s.start_with?("SSPL") }
|
||||
if sspl_licensed && @core_tap
|
||||
incompatible_licenses = licenses.select do |license|
|
||||
license.to_s.start_with?(*INCOMPATIBLE_LICENSE_PREFIXES) || INCOMPATIBLE_LICENSES.include?(license.to_s)
|
||||
end
|
||||
if incompatible_licenses.present? && @core_tap
|
||||
problem <<~EOS
|
||||
Formula #{formula.name} is SSPL-licensed. Software under the SSPL must not be packaged in homebrew/core.
|
||||
Formula #{formula.name} contains incompatible licenses: #{incompatible_licenses}.
|
||||
Formulae in homebrew/core must either use a Debian Free Software Guidelines license
|
||||
or be released into the public domain. See #{Formatter.url("https://docs.brew.sh/License-Guidelines")}
|
||||
EOS
|
||||
end
|
||||
|
||||
@ -218,7 +238,7 @@ module Homebrew
|
||||
EOS
|
||||
end
|
||||
|
||||
if @strict
|
||||
if @strict || @core_tap
|
||||
deprecated_licenses = licenses.select do |license|
|
||||
SPDX.deprecated_license? license
|
||||
end
|
||||
@ -255,7 +275,7 @@ module Homebrew
|
||||
|
||||
problem "Formula license #{licenses} does not match GitHub license #{Array(github_license)}."
|
||||
|
||||
elsif @new_formula && @core_tap
|
||||
elsif @core_tap && !formula.disabled?
|
||||
problem "Formulae in homebrew/core must specify a license."
|
||||
end
|
||||
end
|
||||
|
||||
@ -291,6 +291,7 @@ class GitHubPackages
|
||||
remote
|
||||
end
|
||||
|
||||
license = bottle_hash["formula"]["license"].to_s
|
||||
created_date = bottle_hash["bottle"]["date"]
|
||||
if keep_old
|
||||
index = JSON.parse((root/"index.json").read)
|
||||
@ -301,12 +302,20 @@ class GitHubPackages
|
||||
formula_annotations_hash = image_index["annotations"]
|
||||
manifests = image_index["manifests"]
|
||||
else
|
||||
image_license = if license.length <= 256
|
||||
license
|
||||
else
|
||||
# TODO: Consider generating a truncated license when over the limit
|
||||
require "utils/spdx"
|
||||
SPDX.license_expression_to_string(:cannot_represent)
|
||||
end
|
||||
|
||||
formula_annotations_hash = {
|
||||
"com.github.package.type" => GITHUB_PACKAGE_TYPE,
|
||||
"org.opencontainers.image.created" => created_date,
|
||||
"org.opencontainers.image.description" => bottle_hash["formula"]["desc"],
|
||||
"org.opencontainers.image.documentation" => documentation,
|
||||
"org.opencontainers.image.licenses" => bottle_hash["formula"]["license"],
|
||||
"org.opencontainers.image.licenses" => image_license,
|
||||
"org.opencontainers.image.ref.name" => version_rebuild,
|
||||
"org.opencontainers.image.revision" => git_revision,
|
||||
"org.opencontainers.image.source" => source,
|
||||
@ -395,6 +404,7 @@ class GitHubPackages
|
||||
"sh.brew.bottle.glibc.version" => glibc_version,
|
||||
"sh.brew.bottle.size" => local_file_size.to_s,
|
||||
"sh.brew.bottle.installed_size" => tag_hash["installed_size"].to_s,
|
||||
"sh.brew.license" => license,
|
||||
"sh.brew.tab" => tab.to_json,
|
||||
"sh.brew.path_exec_files" => path_exec_files_string,
|
||||
}.compact_blank
|
||||
|
||||
@ -316,7 +316,7 @@ class Keg
|
||||
unless dry_run
|
||||
remove_old_aliases
|
||||
remove_linked_keg_record if linked?
|
||||
dirs.reverse_each(&:rmdir_if_possible)
|
||||
(dirs - MUST_EXIST_SUBDIRECTORIES).reverse_each(&:rmdir_if_possible)
|
||||
end
|
||||
|
||||
ObserverPathnameExtension.n
|
||||
|
||||
@ -4,38 +4,49 @@
|
||||
homebrew-list() {
|
||||
case "$1" in
|
||||
# check we actually have list and not e.g. listsomething
|
||||
list) ;;
|
||||
list*) return 1 ;;
|
||||
list | ls) ;;
|
||||
list* | ls*) return 1 ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
local ls_env=()
|
||||
local ls_args=()
|
||||
local formula=""
|
||||
local cask=""
|
||||
|
||||
local first_arg
|
||||
for arg in "$@"
|
||||
do
|
||||
if [[ -z "${first_arg}" ]]
|
||||
then
|
||||
first_arg=1
|
||||
[[ "${arg}" == "list" ]] && continue
|
||||
fi
|
||||
case "${arg}" in
|
||||
# check for flags passed to ls
|
||||
-1 | -l | -r | -t) ls_args+=("${arg}") ;;
|
||||
--formula | --formulae) formula=1 ;;
|
||||
--cask | --casks) cask=1 ;;
|
||||
# reject all other flags
|
||||
-* | *) return 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
local tty
|
||||
if [[ -t 1 ]]
|
||||
then
|
||||
tty=1
|
||||
ls_args+=("-Cq")
|
||||
source "${HOMEBREW_LIBRARY}/Homebrew/utils/helpers.sh"
|
||||
ls_env+=("COLUMNS=$(columns)")
|
||||
fi
|
||||
|
||||
local formula=""
|
||||
local cask=""
|
||||
|
||||
# `OPTIND` is used internally by `getopts` to track parsing position
|
||||
local OPTIND=2 # skip $1 (and localise OPTIND to this function)
|
||||
while getopts ":1lrt-:" arg
|
||||
do
|
||||
case "${arg}" in
|
||||
# check for flags passed to ls
|
||||
1 | l | r | t) ls_args+=("-${arg}") ;;
|
||||
-)
|
||||
local parsed_index=$((OPTIND - 1)) # Parse full arg to reject e.g. -r-formula
|
||||
case "${!parsed_index}" in
|
||||
--formula | --formulae) formula=1 ;;
|
||||
--cask | --casks) cask=1 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
;;
|
||||
# reject all other flags
|
||||
*) return 1 ;;
|
||||
esac
|
||||
done
|
||||
# If we haven't reached the end of the arg list, we have named args.
|
||||
if ((OPTIND - 1 != $#))
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ -z "${cask}" && -d "${HOMEBREW_CELLAR}" ]]
|
||||
@ -46,7 +57,7 @@ homebrew-list() {
|
||||
fi
|
||||
|
||||
local formula_output
|
||||
formula_output="$(ls "${ls_args[@]}" "${HOMEBREW_CELLAR}")" || exit 1
|
||||
formula_output="$(/usr/bin/env "${ls_env[@]}" ls "${ls_args[@]}" "${HOMEBREW_CELLAR}")" || exit 1
|
||||
if [[ -n "${formula_output}" ]]
|
||||
then
|
||||
echo "${formula_output}"
|
||||
@ -66,7 +77,7 @@ homebrew-list() {
|
||||
fi
|
||||
|
||||
local cask_output
|
||||
cask_output="$(ls "${ls_args[@]}" "${HOMEBREW_CASKROOM}")" || exit 1
|
||||
cask_output="$(/usr/bin/env "${ls_env[@]}" ls "${ls_args[@]}" "${HOMEBREW_CASKROOM}")" || exit 1
|
||||
if [[ -n "${cask_output}" ]]
|
||||
then
|
||||
echo "${cask_output}"
|
||||
|
||||
@ -294,7 +294,6 @@ class Cmd
|
||||
|
||||
return args if !refurbish_args? && !configure?
|
||||
|
||||
args << "-pipe"
|
||||
args << "-w" unless configure?
|
||||
args << "-#{ENV["HOMEBREW_OPTIMIZATION_LEVEL"]}"
|
||||
args.concat(optflags) unless runtime_cpu_detection?
|
||||
|
||||
@ -133,7 +133,7 @@
|
||||
# when the entry is created.
|
||||
#
|
||||
# The logged timestamp is formatted by method
|
||||
# {Time#strftime}[rdoc-ref:Time#strftime]
|
||||
# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime]
|
||||
# using this format string:
|
||||
#
|
||||
# '%Y-%m-%dT%H:%M:%S.%6N'
|
||||
@ -350,7 +350,9 @@
|
||||
# You can set a different format using create-time option
|
||||
# +shift_period_suffix+;
|
||||
# see details and suggestions at
|
||||
# {Time#strftime}[rdoc-ref:Time#strftime].
|
||||
# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime].
|
||||
#
|
||||
# source://logger//lib/logger/version.rb#3
|
||||
class Logger
|
||||
include ::Logger::Severity
|
||||
|
||||
@ -398,11 +400,14 @@ class Logger
|
||||
# - +shift_period_suffix+: sets the format for the filename suffix
|
||||
# for periodic log file rotation; default is <tt>'%Y%m%d'</tt>.
|
||||
# See {Periodic Rotation}[rdoc-ref:Logger@Periodic+Rotation].
|
||||
# - +reraise_write_errors+: An array of exception classes, which will
|
||||
# be reraised if there is an error when writing to the log device.
|
||||
# The default is to swallow all exceptions raised.
|
||||
#
|
||||
# @return [Logger] a new instance of Logger
|
||||
#
|
||||
# source://logger//logger.rb#578
|
||||
def initialize(logdev, shift_age = T.unsafe(nil), shift_size = T.unsafe(nil), level: T.unsafe(nil), progname: T.unsafe(nil), formatter: T.unsafe(nil), datetime_format: T.unsafe(nil), binmode: T.unsafe(nil), shift_period_suffix: T.unsafe(nil)); end
|
||||
# source://logger//lib/logger.rb#581
|
||||
def initialize(logdev, shift_age = T.unsafe(nil), shift_size = T.unsafe(nil), level: T.unsafe(nil), progname: T.unsafe(nil), formatter: T.unsafe(nil), datetime_format: T.unsafe(nil), binmode: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), reraise_write_errors: T.unsafe(nil)); end
|
||||
|
||||
# Writes the given +msg+ to the log with no formatting;
|
||||
# returns the number of characters written,
|
||||
@ -415,7 +420,7 @@ class Logger
|
||||
#
|
||||
# My message.
|
||||
#
|
||||
# source://logger//logger.rb#684
|
||||
# source://logger//lib/logger.rb#689
|
||||
def <<(msg); end
|
||||
|
||||
# Creates a log entry, which may or may not be written to the log,
|
||||
@ -445,7 +450,7 @@ class Logger
|
||||
# - #fatal.
|
||||
# - #unknown.
|
||||
#
|
||||
# source://logger//logger.rb#651
|
||||
# source://logger//lib/logger.rb#656
|
||||
def add(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end
|
||||
|
||||
# Closes the logger; returns +nil+:
|
||||
@ -456,12 +461,12 @@ class Logger
|
||||
#
|
||||
# Related: Logger#reopen.
|
||||
#
|
||||
# source://logger//logger.rb#731
|
||||
# source://logger//lib/logger.rb#736
|
||||
def close; end
|
||||
|
||||
# Returns the date-time format; see #datetime_format=.
|
||||
#
|
||||
# source://logger//logger.rb#438
|
||||
# source://logger//lib/logger.rb#438
|
||||
def datetime_format; end
|
||||
|
||||
# Sets the date-time format.
|
||||
@ -469,21 +474,21 @@ class Logger
|
||||
# Argument +datetime_format+ should be either of these:
|
||||
#
|
||||
# - A string suitable for use as a format for method
|
||||
# {Time#strftime}[rdoc-ref:Time#strftime].
|
||||
# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime].
|
||||
# - +nil+: the logger uses <tt>'%Y-%m-%dT%H:%M:%S.%6N'</tt>.
|
||||
#
|
||||
# source://logger//logger.rb#432
|
||||
# source://logger//lib/logger.rb#432
|
||||
def datetime_format=(datetime_format); end
|
||||
|
||||
# Equivalent to calling #add with severity <tt>Logger::DEBUG</tt>.
|
||||
#
|
||||
# source://logger//logger.rb#690
|
||||
# source://logger//lib/logger.rb#695
|
||||
def debug(progname = T.unsafe(nil), &block); end
|
||||
|
||||
# Sets the log level to Logger::DEBUG.
|
||||
# See {Log Level}[rdoc-ref:Logger@Log+Level].
|
||||
#
|
||||
# source://logger//logger.rb#487
|
||||
# source://logger//lib/logger.rb#487
|
||||
def debug!; end
|
||||
|
||||
# Returns +true+ if the log level allows entries with severity
|
||||
@ -492,18 +497,18 @@ class Logger
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://logger//logger.rb#482
|
||||
# source://logger//lib/logger.rb#482
|
||||
def debug?; end
|
||||
|
||||
# Equivalent to calling #add with severity <tt>Logger::ERROR</tt>.
|
||||
#
|
||||
# source://logger//logger.rb#708
|
||||
# source://logger//lib/logger.rb#713
|
||||
def error(progname = T.unsafe(nil), &block); end
|
||||
|
||||
# Sets the log level to Logger::ERROR.
|
||||
# See {Log Level}[rdoc-ref:Logger@Log+Level].
|
||||
#
|
||||
# source://logger//logger.rb#520
|
||||
# source://logger//lib/logger.rb#520
|
||||
def error!; end
|
||||
|
||||
# Returns +true+ if the log level allows entries with severity
|
||||
@ -512,18 +517,18 @@ class Logger
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://logger//logger.rb#515
|
||||
# source://logger//lib/logger.rb#515
|
||||
def error?; end
|
||||
|
||||
# Equivalent to calling #add with severity <tt>Logger::FATAL</tt>.
|
||||
#
|
||||
# source://logger//logger.rb#714
|
||||
# source://logger//lib/logger.rb#719
|
||||
def fatal(progname = T.unsafe(nil), &block); end
|
||||
|
||||
# Sets the log level to Logger::FATAL.
|
||||
# See {Log Level}[rdoc-ref:Logger@Log+Level].
|
||||
#
|
||||
# source://logger//logger.rb#531
|
||||
# source://logger//lib/logger.rb#531
|
||||
def fatal!; end
|
||||
|
||||
# Returns +true+ if the log level allows entries with severity
|
||||
@ -532,7 +537,7 @@ class Logger
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://logger//logger.rb#526
|
||||
# source://logger//lib/logger.rb#526
|
||||
def fatal?; end
|
||||
|
||||
# Sets or retrieves the logger entry formatter proc.
|
||||
@ -550,7 +555,7 @@ class Logger
|
||||
# The proc should return a string containing the formatted entry.
|
||||
#
|
||||
# This custom formatter uses
|
||||
# {String#dump}[rdoc-ref:String#dump]
|
||||
# {String#dump}[https://docs.ruby-lang.org/en/master/String.html#method-i-dump]
|
||||
# to escape the message string:
|
||||
#
|
||||
# logger = Logger.new($stdout, progname: 'mung')
|
||||
@ -566,7 +571,7 @@ class Logger
|
||||
# I, [2022-05-13T13:16:29.637488 #8492] INFO -- mung: "hello \n ''"
|
||||
# I, [2022-05-13T13:16:29.637610 #8492] INFO -- mung: "\f\x00\xFF\\\""
|
||||
#
|
||||
# source://logger//logger.rb#473
|
||||
# source://logger//lib/logger.rb#473
|
||||
def formatter; end
|
||||
|
||||
# Sets or retrieves the logger entry formatter proc.
|
||||
@ -584,7 +589,7 @@ class Logger
|
||||
# The proc should return a string containing the formatted entry.
|
||||
#
|
||||
# This custom formatter uses
|
||||
# {String#dump}[rdoc-ref:String#dump]
|
||||
# {String#dump}[https://docs.ruby-lang.org/en/master/String.html#method-i-dump]
|
||||
# to escape the message string:
|
||||
#
|
||||
# logger = Logger.new($stdout, progname: 'mung')
|
||||
@ -600,18 +605,18 @@ class Logger
|
||||
# I, [2022-05-13T13:16:29.637488 #8492] INFO -- mung: "hello \n ''"
|
||||
# I, [2022-05-13T13:16:29.637610 #8492] INFO -- mung: "\f\x00\xFF\\\""
|
||||
#
|
||||
# source://logger//logger.rb#473
|
||||
# source://logger//lib/logger.rb#473
|
||||
def formatter=(_arg0); end
|
||||
|
||||
# Equivalent to calling #add with severity <tt>Logger::INFO</tt>.
|
||||
#
|
||||
# source://logger//logger.rb#696
|
||||
# source://logger//lib/logger.rb#701
|
||||
def info(progname = T.unsafe(nil), &block); end
|
||||
|
||||
# Sets the log level to Logger::INFO.
|
||||
# See {Log Level}[rdoc-ref:Logger@Log+Level].
|
||||
#
|
||||
# source://logger//logger.rb#498
|
||||
# source://logger//lib/logger.rb#498
|
||||
def info!; end
|
||||
|
||||
# Returns +true+ if the log level allows entries with severity
|
||||
@ -620,12 +625,12 @@ class Logger
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://logger//logger.rb#493
|
||||
# source://logger//lib/logger.rb#493
|
||||
def info?; end
|
||||
|
||||
# Logging severity threshold (e.g. <tt>Logger::INFO</tt>).
|
||||
#
|
||||
# source://logger//logger.rb#383
|
||||
# source://logger//lib/logger.rb#383
|
||||
def level; end
|
||||
|
||||
# Sets the log level; returns +severity+.
|
||||
@ -640,7 +645,7 @@ class Logger
|
||||
#
|
||||
# Logger#sev_threshold= is an alias for Logger#level=.
|
||||
#
|
||||
# source://logger//logger.rb#399
|
||||
# source://logger//lib/logger.rb#399
|
||||
def level=(severity); end
|
||||
|
||||
# Creates a log entry, which may or may not be written to the log,
|
||||
@ -670,17 +675,17 @@ class Logger
|
||||
# - #fatal.
|
||||
# - #unknown.
|
||||
#
|
||||
# source://logger//logger.rb#651
|
||||
# source://logger//lib/logger.rb#656
|
||||
def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end
|
||||
|
||||
# Program name to include in log messages.
|
||||
#
|
||||
# source://logger//logger.rb#422
|
||||
# source://logger//lib/logger.rb#422
|
||||
def progname; end
|
||||
|
||||
# Program name to include in log messages.
|
||||
#
|
||||
# source://logger//logger.rb#422
|
||||
# source://logger//lib/logger.rb#422
|
||||
def progname=(_arg0); end
|
||||
|
||||
# Sets the logger's output stream:
|
||||
@ -706,12 +711,12 @@ class Logger
|
||||
# # "E, [2022-05-12T14:21:27.596726 #22428] ERROR -- : one\n",
|
||||
# # "E, [2022-05-12T14:23:05.847241 #22428] ERROR -- : three\n"]
|
||||
#
|
||||
# source://logger//logger.rb#619
|
||||
# source://logger//lib/logger.rb#624
|
||||
def reopen(logdev = T.unsafe(nil)); end
|
||||
|
||||
# Logging severity threshold (e.g. <tt>Logger::INFO</tt>).
|
||||
#
|
||||
# source://logger//logger.rb#383
|
||||
# source://logger//lib/logger.rb#383
|
||||
def sev_threshold; end
|
||||
|
||||
# Sets the log level; returns +severity+.
|
||||
@ -726,23 +731,23 @@ class Logger
|
||||
#
|
||||
# Logger#sev_threshold= is an alias for Logger#level=.
|
||||
#
|
||||
# source://logger//logger.rb#399
|
||||
# source://logger//lib/logger.rb#399
|
||||
def sev_threshold=(severity); end
|
||||
|
||||
# Equivalent to calling #add with severity <tt>Logger::UNKNOWN</tt>.
|
||||
#
|
||||
# source://logger//logger.rb#720
|
||||
# source://logger//lib/logger.rb#725
|
||||
def unknown(progname = T.unsafe(nil), &block); end
|
||||
|
||||
# Equivalent to calling #add with severity <tt>Logger::WARN</tt>.
|
||||
#
|
||||
# source://logger//logger.rb#702
|
||||
# source://logger//lib/logger.rb#707
|
||||
def warn(progname = T.unsafe(nil), &block); end
|
||||
|
||||
# Sets the log level to Logger::WARN.
|
||||
# See {Log Level}[rdoc-ref:Logger@Log+Level].
|
||||
#
|
||||
# source://logger//logger.rb#509
|
||||
# source://logger//lib/logger.rb#509
|
||||
def warn!; end
|
||||
|
||||
# Returns +true+ if the log level allows entries with severity
|
||||
@ -751,7 +756,7 @@ class Logger
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://logger//logger.rb#504
|
||||
# source://logger//lib/logger.rb#504
|
||||
def warn?; end
|
||||
|
||||
# Adjust the log level during the block execution for the current Fiber only
|
||||
@ -760,144 +765,156 @@ class Logger
|
||||
# logger.debug { "Hello" }
|
||||
# end
|
||||
#
|
||||
# source://logger//logger.rb#408
|
||||
# source://logger//lib/logger.rb#408
|
||||
def with_level(severity); end
|
||||
|
||||
private
|
||||
|
||||
# source://logger//logger.rb#744
|
||||
# source://logger//lib/logger.rb#754
|
||||
def format_message(severity, datetime, progname, msg); end
|
||||
|
||||
# source://logger//logger.rb#740
|
||||
# source://logger//lib/logger.rb#745
|
||||
def format_severity(severity); end
|
||||
|
||||
# Guarantee the existence of this ivar even when subclasses don't call the superclass constructor.
|
||||
#
|
||||
# source://logger//lib/logger.rb#750
|
||||
def level_override; end
|
||||
end
|
||||
|
||||
# Default formatter for log messages.
|
||||
#
|
||||
# source://logger//lib/logger/formatter.rb#5
|
||||
class Logger::Formatter
|
||||
# @return [Formatter] a new instance of Formatter
|
||||
#
|
||||
# source://logger//logger/formatter.rb#11
|
||||
# source://logger//lib/logger/formatter.rb#11
|
||||
def initialize; end
|
||||
|
||||
# source://logger//logger/formatter.rb#15
|
||||
# source://logger//lib/logger/formatter.rb#15
|
||||
def call(severity, time, progname, msg); end
|
||||
|
||||
# Returns the value of attribute datetime_format.
|
||||
#
|
||||
# source://logger//logger/formatter.rb#9
|
||||
# source://logger//lib/logger/formatter.rb#9
|
||||
def datetime_format; end
|
||||
|
||||
# Sets the attribute datetime_format
|
||||
#
|
||||
# @param value the value to set the attribute datetime_format to.
|
||||
#
|
||||
# source://logger//logger/formatter.rb#9
|
||||
# source://logger//lib/logger/formatter.rb#9
|
||||
def datetime_format=(_arg0); end
|
||||
|
||||
private
|
||||
|
||||
# source://logger//logger/formatter.rb#21
|
||||
# source://logger//lib/logger/formatter.rb#21
|
||||
def format_datetime(time); end
|
||||
|
||||
# source://logger//logger/formatter.rb#25
|
||||
# source://logger//lib/logger/formatter.rb#25
|
||||
def msg2str(msg); end
|
||||
end
|
||||
|
||||
# source://logger//logger/formatter.rb#7
|
||||
# source://logger//lib/logger/formatter.rb#7
|
||||
Logger::Formatter::DatetimeFormat = T.let(T.unsafe(nil), String)
|
||||
|
||||
# source://logger//logger/formatter.rb#6
|
||||
# source://logger//lib/logger/formatter.rb#6
|
||||
Logger::Formatter::Format = T.let(T.unsafe(nil), String)
|
||||
|
||||
# Device used for logging messages.
|
||||
#
|
||||
# source://logger//lib/logger/log_device.rb#7
|
||||
class Logger::LogDevice
|
||||
include ::Logger::Period
|
||||
include ::MonitorMixin
|
||||
|
||||
# @return [LogDevice] a new instance of LogDevice
|
||||
#
|
||||
# source://logger//logger/log_device.rb#14
|
||||
def initialize(log = T.unsafe(nil), shift_age: T.unsafe(nil), shift_size: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil)); end
|
||||
# source://logger//lib/logger/log_device.rb#14
|
||||
def initialize(log = T.unsafe(nil), shift_age: T.unsafe(nil), shift_size: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil), reraise_write_errors: T.unsafe(nil)); end
|
||||
|
||||
# source://logger//logger/log_device.rb#52
|
||||
# source://logger//lib/logger/log_device.rb#59
|
||||
def close; end
|
||||
|
||||
# Returns the value of attribute dev.
|
||||
#
|
||||
# source://logger//logger/log_device.rb#10
|
||||
# source://logger//lib/logger/log_device.rb#10
|
||||
def dev; end
|
||||
|
||||
# Returns the value of attribute filename.
|
||||
#
|
||||
# source://logger//logger/log_device.rb#11
|
||||
# source://logger//lib/logger/log_device.rb#11
|
||||
def filename; end
|
||||
|
||||
# source://logger//logger/log_device.rb#62
|
||||
# source://logger//lib/logger/log_device.rb#69
|
||||
def reopen(log = T.unsafe(nil)); end
|
||||
|
||||
# source://logger//logger/log_device.rb#31
|
||||
# source://logger//lib/logger/log_device.rb#32
|
||||
def write(message); end
|
||||
|
||||
private
|
||||
|
||||
# source://logger//logger/log_device.rb#119
|
||||
# source://logger//lib/logger/log_device.rb#126
|
||||
def add_log_header(file); end
|
||||
|
||||
# source://logger//logger/log_device.rb#125
|
||||
# source://logger//lib/logger/log_device.rb#132
|
||||
def check_shift_log; end
|
||||
|
||||
# source://logger//logger/log_device.rb#103
|
||||
# source://logger//lib/logger/log_device.rb#110
|
||||
def create_logfile(filename); end
|
||||
|
||||
# source://logger//logger/log_device.rb#145
|
||||
# source://logger//lib/logger/log_device.rb#152
|
||||
def lock_shift_log; end
|
||||
|
||||
# source://logger//logger/log_device.rb#95
|
||||
# source://logger//lib/logger/log_device.rb#102
|
||||
def open_logfile(filename); end
|
||||
|
||||
# source://logger//logger/log_device.rb#79
|
||||
# source://logger//lib/logger/log_device.rb#86
|
||||
def set_dev(log); end
|
||||
|
||||
# source://logger//logger/log_device.rb#176
|
||||
# source://logger//lib/logger/log_device.rb#183
|
||||
def shift_log_age; end
|
||||
|
||||
# source://logger//logger/log_device.rb#188
|
||||
# source://logger//lib/logger/log_device.rb#195
|
||||
def shift_log_period(period_end); end
|
||||
end
|
||||
|
||||
# source://logger//lib/logger/period.rb#4
|
||||
module Logger::Period
|
||||
private
|
||||
|
||||
# source://logger//logger/period.rb#9
|
||||
# source://logger//lib/logger/period.rb#9
|
||||
def next_rotate_time(now, shift_age); end
|
||||
|
||||
# source://logger//logger/period.rb#31
|
||||
# source://logger//lib/logger/period.rb#31
|
||||
def previous_period_end(now, shift_age); end
|
||||
|
||||
class << self
|
||||
# source://logger//logger/period.rb#9
|
||||
# source://logger//lib/logger/period.rb#9
|
||||
def next_rotate_time(now, shift_age); end
|
||||
|
||||
# source://logger//logger/period.rb#31
|
||||
# source://logger//lib/logger/period.rb#31
|
||||
def previous_period_end(now, shift_age); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://logger//logger/period.rb#7
|
||||
# source://logger//lib/logger/period.rb#7
|
||||
Logger::Period::SiD = T.let(T.unsafe(nil), Integer)
|
||||
|
||||
# \Severity label for logging (max 5 chars).
|
||||
#
|
||||
# source://logger//logger.rb#738
|
||||
# source://logger//lib/logger.rb#743
|
||||
Logger::SEV_LABEL = T.let(T.unsafe(nil), Array)
|
||||
|
||||
# Logging severity.
|
||||
#
|
||||
# source://logger//lib/logger/severity.rb#5
|
||||
module Logger::Severity
|
||||
class << self
|
||||
# source://logger//logger/severity.rb#29
|
||||
# source://logger//lib/logger/severity.rb#29
|
||||
def coerce(severity); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://logger//logger/severity.rb#19
|
||||
# source://logger//lib/logger/severity.rb#19
|
||||
Logger::Severity::LEVELS = T.let(T.unsafe(nil), Hash)
|
||||
@ -4,6 +4,17 @@
|
||||
# This is an autogenerated file for types exported from the `rspec-core` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem rspec-core`.
|
||||
|
||||
|
||||
module ERB::Escape
|
||||
private
|
||||
|
||||
def html_escape(_arg0); end
|
||||
|
||||
class << self
|
||||
def html_escape(_arg0); end
|
||||
end
|
||||
end
|
||||
|
||||
# Namespace for all core RSpec code.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/version.rb#1
|
||||
@ -457,7 +468,7 @@ class RSpec::Core::Configuration
|
||||
# @see #before
|
||||
# @see #prepend_before
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2025
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2026
|
||||
def after(scope = T.unsafe(nil), *meta, &block); end
|
||||
|
||||
# Creates a method that defines an example group with the provided
|
||||
@ -598,7 +609,7 @@ class RSpec::Core::Configuration
|
||||
# @see #before
|
||||
# @see #prepend_before
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2055
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2056
|
||||
def append_after(scope = T.unsafe(nil), *meta, &block); end
|
||||
|
||||
# Defines a `before` hook. See {Hooks#before} for full docs.
|
||||
@ -612,20 +623,20 @@ class RSpec::Core::Configuration
|
||||
# @see #after
|
||||
# @see #append_after
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1970
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1971
|
||||
def append_before(scope = T.unsafe(nil), *meta, &block); end
|
||||
|
||||
# @private
|
||||
# @raise [SystemStackError]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1935
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1936
|
||||
def apply_derived_metadata_to(metadata); end
|
||||
|
||||
# Registers `block` as an `around` hook.
|
||||
#
|
||||
# See {Hooks#around} for full `around` hook docs.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2073
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2074
|
||||
def around(scope = T.unsafe(nil), *meta, &block); end
|
||||
|
||||
# Regexps used to exclude lines from backtraces.
|
||||
@ -689,7 +700,7 @@ class RSpec::Core::Configuration
|
||||
# @see #after
|
||||
# @see #append_after
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1970
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1971
|
||||
def before(scope = T.unsafe(nil), *meta, &block); end
|
||||
|
||||
# Determines which bisect runner implementation gets used to run subsets
|
||||
@ -719,7 +730,7 @@ class RSpec::Core::Configuration
|
||||
|
||||
# @private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2119
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2120
|
||||
def bisect_runner_class; end
|
||||
|
||||
# Enables color output if the output is a TTY. As of RSpec 3.6, this is
|
||||
@ -878,7 +889,7 @@ class RSpec::Core::Configuration
|
||||
# @yieldparam metadata [Hash] original metadata hash from an example or
|
||||
# group. Mutate this in your block as needed.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1894
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1895
|
||||
def define_derived_metadata(*filters, &block); end
|
||||
|
||||
# Determines where deprecation warnings are printed.
|
||||
@ -919,7 +930,7 @@ class RSpec::Core::Configuration
|
||||
|
||||
# @private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1875
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1876
|
||||
def disable_monkey_patching; end
|
||||
|
||||
# Enables zero monkey patching mode for RSpec. It removes monkey
|
||||
@ -957,12 +968,12 @@ class RSpec::Core::Configuration
|
||||
# (or similar) they will still have monkey patching active
|
||||
# in their test environment from mocha.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1867
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1868
|
||||
def disable_monkey_patching!; end
|
||||
|
||||
# @private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1875
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1876
|
||||
def disable_monkey_patching=(_arg0); end
|
||||
|
||||
# Run examples over DRb (default: `false`). RSpec doesn't supply the DRb
|
||||
@ -1147,7 +1158,7 @@ class RSpec::Core::Configuration
|
||||
# end
|
||||
# @param method_name [Symbol] the name of the helper method
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1805
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1806
|
||||
def expose_current_running_example_as(method_name); end
|
||||
|
||||
# Use this to expose the core RSpec DSL via `Module` and the `main`
|
||||
@ -1569,7 +1580,7 @@ class RSpec::Core::Configuration
|
||||
#
|
||||
# @private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2103
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2104
|
||||
def hooks; end
|
||||
|
||||
# @private
|
||||
@ -1783,14 +1794,14 @@ class RSpec::Core::Configuration
|
||||
|
||||
# Invokes block before defining an example group
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2108
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2109
|
||||
def on_example_group_definition(&block); end
|
||||
|
||||
# Returns an array of blocks to call before defining an example group
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2114
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2115
|
||||
def on_example_group_definition_callbacks; end
|
||||
|
||||
# Indicates if the `--only-failures` (or `--next-failure`) flag is being used.
|
||||
@ -1948,7 +1959,7 @@ class RSpec::Core::Configuration
|
||||
# @see #before
|
||||
# @see #prepend_before
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2025
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2026
|
||||
def prepend_after(scope = T.unsafe(nil), *meta, &block); end
|
||||
|
||||
# Adds `block` to the start of the list of `before` blocks in the same
|
||||
@ -1966,7 +1977,7 @@ class RSpec::Core::Configuration
|
||||
# @see #after
|
||||
# @see #append_after
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2000
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2001
|
||||
def prepend_before(scope = T.unsafe(nil), *meta, &block); end
|
||||
|
||||
# Defaults `profile_examples` to 10 examples when `@profile_examples` is
|
||||
@ -2026,11 +2037,12 @@ class RSpec::Core::Configuration
|
||||
# rspec.raise_errors_for_deprecations!
|
||||
# end
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1827
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1828
|
||||
def raise_errors_for_deprecations!; end
|
||||
|
||||
# Turns warnings into errors. This can be useful when
|
||||
# Turns RSpec warnings into errors. This can be useful when
|
||||
# you want RSpec to run in a 'strict' no warning situation.
|
||||
# (Note this does not capture or raise on Ruby warnings).
|
||||
#
|
||||
# @example
|
||||
#
|
||||
@ -2038,7 +2050,7 @@ class RSpec::Core::Configuration
|
||||
# rspec.raise_on_warning = true
|
||||
# end
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1775
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1776
|
||||
def raise_on_warning=(value); end
|
||||
|
||||
# Registers a named ordering strategy that can later be
|
||||
@ -2329,12 +2341,12 @@ class RSpec::Core::Configuration
|
||||
# end
|
||||
# end
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1917
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1918
|
||||
def when_first_matching_example_defined(*filters); end
|
||||
|
||||
# @private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2085
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2086
|
||||
def with_suite_hooks; end
|
||||
|
||||
# @private
|
||||
@ -2353,111 +2365,111 @@ class RSpec::Core::Configuration
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2248
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2249
|
||||
def absolute_pattern?(pattern); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2349
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2350
|
||||
def add_hook_to_existing_matching_groups(meta, scope, &block); end
|
||||
|
||||
# @raise [MustBeConfiguredBeforeExampleGroupsError]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2288
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2289
|
||||
def assert_no_example_groups_defined(config_option); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2338
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2339
|
||||
def clear_values_derived_from_example_status_persistence_file_path; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2270
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2271
|
||||
def command; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2314
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2315
|
||||
def conditionally_disable_expectations_monkey_patching; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2305
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2306
|
||||
def conditionally_disable_mocks_monkey_patching; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2343
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2344
|
||||
def configure_group_with(group, module_list, application_method); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2278
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2279
|
||||
def define_built_in_hooks; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2401
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2402
|
||||
def define_mixed_in_module(mod, filters, mod_list, config_method, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2253
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2254
|
||||
def extract_location(path); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2230
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2231
|
||||
def file_glob_from(path, pattern); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2219
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2220
|
||||
def gather_directories(path); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2198
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2199
|
||||
def get_files_to_run(paths); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2225
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2226
|
||||
def get_matching_files(path, pattern); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2165
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2166
|
||||
def handle_suite_hook(scope, meta); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2137
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2138
|
||||
def load_file_handling_errors(method, file); end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2371
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2372
|
||||
def metadata_applies_to_group?(meta, group); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2363
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2364
|
||||
def on_existing_matching_groups(meta); end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2301
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2302
|
||||
def output_to_tty?(output = T.unsafe(nil)); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2297
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2298
|
||||
def output_wrapper; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2210
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2211
|
||||
def paths_to_check(paths); end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2215
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2216
|
||||
def pattern_might_load_specs_from_vendored_dirs?; end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2324
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2325
|
||||
def rspec_expectations_loaded?; end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2320
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2321
|
||||
def rspec_mocks_loaded?; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2180
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2181
|
||||
def run_suite_hooks(hook_description, hooks); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2386
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2387
|
||||
def safe_extend(mod, host); end
|
||||
|
||||
# :nocov:
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2382
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2383
|
||||
def safe_include(mod, host); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2376
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2377
|
||||
def safe_prepend(mod, host); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2328
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2329
|
||||
def update_pattern_attr(name, value); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2274
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#2275
|
||||
def value_for(key); end
|
||||
|
||||
class << self
|
||||
@ -2526,7 +2538,7 @@ end
|
||||
|
||||
# @private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1815
|
||||
# source://rspec-core//lib/rspec/core/configuration.rb#1816
|
||||
module RSpec::Core::Configuration::ExposeCurrentExample; end
|
||||
|
||||
# @private
|
||||
@ -5475,7 +5487,7 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
||||
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#202
|
||||
def exception_lines; end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#194
|
||||
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#184
|
||||
def exception_message_string(exception); end
|
||||
|
||||
# Returns the value of attribute extra_detail_formatter.
|
||||
@ -5770,6 +5782,7 @@ end
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#7
|
||||
class RSpec::Core::Formatters::HtmlPrinter
|
||||
include ::ERB::Escape
|
||||
include ::ERB::Util
|
||||
|
||||
# @return [HtmlPrinter] a new instance of HtmlPrinter
|
||||
@ -6567,9 +6580,6 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def to_hash(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def to_msgpack(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def to_plist(*args, &block); end
|
||||
|
||||
@ -8218,7 +8228,7 @@ end
|
||||
# individual spec has multiple exceptions, such as one in the `it` block
|
||||
# and one in an `after` block.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#457
|
||||
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#452
|
||||
class RSpec::Core::MultipleExceptionError < ::StandardError
|
||||
include ::RSpec::Core::MultipleExceptionError::InterfaceTag
|
||||
|
||||
@ -8311,7 +8321,7 @@ module RSpec::Core::Notifications; end
|
||||
# other registered listeners, it creates attributes based on supplied hash
|
||||
# of options.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/notifications.rb#516
|
||||
# source://rspec-core//lib/rspec/core/notifications.rb#512
|
||||
class RSpec::Core::Notifications::CustomNotification < ::Struct
|
||||
class << self
|
||||
# Build a custom notification based on the supplied option key / values.
|
||||
@ -9412,6 +9422,9 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#6
|
||||
def output=(_arg0); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def path(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def pathconf(*args, &block); end
|
||||
|
||||
@ -9522,12 +9535,21 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def tell(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def timeout(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def timeout=(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def to_i(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def to_io(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def to_path(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def tty?(*args, &block); end
|
||||
|
||||
@ -9634,7 +9656,7 @@ module RSpec::Core::Pending
|
||||
# @param message [String] optional message to add to the summary report.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/pending.rb#62
|
||||
def pending(message = T.unsafe(nil)); end
|
||||
def pending(message = T.unsafe(nil), &_block); end
|
||||
|
||||
# Marks an example as pending and skips execution.
|
||||
#
|
||||
@ -10523,7 +10545,7 @@ end
|
||||
# eval'd when the `SharedExampleGroupModule` instance is included in an example
|
||||
# group.
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/shared_example_group.rb#10
|
||||
# source://rspec-core//lib/rspec/core/shared_example_group.rb#9
|
||||
class RSpec::Core::SharedExampleGroupModule < ::Module
|
||||
# @return [SharedExampleGroupModule] a new instance of SharedExampleGroupModule
|
||||
#
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,9 +0,0 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `strscan` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem strscan`.
|
||||
|
||||
|
||||
# THIS IS AN EMPTY RBI FILE.
|
||||
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
# typed: true # rubocop:disable Sorbet/StrictSigil
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file is included before any other files. It intentionally has typing disabled and has minimal use of `require`.
|
||||
@ -52,3 +52,15 @@ require "portable_ruby_gems" if HOMEBREW_USING_PORTABLE_RUBY
|
||||
$LOAD_PATH.unshift "#{HOMEBREW_LIBRARY_PATH}/vendor/bundle/#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/" \
|
||||
"bundler-#{Homebrew::HOMEBREW_BUNDLER_VERSION}/lib"
|
||||
$LOAD_PATH.uniq!
|
||||
|
||||
# These warnings are nice but often flag problems that are not even our responsibly,
|
||||
# including in some cases from other Ruby standard library gems.
|
||||
# We strictly only allow one version of Ruby at a time so future compatibility
|
||||
# doesn't need to be handled ahead of time.
|
||||
if defined?(Gem::BUNDLED_GEMS)
|
||||
[Kernel.singleton_class, Kernel].each do |kernel_class|
|
||||
next unless kernel_class.respond_to?(:no_warning_require, true)
|
||||
|
||||
kernel_class.alias_method :require, :no_warning_require
|
||||
end
|
||||
end
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# typed: true # rubocop:todo Sorbet/StrictSigil
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "sorbet-runtime"
|
||||
|
||||
@ -1,16 +1,33 @@
|
||||
# typed: strict
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
homebrew_bootsnap_enabled = HOMEBREW_USING_PORTABLE_RUBY &&
|
||||
ENV["HOMEBREW_NO_BOOTSNAP"].nil? &&
|
||||
!ENV["HOMEBREW_BOOTSNAP"].nil?
|
||||
|
||||
module Homebrew
|
||||
def self.bootsnap_key
|
||||
@bootsnap_key ||= begin
|
||||
require "digest/sha2"
|
||||
|
||||
checksum = Digest::SHA256.new
|
||||
checksum << RUBY_VERSION
|
||||
checksum << RUBY_PLATFORM
|
||||
checksum << Dir.children(File.join(Gem.paths.path, "gems")).join(",")
|
||||
|
||||
checksum.hexdigest
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if homebrew_bootsnap_enabled
|
||||
require "bootsnap"
|
||||
|
||||
cache = ENV.fetch("HOMEBREW_CACHE", nil) || ENV.fetch("HOMEBREW_DEFAULT_CACHE", nil)
|
||||
raise "Needs HOMEBREW_CACHE or HOMEBREW_DEFAULT_CACHE!" if cache.nil? || cache.empty?
|
||||
|
||||
cache = File.join(cache, "bootsnap", Homebrew.bootsnap_key)
|
||||
|
||||
# We never do `require "vendor/bundle/ruby/..."` or `require "vendor/portable-ruby/..."`,
|
||||
# so let's slim the cache a bit by excluding them.
|
||||
# Note that gems within `bundle/ruby` will still be cached - these are when directory walking down from above.
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
# typed: strict
|
||||
|
||||
module Homebrew
|
||||
sig { returns(String) }
|
||||
def self.bootsnap_key; end
|
||||
end
|
||||
|
||||
module Bootsnap
|
||||
sig {
|
||||
params(
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# typed: true # rubocop:todo Sorbet/StrictSigil
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
raise "HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!" unless ENV["HOMEBREW_BREW_FILE"]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# typed: true # rubocop:todo Sorbet/StrictSigil
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
RUBY_PATH = Pathname.new(RbConfig.ruby).freeze
|
||||
|
||||
@ -129,8 +129,8 @@ RSpec.describe "ENV" do
|
||||
|
||||
describe "#compiler" do
|
||||
it "allows switching compilers" do
|
||||
subject.public_send(:"gcc-6")
|
||||
expect(subject.compiler).to eq("gcc-6")
|
||||
subject.public_send(:"gcc-9")
|
||||
expect(subject.compiler).to eq("gcc-9")
|
||||
end
|
||||
end
|
||||
|
||||
@ -179,16 +179,11 @@ RSpec.describe "ENV" do
|
||||
end
|
||||
|
||||
describe "#cxx11" do
|
||||
it "supports gcc-5" do
|
||||
env["HOMEBREW_CC"] = "gcc-5"
|
||||
env.cxx11
|
||||
expect(env["HOMEBREW_CCCFG"]).to include("x")
|
||||
end
|
||||
|
||||
example "supports gcc-6" do
|
||||
env["HOMEBREW_CC"] = "gcc-6"
|
||||
it "supports gcc-11" do
|
||||
env["HOMEBREW_CC"] = "gcc-11"
|
||||
env.cxx11
|
||||
expect(env["HOMEBREW_CCCFG"]).to include("x")
|
||||
expect(env["HOMEBREW_CCCFG"]).not_to include("g")
|
||||
end
|
||||
|
||||
it "supports clang" do
|
||||
|
||||
@ -18,4 +18,6 @@ RSpec.describe Homebrew::Cmd::List do
|
||||
.and not_to_output.to_stderr
|
||||
.and be_a_success
|
||||
end
|
||||
|
||||
# TODO: add a test for the shell fast-path (`brew_sh`)
|
||||
end
|
||||
|
||||
@ -14,10 +14,10 @@ RSpec.describe CompilerSelector do
|
||||
before do
|
||||
allow(versions).to receive(:gcc_version) do |name|
|
||||
case name
|
||||
when "gcc-7" then Version.new("7.1")
|
||||
when "gcc-6" then Version.new("6.1")
|
||||
when "gcc-5" then Version.new("5.1")
|
||||
when "gcc-4.9" then Version.new("4.9.1")
|
||||
when "gcc-12" then Version.new("12.1")
|
||||
when "gcc-11" then Version.new("11.1")
|
||||
when "gcc-10" then Version.new("10.1")
|
||||
when "gcc-9" then Version.new("9.1")
|
||||
else Version::NULL
|
||||
end
|
||||
end
|
||||
@ -29,68 +29,68 @@ RSpec.describe CompilerSelector do
|
||||
end
|
||||
|
||||
it "returns clang if it fails with non-Apple gcc" do
|
||||
software_spec.fails_with(gcc: "7")
|
||||
software_spec.fails_with(gcc: "12")
|
||||
expect(selector.compiler).to eq(:clang)
|
||||
end
|
||||
|
||||
it "still returns gcc-7 if it fails with gcc without a specific version" do
|
||||
it "still returns gcc-12 if it fails with gcc without a specific version" do
|
||||
software_spec.fails_with(:clang)
|
||||
expect(selector.compiler).to eq("gcc-7")
|
||||
expect(selector.compiler).to eq("gcc-12")
|
||||
end
|
||||
|
||||
it "returns gcc-6 if gcc formula offers gcc-6 on mac", :needs_macos do
|
||||
it "returns gcc-11 if gcc formula offers gcc-11 on mac", :needs_macos do
|
||||
software_spec.fails_with(:clang)
|
||||
allow(Formulary).to receive(:factory)
|
||||
.with("gcc")
|
||||
.and_return(instance_double(Formula, version: Version.new("6.0")))
|
||||
expect(selector.compiler).to eq("gcc-6")
|
||||
.and_return(instance_double(Formula, version: Version.new("11.0")))
|
||||
expect(selector.compiler).to eq("gcc-11")
|
||||
end
|
||||
|
||||
it "returns gcc-5 if gcc formula offers gcc-5 on linux", :needs_linux do
|
||||
it "returns gcc-10 if gcc formula offers gcc-10 on linux", :needs_linux do
|
||||
software_spec.fails_with(:clang)
|
||||
allow(Formulary).to receive(:factory)
|
||||
.with("gcc@11")
|
||||
.and_return(instance_double(Formula, version: Version.new("5.0")))
|
||||
expect(selector.compiler).to eq("gcc-5")
|
||||
.and_return(instance_double(Formula, version: Version.new("10.0")))
|
||||
expect(selector.compiler).to eq("gcc-10")
|
||||
end
|
||||
|
||||
it "returns gcc-6 if gcc formula offers gcc-5 and fails with gcc-5 and gcc-7 on linux", :needs_linux do
|
||||
it "returns gcc-11 if gcc formula offers gcc-10 and fails with gcc-10 and gcc-12 on linux", :needs_linux do
|
||||
software_spec.fails_with(:clang)
|
||||
software_spec.fails_with(gcc: "5")
|
||||
software_spec.fails_with(gcc: "7")
|
||||
software_spec.fails_with(gcc: "10")
|
||||
software_spec.fails_with(gcc: "12")
|
||||
allow(Formulary).to receive(:factory)
|
||||
.with("gcc@11")
|
||||
.and_return(instance_double(Formula, version: Version.new("5.0")))
|
||||
expect(selector.compiler).to eq("gcc-6")
|
||||
.and_return(instance_double(Formula, version: Version.new("10.0")))
|
||||
expect(selector.compiler).to eq("gcc-11")
|
||||
end
|
||||
|
||||
it "returns gcc-7 if gcc formula offers gcc-5 and fails with gcc <= 6 on linux", :needs_linux do
|
||||
it "returns gcc-12 if gcc formula offers gcc-11 and fails with gcc <= 11 on linux", :needs_linux do
|
||||
software_spec.fails_with(:clang)
|
||||
software_spec.fails_with(:gcc) { version "6" }
|
||||
software_spec.fails_with(:gcc) { version "11" }
|
||||
allow(Formulary).to receive(:factory)
|
||||
.with("gcc@11")
|
||||
.and_return(instance_double(Formula, version: Version.new("5.0")))
|
||||
expect(selector.compiler).to eq("gcc-7")
|
||||
.and_return(instance_double(Formula, version: Version.new("11.0")))
|
||||
expect(selector.compiler).to eq("gcc-12")
|
||||
end
|
||||
|
||||
it "returns gcc-7 if gcc-7 is version 7.1 but spec fails with gcc-7 <= 7.0" do
|
||||
it "returns gcc-12 if gcc-12 is version 12.1 but spec fails with gcc-12 <= 12.0" do
|
||||
software_spec.fails_with(:clang)
|
||||
software_spec.fails_with(gcc: "7") { version "7.0" }
|
||||
expect(selector.compiler).to eq("gcc-7")
|
||||
software_spec.fails_with(gcc: "12") { version "12.0" }
|
||||
expect(selector.compiler).to eq("gcc-12")
|
||||
end
|
||||
|
||||
it "returns gcc-6 if gcc-7 is version 7.1 but spec fails with gcc-7 <= 7.1" do
|
||||
it "returns gcc-11 if gcc-12 is version 12.1 but spec fails with gcc-12 <= 12.1" do
|
||||
software_spec.fails_with(:clang)
|
||||
software_spec.fails_with(gcc: "7") { version "7.1" }
|
||||
expect(selector.compiler).to eq("gcc-6")
|
||||
software_spec.fails_with(gcc: "12") { version "12.1" }
|
||||
expect(selector.compiler).to eq("gcc-11")
|
||||
end
|
||||
|
||||
it "raises an error when gcc or llvm is missing (hash syntax)" do
|
||||
software_spec.fails_with(:clang)
|
||||
software_spec.fails_with(gcc: "7")
|
||||
software_spec.fails_with(gcc: "6")
|
||||
software_spec.fails_with(gcc: "5")
|
||||
software_spec.fails_with(gcc: "4.9")
|
||||
software_spec.fails_with(gcc: "12")
|
||||
software_spec.fails_with(gcc: "11")
|
||||
software_spec.fails_with(gcc: "10")
|
||||
software_spec.fails_with(gcc: "9")
|
||||
|
||||
expect { selector.compiler }.to raise_error(CompilerSelectionError)
|
||||
end
|
||||
|
||||
@ -286,7 +286,7 @@ RSpec.describe Homebrew::FormulaAuditor do
|
||||
class Cask < Formula
|
||||
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
|
||||
head "https://github.com/cask/cask.git"
|
||||
license "GPL-3.0"
|
||||
license "GPL-3.0-or-later"
|
||||
end
|
||||
RUBY
|
||||
fa = formula_auditor "cask", formula_text, spdx_license_data:,
|
||||
|
||||
@ -680,7 +680,7 @@ module GitHub
|
||||
|
||||
private_class_method def self.add_auth_token_to_url!(url)
|
||||
if API.credentials_type == :env_token
|
||||
url.sub!(%r{^https://github\.com/}, "https://#{API.credentials}@github.com/")
|
||||
url.sub!(%r{^https://github\.com/}, "https://x-access-token:#{API.credentials}@github.com/")
|
||||
end
|
||||
url
|
||||
end
|
||||
|
||||
@ -86,3 +86,21 @@ numeric() {
|
||||
IFS=".rc" read -r -a version_array <<<"${1}"
|
||||
printf "%01d%02d%02d%03d" "${version_array[@]}" 2>/dev/null
|
||||
}
|
||||
|
||||
columns() {
|
||||
if [[ -n "${COLUMNS}" ]]
|
||||
then
|
||||
echo "${COLUMNS}"
|
||||
return
|
||||
fi
|
||||
|
||||
local columns
|
||||
read -r _ columns < <(stty size 2>/dev/null)
|
||||
|
||||
if [[ -z "${columns}" ]] && tput cols >/dev/null 2>&1
|
||||
then
|
||||
columns="$(tput cols)"
|
||||
fi
|
||||
|
||||
echo "${columns:-80}"
|
||||
}
|
||||
|
||||
22
Library/Homebrew/vendor/bundle/bundler/setup.rb
vendored
22
Library/Homebrew/vendor/bundle/bundler/setup.rb
vendored
@ -53,12 +53,10 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/regexp_parser-2.9.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simpleidn-0.2.3/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/json_schemer-2.3.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/strscan-3.1.0")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/strscan-3.1.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rexml-3.3.6/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rexml-3.3.7/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/kramdown-2.4.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/language_server-protocol-3.17.0.3/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/logger-1.6.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/logger-1.6.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/method_source-1.1.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/minitest-5.25.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/netrc-0.11.0/lib")
|
||||
@ -66,9 +64,9 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel_tests-4.7.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/racc-1.8.1")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.8.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.4.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.5.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11553/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11554/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-9.0.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.5.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.1/lib")
|
||||
@ -81,7 +79,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/redcarpet-3.6.0")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/redcarpet-3.6.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-support-3.13.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-core-3.13.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-core-3.13.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-expectations-3.13.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-mocks-3.13.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-3.13.0/lib")
|
||||
@ -89,7 +87,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-retry-0.6.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-sorbet-1.9.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec_junit_formatter-0.6.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.32.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.32.3/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.5.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.65.0/lib")
|
||||
@ -105,14 +103,14 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov_json_formatter-0.1.4/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-0.22.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-cobertura-2.1.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11553-universal-darwin/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11553/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11553/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11554-universal-darwin/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11554/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11554/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.4.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/stackprof-0.2.26")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.26/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.36/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.37/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-sorbet-0.9.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.16.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/vernier-1.1.2")
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user