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

Version Path
autoprefixer-rails-0.8.20131213 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131209 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131205 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131104 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131029 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131020 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131017 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131015 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131009 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131007 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131006 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20131001 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20130923 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20130919 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20130911 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20130906 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20130903 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.8.20130902 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.7.20130824 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.7.20130810 lib/rake/autoprefixer_tasks.rb