Sha256: e4ca74f55998f982890e07e1fbe55aa9e4d7ce069aa0630e4c7d45fa952c9d20

Contents?: true

Size: 580 Bytes

Versions: 3

Compression:

Stored size: 580 Bytes

Contents

require 'html/pipeline'
require 'html/pipeline/gitlab/version'

module HTML
  class Pipeline
    class Gitlab
      # GitLab related filters for html-pipeline. Implements new filters used
      # by GitLab.

      # Custom filter implementations
      autoload :GitlabEmojiFilter, 'html/pipeline/gitlab/gitlab_emoji_filter'
      autoload :GitlabEmailImageFilter, 'html/pipeline/gitlab/gitlab_email_image_filter'

      def initialize(filters)
        @filters = filters.flatten.freeze
      end

      def pipeline
        HTML::Pipeline.new @filters
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html-pipeline-gitlab-0.2.0 lib/html/pipeline/gitlab.rb
html-pipeline-gitlab-0.1.7 lib/html/pipeline/gitlab.rb
html-pipeline-gitlab-0.1.6 lib/html/pipeline/gitlab.rb