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 cbae980 commit b1490ddCopy full SHA for b1490dd
lib/rdoc/generator/json_index.rb
@@ -170,7 +170,7 @@ def generate_gzipped
170
outfile = out_dir + "#{search_index_file}.gz"
171
172
debug_msg "Reading the JSON index file from %s" % search_index_file
173
- search_index = open(search_index_file, 'r:utf-8', &:read)
+ search_index = search_index_file.read(mode: 'r:utf-8')
174
175
debug_msg "Writing gzipped search index to %s" % outfile
176
0 commit comments