Skip to content

Commit

Permalink
Add license to gem build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishnha committed Oct 14, 2021
1 parent 9627f2b commit 05aa6ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05aa6ee

Please sign in to comment.