summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-06-02 20:40:19 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-06-02 20:40:19 -0700
commit878b62605019ef0e7b71c3f7ae981495e68d1837 (patch)
tree38c1948de9282d652f6bb93a032186bf7415e6c0
parentb6e038cffdbc862ffa48edca82340760fcd27aba (diff)
downloadbundler-seg-allow-missing-files.tar.gz
Allow missing files when validating a specseg-allow-missing-files
-rw-r--r--lib/bundler/rubygems_integration.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index 6ea18b2949..42811022d1 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -49,6 +49,8 @@ module Bundler
def validate(spec)
Bundler.ui.silence { spec.validate(false) }
+ rescue Errno::ENOENT
+ nil
end
def path(obj)
@@ -487,6 +489,8 @@ module Bundler
# so we set it to an empty string to prevent an exception here.
spec.summary ||= ""
Bundler.ui.silence { spec.validate(false) }
+ rescue Errno::ENOENT
+ nil
end
end