This is a companion discussion topic for the original entry at https://thoughtbot.com/upcase/videos/web-security
I installed the bundler-audit gem and created the rake file with the code as instructed in the show notes. But when I run rake I get this error message:
LoadError: cannot load such file -- bundler/audit/cli
Am I missing something?
thanks for your help,
Anthony
Did you add bundler-audit
to your Gemfile?
Very interesting.
Instant fan of the bundle-audit gem and how you add it to the rake spec task
@andyw8 no, the documentation only mentioned to run
gem install bundler-audiit
via the command line
I added the bundler-audit gem in my config file but when I run
rake
all my rspec tests are running but I donât see any bundler-audit output though.
though running
bundle-audit
in the command line works
thanks for the advice,
Anthony
The rake
task will run in the context of your application bundle, so youâll need to have bundler-audit
in your Gemfile.
Overall we recommend this as adding the rake task makes bundler-audit
a dev dependency, so youâll want to have it in your Gemfile.
this is probably one of my favorite episodes this year, very good stuff