Sha256: 32da4b683556bac00cfc23b1061a93ce74a4479b33038a2dacfbee782432412c

Contents?: true

Size: 534 Bytes

Versions: 62

Compression:

Stored size: 534 Bytes

Contents

module Sprockets
  module RubyProcessor
    VERSION = '1'

    def self.cache_key
      @cache_key ||= "#{name}:#{VERSION}".freeze
    end

    def self.call(input)
      context = input[:environment].context_class.new(input)
      context.extend(Workarea::Plugin::AssetAppendsHelper)
      context.extend(ActionView::Helpers)
      context.extend(InlineSvg::ActionView::Helpers)
      context.instance_eval(input[:data])
    end
  end

  register_engine '.ruby', RubyProcessor, mime_type: 'text/plain', silence_deprecation: true
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.26 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.45 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.25 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.23 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.44 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.22 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.43 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.21 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.42 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.20 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.41 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.19 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.40 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.18 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.39 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.17 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.38 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.5.16 lib/workarea/ext/sprockets/ruby_processor.rb
workarea-core-3.4.37 lib/workarea/ext/sprockets/ruby_processor.rb