diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-01 17:02:10 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-01 17:02:10 +0100 |
commit | 0c1b5b483f267da6161dd3636682fe50152ea2a9 (patch) | |
tree | 7641bbed30767c466e5517c715ae7087c276d069 | |
parent | 1d58cf3206bc5e288986649e4258bbc6bddb3ead (diff) | |
download | morph-0c1b5b483f267da6161dd3636682fe50152ea2a9.tar.gz |
import: rubygem.to_chunk: Make things work when there's no Gemfile
-rwxr-xr-x | import/rubygem.to_chunk | 6 |
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 |