Sha256: 147d9c5e1d2d430fc88ed6b4997abeb42edcb2025d17752f305cc932bccc332b

Contents?: true

Size: 1.26 KB

Versions: 24

Compression:

Stored size: 1.26 KB

Contents

if config['compass_960']
  gem 'compass-960-plugin', :version => '~> 0.10.4', :group => [:assets]
  after_bundler do

    #create compass.rb initializer
    create_file 'config/initializers/compass.rb' do <<-RUBY
require 'ninesixty'
    RUBY
    end

    if File.exist?('config/initializers/sass.rb')
      inject_into_file 'app/assets/stylesheets/application.css.sass', :after => "@import compass\n" do <<-SASS
@import 960/grid
      SASS
      end
    else
      inject_into_file 'app/assets/stylesheets/application.css.scss', :after => "@import \"compass\";\n" do <<-SCSS
@import "960/grid";
      SCSS
      end
    end

    inject_into_file 'config/application.rb', :after => "Rails::Application\n" do <<-RUBY
      config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
      config.sass.load_paths << "#{Gem.loaded_specs['compass-960-plugin'].full_gem_path}/stylesheets"
    RUBY
    end

  end
else
  recipes.delete('compass_960')
end
__END__

name: Compass 960
description: "Add compass-960-plugin for Compass"
author: porta

requires: [compass]
run_after: [compass]
exclusive: css_framework
category: assets
tags: [css]

config:
  - compass_960:
      type: boolean
      prompt: Would you like to add Compass 960 plugin for Compass?

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
rails_apps_composer-1.5.5 recipes/compass_960.rb
rails_apps_composer-1.5.4 recipes/compass_960.rb
rails_apps_composer-1.5.3 recipes/compass_960.rb
rails_apps_composer-1.5.2 recipes/compass_960.rb
rails_apps_composer-1.5.1 recipes/compass_960.rb
thyone_creator-0.0.5 recipes/compass_960.rb
thyone_creator-0.0.4 recipes/compass_960.rb
thyone_creator-0.0.3 recipes/compass_960.rb
thyone_creator-0.0.2 recipes/compass_960.rb
rails_apps_composer-1.5.0 recipes/compass_960.rb
rails_apps_composer-1.4.15 recipes/compass_960.rb
rails_apps_composer-1.4.14 recipes/compass_960.rb
rails_apps_composer-1.4.13 recipes/compass_960.rb
rails_apps_composer-1.4.12 recipes/compass_960.rb
rails_apps_composer-1.4.11 recipes/compass_960.rb
rails_apps_composer-1.4.10 recipes/compass_960.rb
rails_apps_composer-1.4.9 recipes/compass_960.rb
rails_apps_composer-1.4.8 recipes/compass_960.rb
rails_apps_composer-1.4.7 recipes/compass_960.rb
rails_apps_composer-1.4.6 recipes/compass_960.rb