lib/rdoc/generator/json_index.rb in rdoc-6.0.0.beta3 vs lib/rdoc/generator/json_index.rb in rdoc-6.0.0.beta4
- old
+ new
@@ -1,6 +1,6 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
require 'json'
begin
require 'zlib'
rescue LoadError
end
@@ -159,10 +159,10 @@
##
# Compress the search_index.js file using gzip
def generate_gzipped
- return unless defined?(Zlib)
+ return if @options.dry_run or not defined?(Zlib)
debug_msg "Compressing generated JSON index"
out_dir = @base_dir + @options.op_dir
search_index_file = out_dir + SEARCH_INDEX_FILE