4228 Commits

Author SHA1 Message Date
Sam Ford
425a2a675b
Merge pull request #9519 from vladimyr/livecheck-url-patterns
livecheck: update URL patterns
2020-12-31 12:03:29 -05:00
Seeker
acf0ecc7b7
Merge pull request #10175 from SeekingMeaning/ast-helper-cleanup
utils/ast: cleanup
2020-12-31 08:08:36 -08:00
Dario Vladovic
86fee106a3
livecheck: strengthen URL patterns 2020-12-31 09:14:53 -05:00
Mike McQuaid
3dcb35d96f
os/mac/pkgconfig_spec: fix brew style. 2020-12-31 13:30:24 +00:00
Seeker
24636d8bea utils/ast: cleanup
- move `add_bottle_stanza!` from `Utils::Bottles` to `Utils::AST`
- add `replace_bottle_stanza!`
- simplify parameters
2020-12-29 03:40:39 -08:00
Rylan Polster
c54acefab3
Merge pull request #10147 from Rylan12/rename-cask-args
cli/parser: use - instead of _ in cask args
2020-12-28 22:07:39 -05:00
Mike McQuaid
55054a122d
Merge pull request #10143 from samford/pagematch-fix-caching
PageMatch: Return fetched content in match_data
2020-12-28 13:25:58 +00:00
Mike McQuaid
e74be0f53a
Merge pull request #10129 from carlocab/big-sur-pkg-config
os/mac/pkgconfig: merge pc files for 11.1 and 11.0
2020-12-28 13:19:31 +00:00
Seeker
2fc17772f7 bottle_spec: more cleanup 2020-12-25 13:10:10 -08:00
Michka Popoff
da0d7eff9b
Merge pull request #10140 from SeekingMeaning/bottle-spec-dedup
bottle_spec: reduce code duplication in tests
2020-12-25 22:08:39 +01:00
Rylan Polster
3a6f34d27b cli/parser: add tests for inferring option names 2020-12-25 15:57:09 -05:00
Michka Popoff
d9064eb65d
Merge pull request #10121 from SeekingMeaning/shared-library
formula: include versioned `*.so.*` libs for `shared_library("*")`
2020-12-25 15:19:01 +01:00
Seeker
96c28d2579
Merge pull request #10124 from SeekingMeaning/test-descriptions
test/rubocops: improve test descriptions
2020-12-24 19:27:54 -08:00
Sam Ford
d7fa400930
Livecheck: Surface cached status in debug output 2020-12-24 22:19:14 -05:00
Seeker
13e0188187 bottle_spec: reduce code duplication in tests 2020-12-24 12:50:15 -08:00
Seeker
174645fb95 test/rubocops: improve test descriptions 2020-12-24 09:42:03 -08:00
Seeker
1d710047a5 formula: add more tests for shared_library 2020-12-24 09:05:46 -08:00
Sam Ford
5c9f5b9506
Xorg: Use PageMatch#find_versions 2020-12-24 11:15:55 -05:00
carlocab
a701ef79d1
test/os/mac/pkgconfig_spec: fix test failures
This fixes the test failures induced by 845299d10e95e48e4b408ce5fef93036a9b4bf0a.
2020-12-24 14:45:25 +00:00
Rylan Polster
b5cc723d33 tests/rubocops/components_order: fix test descriptions 2020-12-23 21:05:50 -05:00
Seeker
4924b7633c components_order: allow if-else statements inside on_os blocks
Co-Authored-By: Rylan Polster <rslpolster@gmail.com>
2020-12-23 19:28:11 -05:00
Rylan Polster
27ce5754c9 style: fix on_macos/on_linux resource block checks 2020-12-23 17:04:24 -05:00
Issy Long
e041468375
Merge pull request #10100 from issyl0/use-rspec-github-gem
Replace `test/support/github_formatter` with `rspec-github` gem
2020-12-23 18:34:47 +00:00
Mike McQuaid
d6692d2883
Merge pull request #10097 from iMichka/bottle-write-test2
bottle --merge: add more write tests
2020-12-23 13:44:03 +00:00
FX Coudert
7d46fb8f79
Merge pull request #10106 from samford/strategy-handle-redirections-open-uri
Strategy: Manually handle redirections
2020-12-23 14:11:45 +01:00
Michka Popoff
75491b7906 bottle --merge: add more write tests
In preparation for #9315
2020-12-23 10:34:16 +01:00
Seeker
aaf7bc2bc5 utils: add AST helper functions for editing formulae 2020-12-22 22:05:23 -08:00
Sam Ford
12afb272bb
Strategy: Manually handle redirections 2020-12-23 00:35:27 -05:00
Issy Long
3c2467fc3d
Replace test/support/github_formatter with rspec-github gem
- This was a TODO in `test/support/github_formatter.rb` and the PR it
  referenced had been merged.
2020-12-22 18:03:01 +00:00
Michka Popoff
4afcae58c3 bottle: add test for writing part
In preparation for https://github.com/Homebrew/brew/issues/9315
2020-12-22 13:31:20 +01:00
Seeker
cdb07d89ae integration_test: fix indentation for test formulae 2020-12-21 16:17:39 -08:00
Sam Ford
2ddb71af77
Merge pull request #10054 from hyuraku/livecheck-raise-error
livecheck: raise error if no watchlist
2020-12-20 17:48:23 -05:00
Sam Ford
99ea95c28d
Sparkle: Expand tests 2020-12-20 01:56:54 -05:00
Sam Ford
732e67d5db
Expand livecheck/livecheck tests 2020-12-19 23:45:26 -05:00
Sam Ford
c7080ba812
Expand dev-cmd/livecheck tests 2020-12-19 23:02:42 -05:00
Sam Ford
3261bbc0bd
Reorganize livecheck/livecheck test variables 2020-12-19 22:26:37 -05:00
Sam Ford
6bcb0fd4b8
HeaderMatch: Add test 2020-12-19 19:34:26 -05:00
Sam Ford
740d5d3bcd
Sparkle: Add test 2020-12-19 19:34:26 -05:00
Sam Ford
27b7713f1e
Expand tests for Curl#curl_args 2020-12-19 18:13:15 -05:00
Markus Reiter
b1b4518998 Fix sudo prompt. 2020-12-19 19:41:24 +01:00
Markus Reiter
2dd40720f0 Add test for SystemCommand with SIGINT handler. 2020-12-18 16:48:49 +01:00
Markus Reiter
3db55d13d6 Improve handling of SIGINT. 2020-12-18 16:48:49 +01:00
Mike McQuaid
74fb058c7e
More deprecations
More deprecations, disabling and removal for Homebrew 2.7.0.
2020-12-18 14:17:37 +00:00
Mike McQuaid
0bbf965807
More bottling HOMEBREW_LIBRARY changes
- Refuse to create bottles which have non-relocatable references to
  `HOMEBREW_LIBRARY`. This allows us to make all bottles ignore where
  `HOMEBREW_REPOSITORY` is (even those that aren't `cellar :any`).
  I cannot see any circumstances in which any bottle should link to
  anything within `HOMEBREW_REPOSITORY`.
- Remove audit that becomes unnecessary given the above change.
- Relocate references to `@HOMEBREW_LIBRARY@` but don't actually write
  any references yet. This will allow us to move to using
  `@HOMEBREW_LIBRARY` and remove all relocation of `HOMEBREW_REPOSITORY`
  in a future release (2.7.1, most likely).
2020-12-18 13:50:10 +00:00
Mike McQuaid
4dfcf74fb2
Merge pull request #9478 from MikeMcQuaid/deprecate-disable-date
formula: deprecate!/disable!: deprecate missing or non-ISO 8601 dates.
2020-12-18 12:15:51 +00:00
Mike McQuaid
010ae37420
Merge pull request #9403 from MikeMcQuaid/deprecate-cask-requirements
Deprecate cask requirements.
2020-12-18 12:15:35 +00:00
Mike McQuaid
315b7a1c13
Merge pull request #9503 from sjackman/sj/keg-relocate-library
Relocate @@HOMEBREW_REPOSITORY@@/Library
2020-12-17 08:43:52 +00:00
Shaun Jackman
c56681a227 Comment needed changes if HOMEBREW_LIBRARY changes 2020-12-16 14:03:10 -08:00
Markus Reiter
0ae8f0edc8
Merge pull request #9493 from reitermarkus/url-unversioned
Add audit for unversioned URLs with checksum.
2020-12-16 10:19:48 +01:00
Markus Reiter
44cf1041ac Fix tests. 2020-12-16 09:45:58 +01:00