summaryrefslogtreecommitdiff
path: root/lib/bundler/source/rubygems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source/rubygems.rb')
-rw-r--r--lib/bundler/source/rubygems.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index 880f78ee7d..f69a5b3e8e 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -4,7 +4,6 @@ require 'rubygems/spec_fetcher'
module Bundler
module Source
- # TODO: Refactor this class
class Rubygems
API_REQUEST_LIMIT = 100 # threshold for switching back to the modern index instead of fetching every spec
@@ -68,7 +67,7 @@ module Bundler
end
def install(spec)
- if installed_specs[spec].any? && gem_dir_exists?(spec)
+ if installed_specs[spec].any?
return ["Using #{spec.name} (#{spec.version})", nil]
end
@@ -277,16 +276,6 @@ module Bundler
end
end
- def gem_dir_exists?(spec)
- return true if spec.name == "bundler"
- # Ruby 2 default gems
- return true if spec.loaded_from.include?("specifications/default/")
- # Ruby 1.9 default gems
- return true if spec.summary =~ /is bundled with Ruby/
-
- File.directory?(spec.full_gem_path)
- end
end
-
end
end