We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03222d9 commit 63544d0Copy full SHA for 63544d0
tool/automatiek/gem.rb
@@ -115,10 +115,17 @@ def namespace_files(folder)
115
end
116
117
def clean
118
- files = Dir.glob("#{vendor_lib}/*", File::FNM_DOTMATCH).reject do |f|
+ all_files = Dir.glob("#{vendor_lib}/*", File::FNM_DOTMATCH)
119
+
120
+ unless all_files.include?("#{vendor_lib}/#{license_path}")
121
+ raise "#{license_path} was not found in gem #{gem_name}. The gem includes the following files:\n * #{all_files.join("\n * ")}"
122
+ end
123
124
+ files = all_files.reject do |f|
125
basename = f.split("/").last
126
allowlist.include? basename
127
128
129
FileUtils.rm_r files
130
131
0 commit comments