Sha256: 218893b08ae35d5adec55f6a60ac026da9592bed24743f504c9b89ceb1a3c133

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

Stored size: 611 Bytes

Contents

module Jekyll
  class StaticFile

    def octopod_exclude
      src = path.sub("#{@base}/", '')
      nested_files = %w[img/bigplay.psd readme.txt
        screenshot-1.png screenshot-2.png settings.php standalone.html
        libs/mediaelement/README.md]
      exclude_dirs = %w[]

      excludes = %w[ChangeLog Gemfile Gemfile.lock README.md octopod]
      return true if excludes.include?(src) || exclude_dirs.include?(File.dirname(src))
    end

    alias_method :_octopod_original_write, :write

    def write(dest)
      return true if octopod_exclude

      _octopod_original_write(dest)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-octopod-0.7.2 lib/jekyll/static_file.rb
jekyll-octopod-0.7.1 lib/jekyll/static_file.rb