This method is only available on newer versions. The first available version (v2_6_3) is shown here.
to_hash()
No documentation available.
# File lib/bundler/spec_set.rb, line 78 def to_hash lookup.dup end