Skip to content

Commit

Permalink
Merge pull request #341 from voxik/remove-full-path-from-gz
Browse files Browse the repository at this point in the history
Do not store full path in GZipped js files.
  • Loading branch information
Zachary Scott committed Dec 20, 2015
2 parents e682367 + 7a4f9a7 commit aa82272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rdoc/generator/json_index.rb
Expand Up @@ -175,7 +175,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 @@ -193,7 +193,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 aa82272

Please sign in to comment.