Skip to content

Commit

Permalink
back to using Pathname#read
Browse files Browse the repository at this point in the history
  • Loading branch information
dogatana committed Dec 3, 2016
1 parent cbae980 commit b1490dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdoc/generator/json_index.rb
Expand Up @@ -170,7 +170,7 @@ def generate_gzipped
outfile = out_dir + "#{search_index_file}.gz"

debug_msg "Reading the JSON index file from %s" % search_index_file
search_index = open(search_index_file, 'r:utf-8', &:read)
search_index = search_index_file.read(mode: 'r:utf-8')

debug_msg "Writing gzipped search index to %s" % outfile

Expand Down

0 comments on commit b1490dd

Please sign in to comment.