summaryrefslogtreecommitdiff
path: root/lib/rubygems/resolver/local_specification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/resolver/local_specification.rb')
-rw-r--r--lib/rubygems/resolver/local_specification.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rubygems/resolver/local_specification.rb b/lib/rubygems/resolver/local_specification.rb
index c27bab0f5a..b57d40e795 100644
--- a/lib/rubygems/resolver/local_specification.rb
+++ b/lib/rubygems/resolver/local_specification.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
##
# A LocalSpecification comes from a .gem file on the local filesystem.
@@ -7,7 +8,7 @@ class Gem::Resolver::LocalSpecification < Gem::Resolver::SpecSpecification
# Returns +true+ if this gem is installable for the current platform.
def installable_platform?
- return true if @source.kind_of? Gem::Source::SpecificFile
+ return true if @source.is_a? Gem::Source::SpecificFile
super
end