Sha256: 97fad33f4a216ec2e54dc0c2b431158796083221ab16f4e1b49e46d785529487
Contents?: true
Size: 1.37 KB
Versions: 30
Compression:
Stored size: 1.37 KB
Contents
=begin Copyright 2013 Andrey “A.I.” Sitnik <andrey@sitnik.ru>, sponsored by Evil Martians. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. =end require 'rake' require 'rake/tasklib' require 'autoprefixer-rails' module Rake # Define task to inspect Autoprefixer browsers, properties and values. # Call it from your `Rakefile`: # # AutoprefixerTasks.new(['> 1%', 'opera 12']) class AutoprefixerTasks < Rake::TaskLib attr_reader :browsers def initialize(browsers = []) @browsers = browsers @compiler = AutoprefixerRails.compiler(@browsers) define end def define namespace :autoprefixer do desc 'Show selected browsers and prefixed CSS properties and values' task :inspect do puts @compiler.inspect end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems