aboutsummaryrefslogtreecommitdiffstats
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.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rubygems/resolver/local_specification.rb b/lib/rubygems/resolver/local_specification.rb
new file mode 100644
index 0000000000..dcca6c736a
--- /dev/null
+++ b/lib/rubygems/resolver/local_specification.rb
@@ -0,0 +1,16 @@
+##
+# A LocalSpecification comes from a .gem file on the local filesystem.
+
+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
+
+ super
+ end
+
+end
+