summaryrefslogtreecommitdiff
path: root/baserockimport/exts/importer_bundler_extensions.rb
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-12-03 16:25:37 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-12-03 17:59:12 +0000
commitab125675f37421098ab070dbd85b4f40bbbf17cd (patch)
tree479ac194598d68060b5e3433b8d57989ab37b820 /baserockimport/exts/importer_bundler_extensions.rb
parentb59c830d9a0427c6918bcd2346c3f965da29cac9 (diff)
downloadimport-ab125675f37421098ab070dbd85b4f40bbbf17cd.tar.gz
rubygems: Fix broken build-commands when .gemspec is in a subdirectory
The rubygems.to_chunk tool was assuming the .gemspec file always lived at the top of the chunk repo, but this isn't the case for <https://github.com/rails/rails>. Now it is smarter.
Diffstat (limited to 'baserockimport/exts/importer_bundler_extensions.rb')
-rw-r--r--baserockimport/exts/importer_bundler_extensions.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/baserockimport/exts/importer_bundler_extensions.rb b/baserockimport/exts/importer_bundler_extensions.rb
index 88c82e2..8eba91b 100644
--- a/baserockimport/exts/importer_bundler_extensions.rb
+++ b/baserockimport/exts/importer_bundler_extensions.rb
@@ -44,9 +44,7 @@ module Importer
matches[0]
end
- def create_bundler_definition_for_gemspec(gem_name, path)
- gemspec_file = locate_gemspec(gem_name, path)
-
+ def create_bundler_definition_for_gemspec(gem_name, gemspec_file)
# Using the real Gemfile doesn't get great results, because people can put
# lots of stuff in there that is handy for developers to have but
# irrelevant if you just want to produce a .gem. Also, there is only one