pupa 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pupa/processor/connection_adapters/mongodb_adapter.rb +1 -1
- data/lib/pupa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4353e8efbfcc1d35395992a2005bd9bb1c253899
|
4
|
+
data.tar.gz: af747ed629cb093d03977844f676b2f868a03ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d4ae25dfcaab964e1e013ac3b15f8c91c7b33a25f4404d24c076923cf73bd9c32006d2b1fa4828941675a148d461ff75cebd3d644f7b63ee5e8ff1aed4d0ea
|
7
|
+
data.tar.gz: 1e4c5a7134b49757a4fa1083241783723cfec3c7638909284c76ec566f3ec7949556931590d0727806b4feb4f2a5cbe7dda2d5320f62d9f54ed0478eee53e55c
|
@@ -11,7 +11,7 @@ module Pupa
|
|
11
11
|
def initialize(database_url)
|
12
12
|
uri = URI.parse(database_url)
|
13
13
|
@raw_connection = Mongo::Client.new(["#{uri.host}:#{uri.port}"], database: uri.path[1..-1])
|
14
|
-
@raw_connection.
|
14
|
+
@raw_connection = @raw_connection.with(user: uri.user, password: uri.password) if uri.user && uri.password
|
15
15
|
end
|
16
16
|
|
17
17
|
# Finds a document matching the selection criteria.
|
data/lib/pupa/version.rb
CHANGED