From 05aa6ee50fd752f8d3c7c9fae1e2af86489c2f90 Mon Sep 17 00:00:00 2001 From: Nish Sinha Date: Thu, 14 Oct 2021 13:55:16 -0400 Subject: [PATCH] Add license to gem build directory --- Rakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rakefile b/Rakefile index 7b14cb3741..5bd3ef3766 100644 --- a/Rakefile +++ b/Rakefile @@ -43,6 +43,9 @@ namespace :gems do pkg_path = File.join(root_path, "pkg") Dir.mkdir(pkg_path) unless File.directory?(pkg_path) + license_path = File.join(root_path, "LICENSE") + FileUtils.cp(license_path, pkg_path) if File.file?(license_path) + GEMSPECS.each do |gemspec_path| puts "> Building #{gemspec_path}" Dir.chdir(File.dirname(gemspec_path)) do