Skip to content

Commit 7a4f9a7

Browse files
committed
Do not store full path in GZipped js files.
1 parent 811c86f commit 7a4f9a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rdoc/generator/json_index.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def generate_gzipped
170170

171171
Zlib::GzipWriter.open(outfile) do |gz|
172172
gz.mtime = File.mtime(search_index_file)
173-
gz.orig_name = search_index_file.to_s
173+
gz.orig_name = search_index_file.basename.to_s
174174
gz.write search_index
175175
gz.close
176176
end
@@ -188,7 +188,7 @@ def generate_gzipped
188188

189189
Zlib::GzipWriter.open(outfile) do |gz|
190190
gz.mtime = File.mtime(dest)
191-
gz.orig_name = dest.to_s
191+
gz.orig_name = dest.basename.to_s
192192
gz.write data
193193
gz.close
194194
end

0 commit comments

Comments
 (0)