This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
extensions()
public
needed for “with native extensions” during install
# File lib/bundler/endpoint_specification.rb, line 85
def extensions
if @remote_specification
@remote_specification.extensions
elsif _local_specification
_local_specification.extensions
else
super
end
end