Mike McQuaid
d496f5c121
Deprecations for Homebrew 2.6.0
...
Do the usual deprecate/disable dance for the Homebrew 2.6.0 release.
Not to be merged until the next release will definitely be 2.6.0.
2020-11-24 16:44:02 +00:00
Jonathan Chang
5a97c08ab3
java: only disable java version ranges on Big Sur
2020-11-20 13:57:11 +11:00
Mike McQuaid
35db40fe25
Disable Java requirement versions on Big Sur
...
It would be possible to work around this but I'm not convinced it's
worth it given https://github.com/Homebrew/homebrew-core/issues/63290
Fixes #9194
2020-11-19 14:03:57 +00:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
EricFromCanada
212367c1c0
requirements: reword error messages for consistency
...
also add formatting to download URLs
2020-11-01 15:20:02 -05:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
0c0275771d
Cleanup Requirements
...
- remove unused NonBinaryOsxfuseRequirement
- import CodeSignRequirement from Homebrew/homebrew-core
- remove unused UnsignedKextRequirement
- don’t allow custom name for X11Requirement
2018-10-19 16:38:41 +01:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Mike McQuaid
80d75bc0d8
Homebrew/.rubocop: tweak rules.
...
Adjust the rules based on the current codebase. Remove various enable,
disables and default values that are unnecessary. Add more comments
explaining why. Make minor changes needed to enable a few more rules.
2018-09-02 20:15:09 +01:00
Markus Reiter
5e2d4d52ba
Refactor OsxfuseRequirement
spec.
2018-04-20 19:11:22 +02:00
Mike McQuaid
6fab4e1805
x11_requirement: move download to base class.
...
No reason to have it in macOS class and keeps consistent output with
`brew info` on Linux.
2018-04-18 11:18:29 +01:00
Mike McQuaid
a4bada575a
requirements: define cask on base class.
...
The `cask` attribute doesn't make as much sense on Linux but can be
ignored there. The advantage of this change is that (like #4086 ) it
allows figuring out the relevant cask for a formulae requirement on a
Linux machine.
2018-04-18 09:55:44 +01:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
commitay
8ac3f23b27
java_requirement comment
2018-03-07 19:55:23 +10:00
commitay
032efdebda
java_requirement
2018-03-07 08:20:24 +10:00
Shaun Jackman
020c1adebd
X11Requirement: Inherit from generic class [macOS]
...
Fix the warning: already initialized constant X11Requirement
2017-12-08 10:38:58 -08:00
Shaun Jackman
804393efc4
Implement X11Requirement for Linux
...
Move the XQuartz implementation to extend/os/mac/requirements.
2017-12-07 08:45:29 -08:00
JCount
224864b149
java_requirement: support prompting users to install legacy Java casks
...
This enhances the Java requirement to support prompting the user
to install the correct legacy Java version via Cask for formulae
that don't yet work with the latest version of Java. Previously,
even if the formula had a strict requirement that a specific,
older version of Java be used, the messaging would tell the user to
`brew cask install java` (i.e. to install the latest version of Java),
which wouldn't actually satisfy the requirement.
2017-10-26 09:57:03 -04:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Mike McQuaid
021cef4b2b
Autocorrect Rubocop Style/SpecialGlobalVars.
2017-06-12 09:11:42 +01:00
Bob W. Hogg
608d72a35f
OsxfuseRequirement: Port to Linux
2017-04-15 21:20:09 -07:00
Mike McQuaid
960768d8ed
mac/java_requirement: avoid adding/removing stub.
2017-03-05 11:26:30 +01:00
Jonathan Chang
ea28c79031
java_requirement: avoid nil in possible_javas
2017-03-02 20:31:55 -08:00
Jonathan Chang
0ca4bd030a
java_requirement: don't consider macOS Java stub
2017-03-02 19:45:58 -08:00
Bob W. Hogg
e0d5afc237
java_requirement: Make macOS overrides extend Requirement
...
This doesn't actually seem to make that much difference,
but it is at least consistent with the main class body and with
the Linux overrides.
2017-02-20 19:19:26 -08:00
Bob W. Hogg
c49b97dd9c
Code review cleanups
2017-02-15 21:47:08 -08:00
Bob W. Hogg
5a214de68d
java_requirement: port to Linux and refactor
...
Split the core requirement class into generic, Linux-specific,
and macOS-specific parts.
Additionally, the Linux version is now able to detect Java versions
(the previous Linuxbrew implementation was only able to detect
if Java was present at all.)
2017-02-15 21:35:26 -08:00