From 80d812396acf233d4aa082d2b4d8c103e1b8ac63 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Tue, 27 Apr 2010 11:32:25 -0700 Subject: [PATCH] Fix some gemspec issues. --- compass.gemspec | 2 +- lib/compass.rb | 7 ------- lib/compass/version.rb | 9 +++++++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/compass.gemspec b/compass.gemspec index e3f60990..8c445653 100644 --- a/compass.gemspec +++ b/compass.gemspec @@ -1,5 +1,5 @@ $: << "#{File.dirname(__FILE__)}/lib" -require 'compass' +require 'compass/version' Gem::Specification.new do |gemspec| gemspec.name = "compass" diff --git a/lib/compass.rb b/lib/compass.rb index 3179e8e1..91d1af94 100644 --- a/lib/compass.rb +++ b/lib/compass.rb @@ -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 diff --git a/lib/compass/version.rb b/lib/compass/version.rb index 41040057..1edc400c 100644 --- a/lib/compass/version.rb +++ b/lib/compass/version.rb @@ -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