I have Ruby 2.7.2 installed using rbenv, but when I run the following code:
require 'webrick'
WEBrick::VERSION
=> "1.6.0"
WEBrick::HTTPUtils.method(:mime_type).source_location
=> ["/Users/my_user/.rbenv/versions/2.7.2/lib/ruby/2.7.0/webrick/httputils.rb", 133]
I have the webrick version 1.6, which has a security issue which was patched in ruby 2.7.2.
This also happens in our dev/prod environments were we use a docker image with ruby 2.7.2, so, I don't think is an rbenv issue.
What I want to know is, why my ruby interpreter is using libraries from version 2.7.0?