Fix some gemspec issues.
This commit is contained in:
parent
59c4049bfa
commit
80d812396a
@ -1,5 +1,5 @@
|
||||
$: << "#{File.dirname(__FILE__)}/lib"
|
||||
require 'compass'
|
||||
require 'compass/version'
|
||||
|
||||
Gem::Specification.new do |gemspec|
|
||||
gemspec.name = "compass"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user