minor: gemspec fix

This commit is contained in:
Kyle Banker 2011-03-29 16:44:38 -04:00
parent c327a6036d
commit b821a3a48a

View File

@ -1,6 +1,6 @@
require './lib/bson' require './lib/bson'
VERSION_HEADER = File.open(File.join(File.dirname(__FILE__), 'ext', 'cbson', 'version.h'), "r") VERSION_HEADER = File.open(File.join(File.dirname(__FILE__), 'ext', 'cbson', 'version.h'), "r")
VERSION = VERSION_HEADER.read.scan(/VERSION\s+"(\d+\.\d+(\.[\w\d]+\w*)?)\"/)[0][0] VERSION = VERSION_HEADER.read.scan(/VERSION "(\d[^"]+)"/)[0][0]
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'bson_ext' s.name = 'bson_ext'