database_cleaner 1.5.2 → 1.5.3

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: 2205055282f9fccb03b24e5d41985778c6f257a2
4
- data.tar.gz: 28d503c34fd8f35f9f9f46526e145dad8dc29534
3
+ metadata.gz: 64740b1d65d20ee023833ff94e6181ff12ea639d
4
+ data.tar.gz: 0537efb1973f10ea1f6e33c96724529767424c61
5
5
  SHA512:
6
- metadata.gz: cd0ce19c0e1cfb249aa59c816b2f482c6fd279c1f404043b1f1354488edd8e757650778241c3c5c0b81c92957fe10dd0e17a498323a5a0d2849508cebd846e2f
7
- data.tar.gz: eec65c6f11a279fe2f1bdf1a94c00f5dd245b5cfadb13c299487e2efe8494b62be1a47134677f3ccea3f02f355bf87e81a6fd8a846ada085191c86b281836efa
6
+ metadata.gz: d4b44fb28aed2b40a5ca92c6f04bfa0a0800a39aac0daa92d9e784112545ce904a49f2b3eeb6424ee1eae3c28f93966ba8fb5f6fa12aacfe710295072bc5ad70
7
+ data.tar.gz: 10a2624dab7c161dffae633b867890c7842d81dedcad3c87d2f67034b347c978679e95afbb506e9a4e6d38339df82e558892e0d27c4506d37711986efde708b6
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 5
4
- :patch: 2
4
+ :patch: 3
@@ -28,7 +28,7 @@ module DatabaseCleaner
28
28
  private
29
29
 
30
30
  def session
31
- ::Mongoid.default_client
31
+ ::Mongoid::VERSION > "5.0.0" ? ::Mongoid.default_client : ::Mongoid.default_session
32
32
  end
33
33
 
34
34
  def database
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mabey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake