Skip to content

Commit

Permalink
gem: fix packaging of native gems without java files
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jan 3, 2021
1 parent 08ecf99 commit 0e6ce7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rakelib/cross-ruby.rake
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ else
end

Rake::ExtensionTask.new("nokogiri", NOKOGIRI_SPEC) do |ext|
ext.gem_spec.files.reject! { |f| f =~ %r{\.(java|jar)$} }

ext.lib_dir = File.join(*['lib', 'nokogiri', ENV['FAT_DIR']].compact)
ext.config_options << ENV['EXTOPTS']
ext.cross_compile = true
Expand Down

0 comments on commit 0e6ce7c

Please sign in to comment.