Markus Reiter
480e264d9a
Lint Ruby docs.
2024-05-01 11:35:21 +02:00
Markus Reiter
caf87c0336
Warn about undocumented non-private APIs.
2024-05-01 11:35:20 +02:00
Markus Reiter
0f0055ede4
Make documentation @api private
by default.
2024-04-26 19:04:20 +02:00
Markus Reiter
c76170a456
Hide #to_s
in docs.
2024-04-26 14:04:55 +02:00
Mike McQuaid
ea2892f8ee
brew.rb: handle missing args.
2024-03-07 16:20:20 +00:00
Eric Knibbe
8646b2cf1f
api: ignore HTTPS errors if minimum curl version isn't installed
2023-10-04 22:24:57 -04:00
Mike McQuaid
8775465872
Enable Sorbet after running a developer command
...
We have no commands with Sorbet disabled and have had Sorbet enabled
for developers for a decent amount of time. As a result, we can enable
it for everyone who has run a developer command.
This also allows a bunch of `raise TypeError`s to be removed in favour
of relying on Sorbet here instead.
2023-09-02 08:39:28 -04:00
Markus Reiter
ff71668f0a
Fix type errors.
2023-05-09 01:13:55 +02:00
Markus Reiter
fe19ddc3a7
Remove Version#empty?
.
2023-05-09 01:13:55 +02:00
Markus Reiter
a1efaf1864
Merge HeadVersion
and NullVersion
into Version
.
2023-05-09 01:13:54 +02:00
Bo Anderson
44f058edb5
Refactor formula, cask and Ruby source downloads to use shared code
2023-04-27 23:23:07 +01:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Douglas Eichelberger
7720485f40
Enable types in Formula files
2023-03-25 08:50:06 -07:00
Markus Reiter
b8cb1d1a95
Simplify condition.
2023-03-13 02:40:03 +01:00
Markus Reiter
90665b074e
Simplify condition.
2023-03-13 02:38:03 +01:00
Issy Long
c6ff9b59c0
sorbet: Delete unused nilable?
method; regenerate RBIs; fix errors
2023-03-12 22:44:31 +00:00
Issy Long
6d822d9a62
rubocop: Drop "fn" from Naming/MethodParameterName
allowlist
...
- I originally thought this was short for "function", but upon closer
inspection all its usages are to do with filenames. So, use "filename",
it's clearer.
2023-03-08 14:40:56 +00:00
EricFromCanada
dfc9906184
internal messaging fixes
2023-02-10 23:17:16 -05:00
Xuehai Pan
d3093cd260
resource: automatic determine mirrors for PyPI resources
2022-09-16 01:57:19 +08:00
Xuehai Pan
46b3d24dd3
resource: automatic determine mirrors for glibc-bootstrap
2022-09-16 01:50:44 +08:00
Bo Anderson
cc97ae2152
resource: style tweak
2022-09-01 19:30:38 +01:00
Bo Anderson
911aa6ab18
resource: determine version before freezing
2022-09-01 18:30:58 +01:00
Bo Anderson
abfbb46678
Freeze formula definition once first instance is created
2022-08-31 20:40:42 +01:00
Lukas Oberhuber
676e3d4923
Change name of option on mktemp
...
From retain_in_sources to retain_in_cache
2022-08-01 18:30:14 -07:00
Lukas Oberhuber
8b1eb32e99
Sources now retained in Caches/Homebrew/Sources
...
Full path is ~/Library/Caches/Homebrew/Sources
This creates a brand new directory for each build, but leaves previous.
2022-07-31 20:33:25 +01:00
Lukas Oberhuber
4b0d52ef62
debug_symbols passed down to soure dir creator
...
The flag is now passed down to resource which creates the directory for
unpacking the source.
2022-07-31 19:59:25 +01:00
Carlo Cabrera
a01715f0ee
resource: support relative paths as targets
of #stage
...
`#stage` takes an optional `target` argument, which specifies the
location in which to unpack the `resource`.
Passing relative paths to `#stage`, as in
resource("foo").stage "bar"
does not work, because this calls `Pathname("bar").install` inside the
temporary directory that the contents of the resource are unpacked to.
This means that passing a relative path to `#stage` has the unintended
effect of moving files around inside a temporary directory the formula
has no access to.
Let's fix that by keeping track of the original working directory before
`#stage` was called and prepending this to `target` whenever `target` is
a relative path.
2022-07-10 01:27:21 +08:00
Nanda H Krishna
39c9e2ddbc
Merge pull request #13496 from mohammadzainabbas/mohammad
...
Extend the `livecheck` DSL to work for resources
2022-07-04 13:35:19 -04:00
Rylan Polster
99447bb1c0
OnSystem
: provide ::MacOSAndLinux
and ::MacOSOnly
2022-06-30 12:57:35 -04:00
Mohammad Zain Abbas
dbfbd19674
Merge branch 'master' into mohammad
2022-06-30 17:50:50 +02:00
Mohammad Zain Abbas
8399c26383
Merged with master
2022-06-30 17:46:53 +02:00
Mohammad Zain Abbas
7692098cd1
Minor fix: don't initialise livecheck unless needed
2022-06-30 17:01:11 +02:00
Mohammad Zain Abbas
1ba610707d
Extended the livecheck DSL to work for resources
2022-06-30 16:08:13 +02:00
Rylan Polster
a9e62b9e38
include OnSystem
to define DSL methods
2022-06-29 11:38:55 -04:00
Rylan Polster
b538ce7361
Add OnSystem
module to generate on_*
methods for formulae and casks
2022-06-24 14:37:50 -04:00
Bo Anderson
5dc46a9e12
Use --insecure to download ca-certificates
source where necessary
2021-10-04 16:37:44 +01:00
Bo Anderson
635e58e9aa
software_spec: fix bottle domain fallback handling
2021-04-15 19:24:25 +01:00
Rylan Polster
1cc983f00d
download_strategy: pass chdir block to stage
2021-02-12 14:50:50 -05:00
EricFromCanada
6fc116318e
fixes for grammar and wording
2021-01-26 16:19:47 -05:00
Michka Popoff
5e91802470
checksum: simplify, use only sha256
...
We use only one sha type right now.
Needed for https://github.com/Homebrew/brew/pull/10186
2021-01-07 20:46:13 +01:00
Seeker
a2af19360b
extend: add on_os (for on_macos/on_linux)
2020-12-07 10:36:51 -08:00
Markus Reiter
79d6c059fc
Merge pull request #9297 from reitermarkus/brew-typecheck
...
Refactor `brew typecheck` and upgrade `typed` sigils.
2020-11-27 00:01:47 +01:00
Markus Reiter
1690f064a2
Add types for Formula
.
2020-11-25 17:36:52 +01:00
Markus Reiter
5be4c9b5e0
Upgrade typed
sigils.
2020-11-25 17:04:19 +01:00
Markus Reiter
c54a9937e7
Remove cask-specific checksum errors.
2020-11-19 19:46:59 +01:00
Markus Reiter
0184e271d8
Fix RuboCop offenses.
2020-11-17 11:09:55 +01:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
EricFromCanada
3768b7a6e9
apidoc: update comment wording, punctuation, formatting
2020-11-06 00:21:02 -05:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Markus Reiter
5cd8b609f7
Merge pull request #8350 from reitermarkus/doc-version
...
Refactor and document `Version`.
2020-08-26 09:09:18 +02:00