Call port.to_i in Mongo ctor. Bumped version patch number.
This commit is contained in:
parent
5a471900a3
commit
8a6d0cebda
|
@ -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])
|
||||
|
|
|
@ -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.'
|
||||
|
|
Loading…
Reference in New Issue