Sha256: a3f4f1eb1a2455edccfd3fabc759cb17ff1faff55dc0b0fadddeaf86eaf86681

Contents?: true

Size: 1.34 KB

Versions: 20

Compression:

Stored size: 1.34 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
      define
    end

    def define
      namespace :autoprefixer do
        desc 'Show selected browsers and prefixed CSS properties and values'
        task :inspect do
          puts AutoprefixerRails.inspect(@browsers)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
autoprefixer-rails-0.5.20130629 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.5.20130626 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.5.20130625 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.5.20130617 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.5.20130616 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.5.20130615 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130603 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130530 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130528 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130527 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130524 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130523 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130521 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130515 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.4.20130507 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.3.20130502 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.3.20130427 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.3.20130424 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.3.20130423 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-0.2.20130413 lib/rake/autoprefixer_tasks.rb