/usr/lib/ruby/vendor_ruby/autoprefixer-rails.rb is in ruby-autoprefixer-rails 6.3.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # Ruby integration with Autoprefixer JS library, which parse CSS and adds
# only actual prefixed
module AutoprefixerRails
autoload :Sprockets, 'autoprefixer-rails/sprockets'
# Add prefixes to `css`. See `Processor#process` for options.
def self.process(css, opts = { })
params = { }
params[:browsers] = opts.delete(:browsers) if opts.has_key?(:browsers)
params[:cascade] = opts.delete(:cascade) if opts.has_key?(:cascade)
params[:remove] = opts.delete(:remove) if opts.has_key?(:remove)
processor(params).process(css, opts)
end
# Add Autoprefixer for Sprockets environment in `assets`.
# You can specify `browsers` actual in your project.
def self.install(assets, params = { })
Sprockets.register_processor(processor(params))
Sprockets.install(assets)
end
# Disable installed Autoprefixer
def self.uninstall(assets)
Sprockets.uninstall(assets)
end
# Cache processor instances
def self.processor(params = { })
Processor.new(params)
end
end
require_relative 'autoprefixer-rails/result'
require_relative 'autoprefixer-rails/version'
require_relative 'autoprefixer-rails/processor'
require_relative 'autoprefixer-rails/railtie' if defined?(Rails)
|