method
builtin_gem?
v2_6_3 -
Show latest stable
- Class:
Bundler::Source::Rubygems
builtin_gem?(spec)protected
No documentation available.
# File lib/bundler/source/rubygems.rb, line 441
def builtin_gem?(spec)
# Ruby 2.1, where all included gems have this summary
return true if spec.summary =~ /is bundled with Ruby/
# Ruby 2.0, where gemspecs are stored in specifications/default/
spec.loaded_from && spec.loaded_from.include?("specifications/default/")
end