diff options
Diffstat (limited to 'baserockimport/exts/rubygems.find_deps')
-rwxr-xr-x | baserockimport/exts/rubygems.find_deps | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/baserockimport/exts/rubygems.find_deps b/baserockimport/exts/rubygems.find_deps index ae08b65..df7e302 100755 --- a/baserockimport/exts/rubygems.find_deps +++ b/baserockimport/exts/rubygems.find_deps @@ -76,8 +76,10 @@ class RubyGemDependencyFinder < Importer::Base log.info("Finding dependencies for #{gem_name} based on source code in " \ "#{source_dir_name}") + gemspec_file = locate_gemspec(gem_name, source_dir_name) + resolved_specs = Dir.chdir(source_dir_name) do - definition = create_bundler_definition_for_gemspec(gem_name, source_dir_name) + definition = create_bundler_definition_for_gemspec(gem_name, gemspec_file) definition.resolve_remotely! end |