We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad47a91 commit 2db3106Copy full SHA for 2db3106
lib/rdoc/generator/json_index.rb
@@ -167,8 +167,10 @@ def generate_gzipped
167
search_index = search_index_file.read
168
169
debug_msg "Writing gzipped search index to %s" % outfile
170
- outfile.open 'w', 0644 do |io|
171
- gz = Zlib::GzipWriter.new(io)
+
+ Zlib::GzipWriter.open(outfile) do |gz|
172
+ gz.mtime = File.mtime(search_index_file)
173
+ gz.orig_name = search_index_file.to_s
174
gz.write search_index
175
gz.close
176
end
0 commit comments