Sha256: 29b2c192106dfb800c6190881e3800130f3bc35c3ba12a1f8d6ae06314ab7171

Contents?: true

Size: 892 Bytes

Versions: 5

Compression:

Stored size: 892 Bytes

Contents

# Frozen-string-literal: true
# Copyright: 2012 - 2018 - MIT License
# Encoding: utf-8

require "sprockets/manifest"

module Jekyll
  module Assets
    class Manifest < Sprockets::Manifest
      attr_reader :data

      # --
      # Works around some weird behavior in Sprockets 3.x that seemd to make
      # it so that when you use an absolute path, it was automatically a filter
      # and so you could never find an asset that was dynamically added.
      # --
      def self.simple_logical_path?(file)
        super || File.file?(file)
      end

      # --
      # Allows you to add a manifest key for us to keep.
      # @note the format should be `key: { hashKey: hashVal }` or `key: []`
      # @note complex keys aren't supported.
      # @return [Array<String>]
      # --
      def self.keep_keys
        @keep_keys ||= %w(
          assets
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-assets-3.0.10 lib/jekyll/assets/manifest.rb
jekyll-assets-3.0.9 lib/jekyll/assets/manifest.rb
jekyll-assets-3.0.8 lib/jekyll/assets/manifest.rb
jekyll-assets-3.0.7 lib/jekyll/assets/manifest.rb
jekyll-assets-3.0.6 lib/jekyll/assets/manifest.rb