map_reduced 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/map_reduced.rb +1 -1
- data/lib/map_reduced/config.rb +4 -2
- metadata +3 -3
data/lib/map_reduced.rb
CHANGED
data/lib/map_reduced/config.rb
CHANGED
@@ -10,8 +10,10 @@ module MapReduced
|
|
10
10
|
uri = URI.parse(string)
|
11
11
|
connection = Mongo::Connection.new(uri.host, uri.port)
|
12
12
|
database = uri.path.gsub(/^\//, "")
|
13
|
-
|
14
|
-
|
13
|
+
if uri.user && uri.password
|
14
|
+
connection.add_auth(database, uri.user, uri.password)
|
15
|
+
connection.apply_saved_authentication
|
16
|
+
end
|
15
17
|
@db = connection.db(database)
|
16
18
|
else
|
17
19
|
@db = Mongo::Connection.new.db(string)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: map_reduced
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Burton
|