summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-08-22 16:06:37 -0700
committerSamuel Giddins <segiddins@segiddins.me>2016-01-25 10:45:41 -0600
commit95535b4f66c75215f0852835fc0e1808bc82c7a8 (patch)
tree1439c9bbcbc76b9638d4c96a31596031fff45eba /lib/bundler
parent53afc9fe55f82f9d03a61b63c8e7d804f62ee76c (diff)
downloadbundler-95535b4f66c75215f0852835fc0e1808bc82c7a8.tar.gz
raise when fetch_spec fails
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/remote_specification.rb1
-rw-r--r--lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/remote_specification.rb b/lib/bundler/remote_specification.rb
index 425c42fbc1..2fc5741f0b 100644
--- a/lib/bundler/remote_specification.rb
+++ b/lib/bundler/remote_specification.rb
@@ -69,6 +69,7 @@ module Bundler
def _remote_specification
@_remote_specification ||= @spec_fetcher.fetch_spec([@name, @version, @platform])
+ @_remote_specification || raise(GemspecError, "Couldn't fetch specification for #{full_name}")
end
def method_missing(method, *args, &blk)
diff --git a/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb b/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb
index fd203c3e60..9d622a6ed7 100644
--- a/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb
+++ b/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb
@@ -59,7 +59,7 @@ class Bundler::CompactIndexClient
lines = path.read.lines
header = lines.index("---\n")
lines = header ? lines[header + 1..-1] : lines
- lines.each!(&:strip!)
+ lines.each(&:strip!)
end
def parse_gem(string)