40 Commits

Author SHA1 Message Date
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
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
549763d594 Don't create package.json in current directory. 2020-11-18 08:40:59 +01:00
Dustin Rodrigues
027419effe test/language/node: add test for prepare/prepack removal 2020-11-05 21:12:41 -05:00
Diogo Azevedo
35a7e336be
node: add support for npm 7
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-10-24 15:26:36 +02:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
miccal
86a838c03f test/language/java_spec: drop version to 1.6+ 2020-09-17 14:12:22 +08:00
Bo Anderson
3955e7e13b language/test: add shebang tests 2020-03-27 19:18:25 +00:00
EricFromCanada
b681d64e59 version: handle -stable in tag 2020-02-28 14:57:28 -05:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Shaun Jackman
e8b22690a0 Fix Language::Java::java_home_env for Linux
/usr/libexec/java_home is specific to macOS.
Language::Java::java_home_cmd is not implemented on Linux and raises
NotImplementedError.

Add private Language::Java::java_home_shell and use it instead of java_home_cmd.
Add public Language::Java::java_home for use by formulae.
2018-11-29 12:50:31 -08:00
Jonathan Chang
3ce4caeb1a Add tests for language/python 2018-09-24 17:13:51 -04:00
Mike McQuaid
5e1806e796 test: rubocop-rspec style auto-corrects.
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Markus Reiter
9bee9ca575 Use “squiggly” heredocs. 2017-10-18 14:39:09 +02:00
Markus Reiter
2ad3a87045 Silence all specs by default. 2017-07-29 20:25:37 +02:00
Mike McQuaid
9f6762d958 language/node: general cleanup.
- Avoid using a temporary variable where not necessary
- Use fewer, better stubs in the tests to avoid warnings and better
  test the implemented functionality.
2017-07-07 15:11:41 +01:00
Christian Moritz
5e00c277ce partly revert log verbose npm pack output commit
to fix issues with shwoing npm debug output even on non-verbose install runs.
2017-06-30 00:55:34 +02:00
Christian Moritz
6baea2543a language/node: set cache config via argument
instead of writing a .npmrc file, which simplifies the code.
npm_cache_config is still preserved for backwarts compatiblility and
usage int he kibana@n formulas in core.
2017-06-29 20:29:25 +02:00
Christian Moritz
466fe9841a language/node: npm pack ignore prepublish scripts
This tells npm pack to don't run prepublish scripts at all.
I think this is the best default because:
* most modules don't have a prepublish script at all and aren't affected
  by this change
* most prepublish scripts are calling devDeps, which would fail in our
  case, because (dev)Deps aren't installed at npm pack time until #2820
  gets resolved
* we favor npm registry tarball for formula downloads, which are already
  prepublished, so we would in the best case needlessly run prepublish
  a second time and in the worst case it would fail (because a clean
  step is required before running prepublish a second time in a row)
* This change does the right thing for >99% of all the packages and
  would only affect packages with prepublish scripts downloaded from a
  non-npm registry tarball (like github tarballs) and with a prepublish
  script wich does no't require any devDep (unlike for cross platform)
2017-06-29 20:29:25 +02:00
Christian Moritz
fe39dbb78c language/node: log verbose npm pack output
This makes npm pack to log verbose debug output to the console to
simplify debugging npm pack failures.
Refs: https://github.com/Homebrew/brew/pull/2820#discussion_r123890729
Prevously Utils.popen_read swallowed all debug output.
2017-06-29 20:29:25 +02:00
Christian Moritz
02113e2714 language/node: build native addons from source
By telling node-pre-gyp and prebuild to don't pull prebuild binaries and
instead build them from source. This still may not work for some custom
third party scripts for pulling prebuild binaries.
2017-06-29 20:29:25 +02:00
Christian Moritz
7d8124f339 language/node: set npm loglevel to max -ddd
to match the loglevel used in npm_debug.log (previous --verbose loglevel
would match -dd)
2017-06-29 20:29:25 +02:00
Mike McQuaid
943c69f6a6 Merge pull request #2814 from mansimarkaur/java
[WIP] Added tests for language/java
2017-06-25 09:18:36 +01:00
mansimarkaur
fac708da7a changes test names for class methods 2017-06-25 06:27:53 +05:30
mansimarkaur
1df9a475a8 Set java environment var to test overriding 2017-06-25 06:04:09 +05:30
mansimarkaur
67c48360fa Improved code quality 2017-06-24 02:34:10 +05:30
mansimarkaur
66d5baf3fe Removed extra space from include clause 2017-06-24 02:18:52 +05:30
mansimarkaur
690e841fca Added tests for language/java 2017-06-23 06:26:23 +05:30
mansimarkaur
bfd19f9170 Stubbed nil:NilClass 2017-06-23 03:40:03 +05:30
mansimarkaur
5fed1f5cbe Attempt to fix tests 2017-06-23 03:40:03 +05:30
mansimarkaur
69840e2a2f Avoided the prepend_path not existing method error 2017-06-23 03:40:03 +05:30
mansimarkaur
f225eaf4d9 Added test for non existent node formula and existent npmrc 2017-06-23 03:40:03 +05:30
mansimarkaur
837ffa209c stubbed the node formula 2017-06-23 03:40:03 +05:30
mansimarkaur
2cb678a6d5 Improved test quality 2017-06-23 03:40:03 +05:30
mansimarkaur
cf5db0e0df Fixed style errors 2017-06-23 03:40:03 +05:30
mansimarkaur
7cd5d143c3 Added tests for language/node.rb 2017-06-23 03:40:03 +05:30
Markus Reiter
a554902380 Add mktmpdir helper method. 2017-02-28 15:06:32 +01:00
Markus Reiter
e097d77577 Merge pull request #2047 from reitermarkus/spec-language_go
Convert Language::Go test to spec.
2017-02-20 14:47:09 +01:00
Markus Reiter
9e0c0a8b3a Convert Language::Python test to spec. 2017-02-18 16:26:11 +01:00
Markus Reiter
f8ea926641 Convert Language::Go test to spec. 2017-02-17 19:17:08 +01:00