mongodb-mongo 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -129,7 +129,10 @@ If you have the source code, you can run the tests.
129
129
 
130
130
  $ rake test
131
131
 
132
- The tests assume that the Mongo database is running on the default port.
132
+ The tests assume that the Mongo database is running on the default port. You
133
+ can override the default host (localhost) and port (Mongo::DEFAULT_PORT) by
134
+ using the environment variables MONGO_RUBY_DRIVER_HOST and
135
+ MONGO_RUBY_DRIVER_PORT.
133
136
 
134
137
  The project mongo-qa (http://github.com/mongodb/mongo-qa) contains many more
135
138
  Mongo driver tests that are language independent. To run thoses tests as part
data/lib/mongo/mongo.rb CHANGED
@@ -75,7 +75,7 @@ module XGen
75
75
  def initialize(pair_or_host=nil, port=nil, options={})
76
76
  @pair = case pair_or_host
77
77
  when String
78
- [[pair_or_host, port || DEFAULT_PORT]]
78
+ [[pair_or_host, port ? port.to_i : DEFAULT_PORT]]
79
79
  when Hash
80
80
  connections = []
81
81
  connections << pair_val_to_connection(pair_or_host[:left])
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mongo'
3
- s.version = '0.3.2'
3
+ s.version = '0.3.3'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = 'Simple pure-Ruby driver for the 10gen Mongo DB'
6
6
  s.description = 'A pure-Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongodb-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Menard