mongodb-mongo 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +4 -1
- data/lib/mongo/mongo.rb +1 -1
- data/mongo-ruby-driver.gemspec +1 -1
- metadata +1 -1
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
|
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])
|
data/mongo-ruby-driver.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'mongo'
|
3
|
-
s.version = '0.3.
|
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.'
|