Call port.to_i in Mongo ctor. Bumped version patch number.

This commit is contained in:
Jim Menard 2009-01-29 10:54:24 -05:00
parent 5a471900a3
commit 8a6d0cebda
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ module XGen
def initialize(pair_or_host=nil, port=nil, options={})
@pair = case pair_or_host
when String
[[pair_or_host, port || DEFAULT_PORT]]
[[pair_or_host, port ? port.to_i : DEFAULT_PORT]]
when Hash
connections = []
connections << pair_val_to_connection(pair_or_host[:left])

View File

@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'mongo'
s.version = '0.3.2'
s.version = '0.3.3'
s.platform = Gem::Platform::RUBY
s.summary = 'Simple pure-Ruby driver for the 10gen Mongo DB'
s.description = 'A pure-Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.'