Moved Mongo::VERSION to its own file

You shouldn't need to require mongo.rb just to generate the gemspec.
This commit is contained in:
Michael Jackson 2011-05-17 11:22:08 -07:00
parent 98abe355fa
commit ad6edb0a9e
3 changed files with 5 additions and 4 deletions

View File

@ -18,9 +18,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
module Mongo
VERSION = "1.3.1"
end
require 'mongo/version'
module Mongo
ASCENDING = 1

3
lib/mongo/version.rb Normal file
View File

@ -0,0 +1,3 @@
module Mongo
VERSION = "1.3.1"
end

View File

@ -1,4 +1,4 @@
require "./lib/mongo"
require File.expand_path('../lib/mongo/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'mongo'