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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f83e98a191472cc426f34d07d8b59ae4b4fdef15
4
- data.tar.gz: f12e0319489e85cdf5d31f016a0391e93542573f
3
+ metadata.gz: 3a6541e10499fa3304684fa590e9ea8e492719e8
4
+ data.tar.gz: 2487b08863af4418ab811b6f739184381eb743d8
5
5
  SHA512:
6
- metadata.gz: 728cb1d4d1ab32becd4ca78ec5578b923e6261f682ca3a486f17b74189910b72f7d80f593d0e4d0149dceec8dd89b15780293cc36845b32920896eabea8de0e7
7
- data.tar.gz: 6ae1cf2d515699ecdf464fc86593ee7683340e229ec6540a7dbaa7a7a5cb6684fe64d92bba044157f36c5941262f02fa1e386184868e8405bdecb76e7c3a03fb
6
+ metadata.gz: 9750602436c073d121a79605e7fb21bb494a37b5c221c32c05d81a2d6cbea02d60d7bdc2fc7326f0efb6697e620120d41a2922a2c51c989f39c15af416fe28d0
7
+ data.tar.gz: b3f848fd18bb1eabd5ac35c89d292b27d7ddf03f16dd784fe410285b52fa026976fb9366cfaec240be7302b2beddf5feb99c1d47f70bf1e3ce6ce25e2988f858
@@ -5,7 +5,7 @@ require 'mongo'
5
5
  module Flipper
6
6
  module Adapters
7
7
  class Mongo
8
- include Flipper::Adapter
8
+ include ::Flipper::Adapter
9
9
 
10
10
  # Private: The key that stores the set of known features.
11
11
  FeaturesKey = :flipper_features
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = "0.7.5"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -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.7.5
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-02-25 00:00:00.000000000 Z
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.7.5
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.7.5
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