Rylan Polster
d4ddfb88df
Merge pull request #13616 from Rylan12/simulate-macos-on-linux
...
Move `HOMEBREW_SIMULATE_MACOS_ON_LINUX` handling to `SimulateSystem`
2022-08-05 10:23:13 -04:00
Kevin
93bf9e5ba2
Merge pull request #13532 from apainintheneck/add-uninstall-autoremove
...
cmd/uninstall: Add env variable that runs autoremove after uninstalls
2022-08-03 18:10:32 -07:00
Issy Long
154806d8eb
Merge pull request #13603 from issyl0/cmd-contributions
...
dev-cmd/contributions: Retrieve a user's repo contributions over time
2022-08-03 19:05:40 +01:00
Issy Long
0355c60787
dev-cmd/contributions: Retrieve a user's repo contributions over time
...
- Before each AGM it's currently a manual process for a PLC member to
search commit logs and GitHub to figure out who contributed to
Homebrew, so who should remain a member.
- I noticed that [looking at commits for a
user](https://github.com/Homebrew/homebrew-core/commits?author=issyl0&since=2022-01-01&until=2023-01-01 )
would not count `Co-Authored-By`, which happens a lot now there's an
autosquash action on PRs in `Homebrew/homebrew-core`, say if someone
fixed a formula's build or tests or whatever and then the PR got
auto-merged.
- Here's `brew contributions` that uses `git log` to be able to go back
through all time or a specific time period (`--from`, `--to`). It's up
to individual PLC discretion for "activity", but it does at least go
some way to automating the data retrieval.
- Example (I can use my username as `--email` because my username is in
all of the email addresses that I use for committing to Homebrew):
```
$ brew contributions --email=issyl0 --repos=brew,core
Person issyl0 directly authored 732 commits and co-authored 31 commits to brew, core in all time.
```
2022-08-03 16:53:37 +01:00
fn ⌃ ⌥
b5a6f90cd8
Add tests
2022-08-03 06:33:30 -07:00
apainintheneck
d04051a9b9
Add integration tests for autoremove cmd
2022-08-02 18:20:38 -07:00
Lukas Oberhuber
89c1d6812d
Test sources are dropped in HOMEBREW_CACHE/Sources
2022-08-02 09:06:28 -07:00
Lukas Oberhuber
fdf17f06b1
Test for dSYM directory on Mac
2022-08-01 16:30:00 -07:00
Lukas Oberhuber
bee3531090
Improve style
2022-08-01 15:25:34 -07:00
Lukas Oberhuber
15f1ac8775
Integration test for --debug-symbols
...
But only checks that the command works. Not that `dsymutil` is called
or that `-g` is added to the compile args.
(Not sure how to do either in an integration test.)
2022-07-30 11:23:40 +01:00
Rylan Polster
ea1f2098ac
Move HOMEBREW_SIMULATE_MACOS_ON_LINUX
handling to SimulateSystem
2022-07-28 15:04:25 -04:00
Rylan Polster
ef929a7c28
Merge pull request #13599 from Rylan12/cleanup-simulate-system
...
`SimulateSystem` improvements
2022-07-28 10:05:13 -04:00
Rylan Polster
4cc0e854ce
Rename treat_as_*?
to simulating_or_running_on_*?
2022-07-28 09:18:16 -04:00
Rylan Polster
985f29f595
Merge pull request #13605 from Rylan12/api-merge-variations
...
Use `variations` hash when installing from the API
2022-07-27 15:37:31 +02:00
Rylan Polster
ebf109ade5
Fix tests
2022-07-25 19:22:15 +02:00
Rylan Polster
edc14c3786
Fix style
2022-07-25 08:56:10 +02:00
Rylan Polster
bae5abda82
Remove uses_from_macos
dep duplication in FormulaAPILoader
2022-07-25 08:49:19 +02:00
Rylan Polster
2c3926ae1e
Check nesting for blocks with one child
2022-07-24 23:37:36 +02:00
Rylan Polster
d5d6456b24
Add checks for on_system
method
2022-07-24 23:01:56 +02:00
Rylan Polster
7b24ed3b4d
Update OnSystem
cop to check other on_{system}
methods
2022-07-24 23:01:56 +02:00
Rylan Polster
7392f9811e
Formulary
: use variations hash when installing from API
2022-07-24 22:59:42 +02:00
Rylan Polster
91cf9f2ad8
Use SimulateSystem
for uses_from_macos
deps
2022-07-23 03:09:29 +02:00
Rylan Polster
34a1bc6618
Use SimulateSystem
for ignore_missing_libraries
2022-07-23 03:09:29 +02:00
Rylan Polster
fa384b03fa
Simplify SimulateSystem
usage
2022-07-23 03:08:56 +02:00
Rylan Polster
7255df1ec2
Only run to_hash_with_variations
test on macOS
2022-07-21 17:33:19 +02:00
Rylan Polster
6c35317732
Add and update tests
2022-07-21 16:41:23 +02:00
Rylan Polster
eab3d077bc
Improvements
2022-07-21 15:32:51 +02:00
Rylan Polster
19340f9212
Merge pull request #13576 from Rylan12/empty-patch
2022-07-20 00:20:45 +02:00
Mike McQuaid
6615cd9144
Merge pull request #13510 from GottemHams/feat-macos-fully-backgrounded
...
Added support for running services fully backgrounded on macOS
2022-07-19 09:44:40 +01:00
Rylan Polster
94138c0848
Ignore empty patch
blocks
2022-07-18 22:51:30 +02:00
apainintheneck
cb91f8b665
Add tests for retrieving formula based on dependents
...
Also, made sure to clear formula cache before
and after autoremoving packages.
2022-07-17 00:39:23 -07:00
Bo Anderson
6eb2d6df9a
utils/ruby_check_version_script: fix invalid shebang
2022-07-16 02:49:33 +01:00
Mike McQuaid
217bfb7dad
utils/ruby_check_version_script: fix and test.
...
Don't use ActiveSupport methods and add a test to make sure this doesn't regress.
Fixes #13559
2022-07-16 02:47:33 +01:00
apainintheneck
fe83500617
Moved autoremove logic into cleanup.rb and formula.rb
...
Cleanup.rb:
- Added #autoremove method
- #autoremove is called in clean when HOMEBREW_AUTOREMOVE is set
Formula.rb:
- Added #unused_formulae_with_no_dependents and helpers
Removed old autoremove.rb module.
2022-07-14 13:16:26 -07:00
Rylan Polster
3d45c10f44
Merge pull request #13529 from Rylan12/on-linux-and-macos-version
...
Add `on_system :linux, macos:` wrapper to `OnSystem`
2022-07-13 13:36:24 -04:00
apainintheneck
ee68f813d8
cask/cmd/list_spec.rb: fix leaky version variable
...
The lazy evaluation in let() was failing to reset MacOS#full_version
to the original_macos_version. This meant that all tests run after
this one automatically had MacOS#version == 12 which caused some
of the tests to fail if you were running a different macOS version.
2022-07-11 15:23:31 -07:00
Rylan Polster
5e5c78ebef
Fix tests and improve style
2022-07-11 04:03:37 -04:00
Rylan Polster
57417dd016
Add on_system :linux, macos:
wrapper to OnSystem
2022-07-11 02:19:24 -04: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
Sam Ford
e69345b942
Update livecheck_resource test values
2022-07-04 12:41:58 -04:00
Mohammad Zain Abbas
f4197fc96e
Minor documentation changes
2022-07-04 10:13:01 -04:00
GottemHams
956b457f77
Updated expected plist strings to pass the tests
2022-07-03 16:25:19 +02:00
Mohammad Zain Abbas
7ab79e5423
Update Library/Homebrew/test/resource_spec.rb
...
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2022-07-02 13:01:30 +05:00
Mohammad Zain Abbas
090d71163b
Update Library/Homebrew/test/resource_spec.rb
...
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2022-07-02 13:01:15 +05:00
Mohammad Zain Abbas
a874d833f9
Update Library/Homebrew/test/resource_spec.rb
...
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2022-07-02 13:01:07 +05:00
Rylan Polster
9b49561066
Update components_order
cop to check other on_{system}
methods
2022-07-01 10:52:41 -04:00
Mohammad Zain Abbas
dbfbd19674
Merge branch 'master' into mohammad
2022-06-30 17:50:50 +02:00
Mohammad Zain Abbas
ed37ee55a9
brew style fixes for livecheck
tests in resource
2022-06-30 17:27:48 +02:00
Mohammad Zain Abbas
b3b17ee7bf
Updated tests for livecheck block in resources
2022-06-30 17:06:32 +02:00
Mohammad Zain Abbas
ff63136c6f
Added tests for livecheck
in resource_spec.rb
2022-06-30 16:06:36 +02:00