flipper-mongo 0.7.5 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flipper/adapters/mongo.rb +1 -1
- data/lib/flipper/version.rb +1 -1
- data/test/adapters/mongo_test.rb +18 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a6541e10499fa3304684fa590e9ea8e492719e8
|
4
|
+
data.tar.gz: 2487b08863af4418ab811b6f739184381eb743d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9750602436c073d121a79605e7fb21bb494a37b5c221c32c05d81a2d6cbea02d60d7bdc2fc7326f0efb6697e620120d41a2922a2c51c989f39c15af416fe28d0
|
7
|
+
data.tar.gz: b3f848fd18bb1eabd5ac35c89d292b27d7ddf03f16dd784fe410285b52fa026976fb9366cfaec240be7302b2beddf5feb99c1d47f70bf1e3ce6ce25e2988f858
|
data/lib/flipper/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'flipper/adapters/mongo'
|
3
|
+
|
4
|
+
class MongoTest < MiniTest::Test
|
5
|
+
prepend SharedAdapterTests
|
6
|
+
|
7
|
+
def setup
|
8
|
+
host = '127.0.0.1'
|
9
|
+
port = '27017'
|
10
|
+
collection = Mongo::Client.new(["#{host}:#{port}"], server_selection_timeout: 1, database: 'testing')['testing']
|
11
|
+
begin
|
12
|
+
collection.drop
|
13
|
+
collection.create
|
14
|
+
rescue Mongo::Error::OperationFailure
|
15
|
+
end
|
16
|
+
@adapter = Flipper::Adapters::Mongo.new(collection)
|
17
|
+
end
|
18
|
+
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.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-21 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.
|
19
|
+
version: 0.8.0
|
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.
|
26
|
+
version: 0.8.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mongo
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- lib/flipper/adapters/mongo.rb
|
54
54
|
- lib/flipper/version.rb
|
55
55
|
- spec/flipper/adapters/mongo_spec.rb
|
56
|
+
- test/adapters/mongo_test.rb
|
56
57
|
homepage: https://github.com/jnunemaker/flipper
|
57
58
|
licenses:
|
58
59
|
- MIT
|
@@ -79,3 +80,4 @@ specification_version: 4
|
|
79
80
|
summary: Mongo adapter for Flipper
|
80
81
|
test_files:
|
81
82
|
- spec/flipper/adapters/mongo_spec.rb
|
83
|
+
- test/adapters/mongo_test.rb
|