diff options
Diffstat (limited to 'lib/bundler/source/rubygems.rb')
-rw-r--r-- | lib/bundler/source/rubygems.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 3d84df45cd..5e6438e9fc 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -292,11 +292,10 @@ module Bundler end def builtin_gem?(spec) - # Ruby 2.1-style - return true if spec.summary =~ /is bundled with Ruby/ - - # Ruby 2.0 style - spec.loaded_from.include?("specifications/default/") + # gems bundled with ruby have summary as - "is bundled with ruby" + # or else use "specifications/default" to store the gemspecs. + spec.summary =~ /is bundled with Ruby/ || + (spec.loaded_from && spec.loaded_from.include?("specifications/default/")) end end end |