Skip to content

Commit aa82272

Browse files
author
Zachary Scott
committed
Merge pull request #341 from voxik/remove-full-path-from-gz
Do not store full path in GZipped js files.
2 parents e682367 + 7a4f9a7 commit aa82272

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
@@ -175,7 +175,7 @@ def generate_gzipped
175175

176176
Zlib::GzipWriter.open(outfile) do |gz|
177177
gz.mtime = File.mtime(search_index_file)
178-
gz.orig_name = search_index_file.to_s
178+
gz.orig_name = search_index_file.basename.to_s
179179
gz.write search_index
180180
gz.close
181181
end
@@ -193,7 +193,7 @@ def generate_gzipped
193193

194194
Zlib::GzipWriter.open(outfile) do |gz|
195195
gz.mtime = File.mtime(dest)
196-
gz.orig_name = dest.to_s
196+
gz.orig_name = dest.basename.to_s
197197
gz.write data
198198
gz.close
199199
end

0 commit comments

Comments
 (0)