10 Commits

Author SHA1 Message Date
Mike McQuaid
bc0f5ee62a
Library/Homebrew: move stdin ruby scripts to files under utils.
This avoids can avoid UID/EUID related issues with Ruby scripts passed
over `stdin` clashing with Ruby security features.

It's also just a bit nicer to have Ruby scripts in files instead.

While we're here:
- refactor some shared logic into a new `setup-gem-home-bundle-gemfile`
  function in `ruby.sh`
- do some general cleanup of `lock.sh`
- prioritise `flock` over `python` in `lock.sh`
2024-05-02 10:33:42 +01:00
Bo Anderson
2f05b47242
Fix setup-ruby/rubocop issues when euid != uid 2024-03-28 15:39:07 +00:00
Bo Anderson
3b1c171184
Further split up Gemfile into groups 2023-09-27 17:33:44 +01:00
Bo Anderson
7d7083d0f3
Universally apply Ruby disable options 2022-11-05 01:58:12 +00:00
Mike McQuaid
74a8e5bb23
dev-cmd/rubocop: use bundle check.
It's not reliable enough to just check for the binary.
2022-08-11 10:57:19 +01:00
XuehaiPan
3f96d963f7 style: fix inconsistent code style for shell scripts 2021-09-15 14:59:01 +08:00
Mike McQuaid
7af68d0f8e
Fix shellcheck failures
A new version of `shellcheck` (I think?) brought us so new warnings and
errors.

To fix:
- pass `--source-path` so we don't need to stop `shellcheck` trying to
  read sourced files every time
- disable some more warnings/errors we don't care about fixing
2021-04-22 13:18:44 +01:00
hyuraku
0f02def5ac dev-cmd/rubocop.sh: repair style 2021-04-21 09:59:43 +09:00
Rylan Polster
b4995379d4
dev-cmd/rubocop: call rubocop utility instead of -S rubocop 2021-02-11 08:37:45 -05:00
Mike McQuaid
dc072afdb1
rubocop: add shim and command.
Add a shim and a command that can be used to easily add a single
directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it
automatically install, configure and run `rubocop` so you can use it
for in-editor integrations.
2021-01-07 13:27:17 +00:00