Use the new Sass gem now.

This commit is contained in:
Chris Eppstein 2010-09-12 10:34:00 -07:00
parent 529a31f767
commit 9f1b8f515b
3 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
source :rubygems
bf9d3d5..34bbb29source :rubygems
gem "compass", :path => "."
gem "cucumber"

View File

@ -7,7 +7,7 @@ Gem::Specification.new do |gemspec|
gemspec.date = "#{Time.now.year}-#{Time.now.month}-#{Time.now.day}" # Automatically update for each build
gemspec.description = "Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS."
gemspec.homepage = "http://compass-style.org"
gemspec.authors = ["Chris Eppstein", "Eric A. Meyer", "Brandon Mathis"]
gemspec.authors = ["Chris Eppstein", "Eric A. Meyer", "Brandon Mathis", "Nico Hagenburger"]
gemspec.email = "chris@eppsteins.net"
gemspec.default_executable = "compass"
gemspec.executables = %w(compass)
@ -15,7 +15,9 @@ Gem::Specification.new do |gemspec|
gemspec.require_paths = %w(lib)
gemspec.rubygems_version = "1.3.5"
gemspec.summary = %q{A Real Stylesheet Framework}
gemspec.add_dependency('sass', '~> 3.1')
gemspec.files = %w(README.markdown LICENSE.markdown VERSION.yml Rakefile)
gemspec.files += Dir.glob("bin/*")
gemspec.files += Dir.glob("examples/**/*.*")

View File

@ -2,5 +2,12 @@ begin
require 'sass'
rescue LoadError
require 'rubygems'
require 'sass'
begin
require 'sass'
rescue LoadError
puts "Unable to load Sass. Please install it with one of the following commands:"
puts " gem install sass --pre"
puts " gem install haml"
raise
end
end