Anatoli Babenia
ea0a88a517
tap
is a reader attribute
2023-11-28 18:10:20 +00:00
Anatoli Babenia
b2df600e3e
Move mode
into constructor params
2023-11-28 18:07:32 +00:00
Anatoli Babenia
912678ca5e
Save tap
in constructor
2023-11-28 16:07:38 +00:00
Anatoli Babenia
c17fc7b6f6
Remove license accessor
2023-11-28 15:46:01 +00:00
Anatoli Babenia
2151c59de2
Remove version from accessors
2023-11-28 15:39:04 +00:00
Anatoli Babenia
2b3ef56aa4
Try keyword arguments
2023-11-28 15:35:58 +00:00
Anatoli Babenia
0917a7ca6b
brew style
2023-11-27 21:09:19 +00:00
Anatoli Babenia
4e0b589d8c
formula_creator: Set version default in constructor
2023-11-27 21:09:14 +00:00
Anatoli Babenia
259823cf4d
formula_creator: Set initial values for name and version in constructor
2023-11-27 21:08:18 +00:00
Anatoli Babenia
e2d2ea1d04
formula_creator: Remove dependency on args
2023-11-27 21:08:10 +00:00
Anatoli Babenia
c148396b98
create: Pass fetch value directly into constructor
2023-11-27 21:04:19 +00:00
Anatoli Babenia
4063675e0e
Suggestion by @MikeMcQuaid
...
"ActiveSupport adds blank? to NilClass."
2023-11-23 18:53:22 +03:00
Anatoli Babenia
bfbea8be26
Style fix
2023-11-23 18:12:12 +03:00
Anatoli Babenia
4fed4529d3
Raise when formula name is empty
...
P.S. That still doesn't check if the name is invalid, like "34"
2023-11-23 18:06:40 +03:00
Anatoli Babenia
d8f19ff881
Rename generate!
to write_formula!
2023-11-23 18:04:03 +03:00
Anatoli Babenia
51b16585fb
formula_creator: Remove path
attr to reduce code complexity
...
`path` attribute is used only once, and it is easier to calculate
it on the fly than to update its state after different methods.
2023-11-21 13:28:47 +03:00
Eric Knibbe
931f762598
docs+rubydoc: various grammar/wording fixes
2023-09-11 02:26:37 -04:00
Mike McQuaid
b3c33d34ab
Various sharding fixes
...
- Load paths with no API when needed (e.g. for `brew edit`)
- Use no API mode for `brew log` as it's needed there
- Define sharding format for homebrew-cask and homebrew-core inside
`Tap` methods
- Create new formulae/casks in location defined by these `Tap` methods
- Fix a bug in Formulary that made sharded formulae lookup less
efficient (and possibly broke it for core and some API usage)
- Fix various other hardcoded Formula/Cask directory assumptions
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-08-04 16:43:13 +01:00
EricFromCanada
ca3fe811de
formula_creator: require version before creating
2023-07-23 00:05:43 -04:00
Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
...
The next release after this is merged will be 4.1.0.
Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Michael Cho
a06a2b73e2
formula_creator: use tool-agnostic meson commands
2022-12-08 10:10:36 -08:00
Rui Chen
4474818d07
create(go): add -s -w
ldflags to reduce the artifact size
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-08-22 14:30:26 -04:00
Bo Anderson
f174d4363f
extend/pathname: limit write
override to a refinement
2021-05-04 14:20:20 +01:00
Carlo Cabrera
20ab54fd9f
formula_creator: use tool-agnostic cmake commands
...
New versions of CMake know how to invoke the appropriate build tool
(i.e. make or ninja), so let's try to leave that to CMake.
This also builds out-of-tree, without having to deal with the `mkdir
"build" do` business.
2021-03-15 05:36:33 +00:00
lexicol
9cc93154a0
dev-cmd/create: add link to std_configure_args
2021-03-08 12:57:35 -08:00
lexicol
3d391d6427
dev-cmd/create: use std_configure_args
2021-03-06 13:13:58 -08:00
nandahkrishna
56e0c3d9e8
Update GitHub API usage
2021-02-15 22:38:27 +05:30
Seeker
c424201401
formula_creator: update hash syntax
2020-12-28 14:24:01 -08:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Dustin Rodrigues
70c1f39ec0
formula_creator: autodetect license from GitHub when available
2020-09-04 00:20:53 -04:00
Markus Reiter
5cd8b609f7
Merge pull request #8350 from reitermarkus/doc-version
...
Refactor and document `Version`.
2020-08-26 09:09:18 +02:00
Markus Reiter
c53f362476
Refactor and document Version
.
2020-08-26 03:17:39 +02:00
Markus Reiter
3d1f0ded39
Document FormulaCreator
.
2020-08-26 03:13:58 +02:00
Rylan Polster
c1ba64677f
create: call update-python-resources for --python
2020-07-29 09:50:16 -04:00
Markus Reiter
e669949659
Pass args
to create
instead of using global args
.
2020-07-25 02:37:10 +02:00
Seeker
a3f1e09bce
dev-cmd/create: add --node option
2020-07-17 20:46:00 -07:00
SeekingMeaning
29650fdea1
formula_creator: generate head
stanza after license
2020-07-14 17:37:55 -07:00
Lionell
5f6917ae7c
Merge branch 'master' into license
2020-06-28 02:07:53 +08:00
Dario Vladovic
519c339261
create: add --crystal option
2020-06-25 18:23:06 +02:00
Lionell
57fd1fdc7e
Merge branch 'master' into license
2020-06-25 13:42:27 +08:00
Dario Vladovic
8a62f891e1
formula: add std_cargo_args
2020-06-22 14:39:49 +02:00
Lionell
d084356959
create: removed print statement
2020-06-18 00:48:22 +08:00
Lionell
d92f747b1e
create: add license field as parsable arg
2020-06-17 22:52:25 +08:00
lionellloh
51fb414517
create: include license field automatically
2020-06-16 01:18:40 +08:00
Michka Popoff
f8536d0b5b
formula: add standard meson args
...
libdir is especially important on Fedora based distributions,
where it might default to "lib64", but everything else expects "lib",
so forcing the libdir is necessary there.
2020-04-15 15:14:13 +02:00
Dawid Dziurla
a3eefda0f9
create: add --ruby option
2020-03-21 15:41:27 +01:00
Mike McQuaid
4498303f9a
rubocop: adjust rules.
2020-03-13 21:16:18 +00:00
Dawid Dziurla
519c46c5f4
formula_creator: update go build args
2020-01-16 22:13:07 +01:00