Sha256: 6f0b09f4de4d6a23577ae076b05223b54eeca91143f842046d565be249cdb5be

Contents?: true

Size: 968 Bytes

Versions: 12

Compression:

Stored size: 968 Bytes

Contents

module Jekyll
  class StaticFile

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

      excludes = %w[ChangeLog Gemfile Gemfile.lock README.md octopod podlove-web-player/readme.md]
      excludes.concat(nested_files.map { |f| File.join('podlove-web-player/podlove-web-player', f) })

      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

12 entries across 12 versions & 1 rubygems

Version Path
jekyll-octopod-0.7.0 lib/jekyll/static_file.rb
jekyll-octopod-0.6.7 assets/_plugins/static_file.rb
jekyll-octopod-0.6.6 assets/_plugins/static_file.rb
jekyll-octopod-0.6.5 assets/_plugins/static_file.rb
jekyll-octopod-0.6.4 assets/_plugins/static_file.rb
jekyll-octopod-0.6.3 assets/_plugins/static_file.rb
jekyll-octopod-0.6.2 assets/_plugins/static_file.rb
jekyll-octopod-0.6.1 assets/_plugins/static_file.rb
jekyll-octopod-0.6.0 assets/_plugins/static_file.rb
jekyll-octopod-0.5.3 assets/_plugins/static_file.rb
jekyll-octopod-0.5.1 assets/_plugins/static_file.rb
jekyll-octopod-0.5.0 assets/_plugins/static_file.rb