recipes/compass.rb in rails_apps_composer-1.4.1 vs recipes/compass.rb in rails_apps_composer-1.4.2

- old
+ new

@@ -1,17 +1,29 @@ if config['compass'] gem 'compass', :version => '~> 0.12.1', :group => [:assets] gem 'compass-rails', :version => '~> 1.0.0', :group => [:assets] after_bundler do remove_file 'app/assets/stylesheets/application.css' - create_file 'app/assets/stylesheets/application.css.sass' do <<-SASS + + if File.exist?("config/initializers/sass.rb") + create_file "app/assets/stylesheets/application.css.sass" do <<-SASS //= require_self //= require_tree . @import compass @import _blueprint -SASS + SASS + end + else + create_file "app/assets/stylesheets/application.css.scss" do <<-SCSS +//= require_self +//= require_tree . + +@import "compass"; +@import "_blueprint"; + SCSS + end end end else recipes.delete('compass') end @@ -29,6 +41,6 @@ tags: [css] config: - compass: type: boolean - prompt: Would you like to use Compass for stylesheets? + prompt: Would you like to use Compass for stylesheets? \ No newline at end of file