flipper-mongo 0.22.1 → 0.22.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
  SHA256:
3
- metadata.gz: 472f2506e5298edc2bb29378d54a7abd80e507dd2712450953812f4440cdca5f
4
- data.tar.gz: 29f985975df09a5587783063fe733aebc22332ea290552aa48e2a862ddb1f765
3
+ metadata.gz: 54281ecfd2133869dc9e3101dace69dba44414a076c89cef28f9deb42d6b716e
4
+ data.tar.gz: c7f688c3fbd650129ee2bcae0cc73e7f48b5d2fe12d23aca50cce0f01af05452
5
5
  SHA512:
6
- metadata.gz: 90d965f4da52028744085412ce27f13a0fba811b4a0eb39234646bc57259e320b4c426d9da742ff09076c094bec2e19349bbddf9eb62017876d6b1aa860b08cf
7
- data.tar.gz: 77a9c590a09c679cd43312f580a6716ea189903515399e3e046d6a8578689764907b37548b83a19bff3c71aa18a142140a317102a09eff8a64583d7b79e2b651
6
+ metadata.gz: 71a103069685afc72c684433d09430fee52c2ea0a21726a06e4c0615c6071ecfb53483831588a10653898d4f33d9584f58d89a77484a328682c0779234477f3f
7
+ data.tar.gz: 47883b86b7b38f92deb4986b8006e726203427b94371761f3ef2541067895ae30a33fd6ceec9d212c4b0d072217fcaa1382c2951142e504187c09422b897804a
data/docs/mongo/README.md CHANGED
@@ -24,7 +24,17 @@ In most cases, all you need to do is require the adapter. You must set the `MONG
24
24
  require 'flipper-mongo`
25
25
  ```
26
26
 
27
- **If you need to customize the adapter**, you can add this to an initializer:
27
+ **If you're using Mongoid**, you can add this to an initializer:
28
+
29
+ ```ruby
30
+ Flipper.configure do |config|
31
+ config.adapter do
32
+ Flipper::Adapters::Mongo.new(Mongoid.default_client['flipper'])
33
+ end
34
+ end
35
+ ```
36
+
37
+ Or **if you need to customize the adapter** in any other way, you can add this to an initializer:
28
38
 
29
39
  ```ruby
30
40
  Flipper.configure do |config|
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.22.1'.freeze
2
+ VERSION = '0.22.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-23 00:00:00.000000000 Z
11
+ date: 2021-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flipper
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.22.1
19
+ version: 0.22.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.22.1
26
+ version: 0.22.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mongo
29
29
  requirement: !ruby/object:Gem::Requirement