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

Version Path
jekyll-assets-2.1.3 lib/jekyll/assets/patches/jekyll/cleaner.rb
jekyll-assets-2.1.2 lib/jekyll/assets/patches/jekyll/cleaner.rb
jekyll-assets-2.1.1 lib/jekyll/assets/patches/jekyll/cleaner.rb
jekyll-assets-2.1.0 lib/jekyll/assets/patches/jekyll/cleaner.rb
jekyll-assets-2.0.3 lib/jekyll/assets/patches/jekyll/cleaner.rb
jekyll-assets-2.0.2 lib/jekyll/assets/patches/jekyll/cleaner.rb
jekyll-assets-2.0.1 lib/jekyll/assets/patches/jekyll/cleaner.rb
jekyll-assets-2.0.0 lib/jekyll/assets/patches/jekyll/cleaner.rb