> Looks it's caused by HOMEBREW_ENV_FILTERING=1 which I have set so we can run into problems like this before they become user facing problems.
Okay, but why is a requirement filtered out? Smells like a bug.
Do you have brewed ruby and is it the first one on your PATH? Looks like your ruby is `/usr/bin/ruby`.
Initially I wrote `depends_on "ruby"` and had `... bundle exec #{Formula["ruby"].opt_prefix}/bin/ruby ...` in the `bin/"wpscan"` in the script, but then I realized I had to use `depends_on :ruby => ...` so I can't assume the ruby formula.
For the record, here's a link to an outstanding discussion that's hidden as "outdated": https://github.com/Homebrew/homebrew-core/pull/15345#discussion_r125931033.
I put `Gemfile.lock` in a patch along with the `xmlrpc/client` fix for Ruby 2.4+. The patch is hosted in a random gist for now. I'll submit it to formula-patches if this formula is to be accepted and there won't be a release soon.
Time to cut a release?
======================
I'm [packaging wpscan for Homebrew](https://github.com/Homebrew/homebrew-core/pull/15345), and the current latest release (2.9.2) doesn't contain a `Gemfile.lock`, which is not great for reproducibility. Also, 2.9.2 requires a small `xmlrpc/client` patch to work with Ruby 2.4+. Would you please consider cutting a new release?
`wpscan --update` updates the databases of vulnerabilities and stuff (forgot a comment here). The exit status is zero even if you're already up-to-date. I suppose it will exit non-zero if you're not connected to the Internet, but since this is `post_install` does it really matter?
wpscan 2.9.2 (new formula)
==========================
- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md)?
- [x] Have you checked that there aren't other open [pull requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change?
- [x] Have you built your formula locally with `brew install --build-from-source <formula>`, where `<formula>` is the name of the formula you're submitting?
- [x] Does your build pass `brew audit --strict <formula>` (after doing `brew install <formula>`)?
-----
Pretty popular WordPress scanner. 2540 stars at the time of submission. 📰🔎