flipper 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Changelog.md +9 -2
- data/examples/memoizing.rb +39 -0
- data/lib/flipper/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77bf46fd4c4a3bc04f7cfd38cbd48083dbd72855a809df63ab33a429bf8dc902
|
4
|
+
data.tar.gz: 43bbedd3cb73e09b6323c9841dd4cec1ac5298a7c42ff68affab032dd7f63fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f7becbf89ad1fe63f7c6425b4600e80b27d1af7136fe61c1e3ce0a449dfce01e1720a00d3eee1e3cc08e4fedee055f9b9991c49d6c025e601337fc7ac1c10f
|
7
|
+
data.tar.gz: f219af56cf0c3ae7ec6b43cf1a774b4e62c9e4b73ad8b5a8b88ae1c8556ee49c2051191e332c456d448fbca810f623f2add81f9d6040ec30fced90cdb48ab651
|
data/Changelog.md
CHANGED
@@ -1,13 +1,20 @@
|
|
1
|
+
## 0.19.1
|
2
|
+
|
3
|
+
### Additions/Changes
|
4
|
+
|
5
|
+
* Bump rack-protection version to < 2.2 (https://github.com/jnunemaker/flipper/pull/487)
|
6
|
+
* Add memoizer_options to Flipper::Api.app (https://github.com/jnunemaker/flipper/commit/174ad4bb94046a25c432d3c53fe1ff9f5a76d838)
|
7
|
+
|
1
8
|
## 0.19.0
|
2
9
|
|
3
|
-
|
10
|
+
### Additions/Changes
|
4
11
|
|
5
12
|
* 100% of actors is now considered conditional. Feature#on?, Feature#conditional?, Feature#state would all be affected. See https://github.com/jnunemaker/flipper/issues/463 for more.
|
6
13
|
* Several doc updates.
|
7
14
|
|
8
15
|
## 0.18.0
|
9
16
|
|
10
|
-
|
17
|
+
### Additions/Changes
|
11
18
|
|
12
19
|
* Add support for feature descriptions to flipper-ui (https://github.com/jnunemaker/flipper/pull/461).
|
13
20
|
* Remove rubocop (https://github.com/jnunemaker/flipper/pull/469).
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require File.expand_path('../example_setup', __FILE__)
|
2
|
+
|
3
|
+
require 'flipper'
|
4
|
+
require 'flipper/adapters/operation_logger'
|
5
|
+
require 'flipper/instrumentation/log_subscriber'
|
6
|
+
|
7
|
+
Flipper.configure do |config|
|
8
|
+
config.default do
|
9
|
+
# pick an adapter, this uses memory, any will do
|
10
|
+
adapter = Flipper::Adapters::OperationLogger.new(Flipper::Adapters::Memory.new)
|
11
|
+
|
12
|
+
# pass adapter to handy DSL instance
|
13
|
+
Flipper.new(adapter)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
Flipper.enable(:foo)
|
18
|
+
Flipper.enable(:bar)
|
19
|
+
Flipper.disable(:baz)
|
20
|
+
Flipper.disable(:wick)
|
21
|
+
# reset the operation logging adapter to empty for clarity
|
22
|
+
Flipper.adapter.reset
|
23
|
+
|
24
|
+
# Turn on memoization (the memoizing middleware does this per request).
|
25
|
+
Flipper.memoize = true
|
26
|
+
|
27
|
+
# Preload all the features.
|
28
|
+
Flipper.preload_all
|
29
|
+
|
30
|
+
# Do as many feature checks as your heart desires.
|
31
|
+
%w[foo bar baz wick].each do |name|
|
32
|
+
Flipper.enabled?(name)
|
33
|
+
end
|
34
|
+
|
35
|
+
# See that only one operation exists, a get_all (which is the preload_all).
|
36
|
+
pp Flipper.adapter.operations
|
37
|
+
# [#<Flipper::Adapters::OperationLogger::Operation:0x00007fdcfe1100e8
|
38
|
+
# @args=[],
|
39
|
+
# @type=:get_all>]
|
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.19.
|
4
|
+
version: 0.19.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: 2020-
|
11
|
+
date: 2020-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- examples/importing.rb
|
47
47
|
- examples/individual_actor.rb
|
48
48
|
- examples/instrumentation.rb
|
49
|
+
- examples/memoizing.rb
|
49
50
|
- examples/percentage_of_actors.rb
|
50
51
|
- examples/percentage_of_actors_enabled_check.rb
|
51
52
|
- examples/percentage_of_actors_group.rb
|