Sha256: 1d44eb5c327086327693aaa16168f28be95c8e1848e78febaa82a68ee85ad0dd
Contents?: true
Size: 765 Bytes
Versions: 3
Compression:
Stored size: 765 Bytes
Contents
# Frozen-string-literal: true # Copyright: 2012 - 2017 - MIT License # Encoding: utf-8 unless Jekyll::Assets::Env.old_sprockets? require "sprockets/exporters/base" module Sprockets module Exporters class FileExporter < Exporters::Base def skip?(logger) dest = environment.in_dest_dir + "/" out, pth = nil, target.sub(dest, "") if File.exist?(target) logger.debug "Skips #{pth}" do out = true end else logger.debug "Write #{pth}" do out = false end end out end def call write target do |f| f.write asset.source end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-assets-3.0.2 | lib/jekyll/assets/writer.rb |
jekyll-assets-3.0.1 | lib/jekyll/assets/writer.rb |
jekyll-assets-3.0.0 | lib/jekyll/assets/writer.rb |