summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-01 17:02:10 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-01 17:02:10 +0100
commit0c1b5b483f267da6161dd3636682fe50152ea2a9 (patch)
tree7641bbed30767c466e5517c715ae7087c276d069
parent1d58cf3206bc5e288986649e4258bbc6bddb3ead (diff)
downloadmorph-0c1b5b483f267da6161dd3636682fe50152ea2a9.tar.gz
import: rubygem.to_chunk: Make things work when there's no Gemfile
-rwxr-xr-ximport/rubygem.to_chunk6
1 files changed, 6 insertions, 0 deletions
diff --git a/import/rubygem.to_chunk b/import/rubygem.to_chunk
index 9e802e73..bee5be14 100755
--- a/import/rubygem.to_chunk
+++ b/import/rubygem.to_chunk
@@ -80,6 +80,12 @@ Log.formatter = proc do |severity, datetime, progname, msg|
"rubygem.to_chunk: #{severity}: #{msg}\n"
end
+class << Bundler
+ def default_gemfile
+ # This is a hack to make things not crash when there's no Gemfile
+ Pathname.new('.')
+ end
+end
def spec_is_from_current_source_tree(spec)
spec.source.instance_of? Bundler::Source::Path and