From ab125675f37421098ab070dbd85b4f40bbbf17cd Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 3 Dec 2014 16:25:37 +0000 Subject: 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 . Now it is smarter. --- baserockimport/exts/importer_bundler_extensions.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'baserockimport/exts/importer_bundler_extensions.rb') 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 -- cgit v1.2.1