flipper 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +10 -0
- data/lib/flipper/spec/shared_adapter_specs.rb +9 -0
- data/lib/flipper/test/shared_adapter_test.rb +9 -0
- data/lib/flipper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a709cd3b20f82ad564e952d7276cc86b1aee3cbb
|
4
|
+
data.tar.gz: 5aceb6dcda6dc85218884bf579723c4351164f81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d903d56d5d57bdc4a5d33e438fc980d4735041460c7ad7329097d2e42e538e4ed39d0967a4a0a48f11e99b788c70da66d95d6fd37eeee789aa46b772cbd1a7ae
|
7
|
+
data.tar.gz: cf1929cd1633f94df3cbe20a709b63d1c59e9ef6cafb205e9531f9cc9f5ecf03b64f61b59504d3d0048f2c002d2b6b159d90e99a32cb5cee851fc53f0e037d4f
|
data/Changelog.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 0.12.1
|
2
|
+
|
3
|
+
### Additions/Changes
|
4
|
+
|
5
|
+
* Added rollout adapter documentation (https://github.com/jnunemaker/flipper/pull/328).
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* Fixed ActiveRecord and Sequel adapters to include disabled features for `get_all` (https://github.com/jnunemaker/flipper/pull/327).
|
10
|
+
|
1
11
|
## 0.12
|
2
12
|
|
3
13
|
### Additions/Changes
|
@@ -259,6 +259,15 @@ RSpec.shared_examples_for 'a flipper adapter' do
|
|
259
259
|
expect(search).to eq(subject.default_config)
|
260
260
|
end
|
261
261
|
|
262
|
+
it 'includes explicitly disabled features when getting all features' do
|
263
|
+
flipper.enable(:stats)
|
264
|
+
flipper.enable(:search)
|
265
|
+
flipper.disable(:search)
|
266
|
+
|
267
|
+
result = subject.get_all
|
268
|
+
expect(result.keys.sort).to eq(%w(search stats))
|
269
|
+
end
|
270
|
+
|
262
271
|
it 'can double enable an actor without error' do
|
263
272
|
actor = Flipper::Actor.new('Flipper::Actor;22')
|
264
273
|
expect(subject.enable(feature, actor_gate, flipper.actor(actor))).to eq(true)
|
@@ -254,6 +254,15 @@ module Flipper
|
|
254
254
|
assert_equal @adapter.default_config, search
|
255
255
|
end
|
256
256
|
|
257
|
+
def test_includes_explicitly_disabled_features_when_getting_all_features
|
258
|
+
@flipper.enable(:stats)
|
259
|
+
@flipper.enable(:search)
|
260
|
+
@flipper.disable(:search)
|
261
|
+
|
262
|
+
result = @adapter.get_all
|
263
|
+
assert_equal %w(search stats), result.keys.sort
|
264
|
+
end
|
265
|
+
|
257
266
|
def test_can_double_enable_an_actor_without_error
|
258
267
|
actor = Flipper::Actor.new('Flipper::Actor;22')
|
259
268
|
assert_equal true, @adapter.enable(@feature, @actor_gate, @flipper.actor(actor))
|
data/lib/flipper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Feature flipper is the act of enabling/disabling features in your application,
|
14
14
|
ideally without re-deploying or changing anything in your code base. Flipper makes
|