Skip to content

Commit

Permalink
Do not store full path in GZipped js files.
Browse files Browse the repository at this point in the history
  • Loading branch information
voxik committed Jan 27, 2015
1 parent 811c86f commit 7a4f9a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rdoc/generator/json_index.rb
Expand Up @@ -170,7 +170,7 @@ def generate_gzipped

Zlib::GzipWriter.open(outfile) do |gz|
gz.mtime = File.mtime(search_index_file)
gz.orig_name = search_index_file.to_s
gz.orig_name = search_index_file.basename.to_s
gz.write search_index
gz.close
end
Expand All @@ -188,7 +188,7 @@ def generate_gzipped

Zlib::GzipWriter.open(outfile) do |gz|
gz.mtime = File.mtime(dest)
gz.orig_name = dest.to_s
gz.orig_name = dest.basename.to_s
gz.write data
gz.close
end
Expand Down

0 comments on commit 7a4f9a7

Please sign in to comment.