Fix some gemspec issues.

This commit is contained in:
Chris Eppstein 2010-04-27 11:32:25 -07:00
parent 59c4049bfa
commit 80d812396a
3 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,5 @@
$: << "#{File.dirname(__FILE__)}/lib"
require 'compass'
require 'compass/version'
Gem::Specification.new do |gemspec|
gemspec.name = "compass"

View File

@ -6,13 +6,6 @@ end
end
module Compass
extend Compass::Version
def self.const_missing(const)
# This avoid reading from disk unless the VERSION is requested.
if const == :VERSION
version[:string]
end
end
def base_directory
File.expand_path(File.join(File.dirname(__FILE__), '..'))
end

View File

@ -45,4 +45,13 @@ module Compass
end
end
end
extend Compass::Version
def self.const_missing(const)
# This avoid reading from disk unless the VERSION is requested.
if const == :VERSION
version[:string]
else
super
end
end
end