Sha256: fbabf0609a87515b34b4b7d76bb548bea5dff037f3b78a244a5f290bff075cc7
Contents?: true
Size: 422 Bytes
Versions: 8
Compression:
Stored size: 422 Bytes
Contents
# Frozen-string-literal: true # Copyright: 2012-2015 - MIT License # Encoding: utf-8 module Jekyll class Cleaner # TODO: jekyll/jekyll@upstream: This method should really have a hook ya. alias_method :_old_obsolete_files, :obsolete_files def obsolete_files _old_obsolete_files.delete_if do |path| path =~ %r!\A#{Regexp.escape(site.in_dest_dir("assets"))}(\/.*)?\Z! end end end end
Version data entries
8 entries across 8 versions & 1 rubygems