Skip to content

Commit 7a7b62b

Browse files
committed
Based on #93 (which was not correct), we attempt to resolve #86.
#93 was created by a user who no longer exists on github, so I cannot merge it and give credit to that user. The patch did introduce a couple of spec failures, and, here, I attempt to avoid them. Note that we still need a spec to test this; I will ask participants in #86 for that.
1 parent 58ecd07 commit 7a7b62b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/warbler/jar.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def create(config_or_path)
8686
rm_f path
8787
ensure_directory_entries
8888
puts "Creating #{path}"
89+
if Warbler::Config === config_or_path
90+
@files.delete("#{config_or_path.jar_name}/#{path}")
91+
end
8992
create_jar path, @files
9093
end
9194

0 commit comments

Comments
 (0)