Skip to content

Commit

Permalink
Include gem_build_complete_path in jar (#439)
Browse files Browse the repository at this point in the history
`Gem::Specification#missing_extensions?` uses this file to determine if
a gem has properly completed building extensions.
  • Loading branch information
David Harsha authored and kares committed Aug 23, 2018
1 parent a900236 commit f20a64d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/warbler/jar.rb
Expand Up @@ -234,6 +234,11 @@ def find_single_gem_files(config, spec)
next if config.gem_excludes && config.gem_excludes.any? {|rx| f =~ rx }
@files[apply_pathmaps(config, File.join(spec.full_name, f), :gems)] = src
end
if File.exist?(spec.gem_build_complete_path)
base_dir = Pathname.new(spec.base_dir)
gem_build_complete_path = Pathname.new(spec.gem_build_complete_path)
@files[File.join(config.relative_gem_path, gem_build_complete_path.relative_path_from(base_dir))] = spec.gem_build_complete_path
end
end

# Add all application directories and files to the archive.
Expand Down

0 comments on commit f20a64d

Please sign in to comment.