I am running brakeman outside of my Gemfile, so am not using bundler.
If I do gem list
, I can see I have the following for brakeman
brakeman (3.3.3, 3.3.2, 3.1.4, 3.1.2)
But if I do brakeman --version
, I get
brakeman 3.1.2
so I am not using the latest version. If I do gem update brakeman
or
gem update brakeman, '3.3.3,
I get
Updating installed gems
Nothing to update
So how do I run brakeman version 3.3.3?
Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.
If you have several gem versions installed and you want to invoke a specific version from the command-line, you could use:
brakeman _3.3.3_ [args go here]
This is not specific to brakeman, you can do this for most other gems as well.
I can't reproduce this issue, but I can think of a few reasons why this might happen:
.bundle/
) pointing to the old version. Try running in a different directory and see if it still happensgem update --system
)brakeman
binary and you selected "no"rvm
)GEM_PATH
, bundler
, gem
, rvm
weirdness that sometimes occursIn any case, if I were you I'd gem uninstall brakeman
, remove all versions, and install fresh. If you are using rvm
, start with a fresh gemset or rvm gemset empty
the current one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With