rubydoc: fixes for output

This commit is contained in:
EricFromCanada 2021-10-23 21:32:38 -04:00
parent e1b2f68a6d
commit 216a045b36
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168
2 changed files with 6 additions and 5 deletions

View File

@ -60,7 +60,7 @@ class CacheStoreDatabase
db[key] db[key]
end end
# Gets a value from the underlying database (if it already exists). # Deletes a value from the underlying database (if it already exists).
def delete(key) def delete(key)
return unless created? return unless created?

View File

@ -996,7 +996,7 @@ class Formula
# EOS # EOS
# end</pre> # end</pre>
# #
# @deprecated Please use {#service} instead # @deprecated Please use {Homebrew::Service} instead.
def plist def plist
nil nil
end end
@ -1021,7 +1021,7 @@ class Formula
launchd_service_path launchd_service_path
end end
# The generated systemd {.service} file path. # The generated launchd {.service} file path.
sig { returns(Pathname) } sig { returns(Pathname) }
def launchd_service_path def launchd_service_path
opt_prefix/"#{plist_name}.plist" opt_prefix/"#{plist_name}.plist"
@ -3053,7 +3053,8 @@ class Formula
end end
# Indicates use of dependencies provided by macOS. # Indicates use of dependencies provided by macOS.
# On macOS this is a no-op (as we use the provided system libraries). # On macOS this is a no-op (as we use the provided system libraries) unless
# `:since` specifies a minimum macOS version.
# On Linux this will act as {.depends_on}. # On Linux this will act as {.depends_on}.
def uses_from_macos(dep, bounds = {}) def uses_from_macos(dep, bounds = {})
specs.each { |spec| spec.uses_from_macos(dep, bounds) } specs.each { |spec| spec.uses_from_macos(dep, bounds) }
@ -3132,7 +3133,7 @@ class Formula
# Or perhaps you'd like to give the user a choice? Ooh fancy. # Or perhaps you'd like to give the user a choice? Ooh fancy.
# <pre>plist_options startup: true, manual: "foo start"</pre> # <pre>plist_options startup: true, manual: "foo start"</pre>
# #
# @deprecated Please use {#service.require_root} instead # @deprecated Please use {Homebrew::Service.require_root} instead.
def plist_options(options) def plist_options(options)
# TODO: Deprecate # TODO: Deprecate
# odeprecated "plist_options", "service.require_root" # odeprecated "plist_options", "service.require_root"