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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1750968266f49fb955fd5c401c18a4ab3e4fd9bd
4
- data.tar.gz: ff5096ac3c8c62d0a92ca12c3a8ba286c32bfe1a
3
+ metadata.gz: 4353e8efbfcc1d35395992a2005bd9bb1c253899
4
+ data.tar.gz: af747ed629cb093d03977844f676b2f868a03ef2
5
5
  SHA512:
6
- metadata.gz: 7cbeb3d2d9a67f0b546b5b4b849b421678c1a15a798df06d032e2049119570f99f26c25fc8656c1587dbe63efaa3e4810817e2e994ad94c16c24ab87cd44dc7d
7
- data.tar.gz: e13a1d281738f5f96460a08380fa2f420a7e93a6705d537be156a0abba2404d9e2fac9c5c2b5b61512428e27749ff652443f7adfdd75caa0d8c4f75d9c0f5fa8
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.login(uri.user, uri.password) if uri.user && uri.password
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.
@@ -1,3 +1,3 @@
1
1
  module Pupa
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pupa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James McKinney