method
source=
v2_6_3 -
Show latest stable
- Class:
Bundler::StubSpecification
source=(source)public
No documentation available.
# File lib/bundler/stub_specification.rb, line 19
def source=(source)
super
# Stub has no concept of source, which means that extension_dir may be wrong
# This is the case for git-based gems. So, instead manually assign the extension dir
return unless source.respond_to?(:extension_dir_name)
path = File.join(stub.extensions_dir, source.extension_dir_name)
stub.extension_dir = File.expand_path(path)
end