rollout-redis 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/lib/rollout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09b02bf812a6d2bf771a7d9b3d299113d6600c43d88516e40ff43d724c6681b9'
|
4
|
+
data.tar.gz: d18a8829c7ded0e56c2c9f43da26a73e2011d28a7aee15a9011d6246bcc5a166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da06a204a6133487f43c52c013485476391b1ff8d2d5680eda8ef9f419aa6b516a63a27fbae3627f0b747b7515fff2347b0594802252ab8b05f78a8b9988154
|
7
|
+
data.tar.gz: 2850a4238642e603504ea4034bd036d09649d319127d99eae4afbe2903f099c7af6d6cc49e50248bfff4b01354982ce93b4b8e58468fdbf7c37dae6801bd0f10
|
data/README.md
CHANGED
@@ -9,13 +9,13 @@ Based on the discontinued [rollout](https://github.com/fetlife/rollout) project,
|
|
9
9
|
Topics covered in this README:
|
10
10
|
|
11
11
|
- [Install it](#install-it)
|
12
|
-
- [Quick Start](#quick-start
|
13
|
-
- [Advanced features](#advanced-features
|
12
|
+
- [Quick Start](#quick-start-)
|
13
|
+
- [Advanced features](#advanced-features-)
|
14
14
|
- [Gradual activation based on percentages](#gradual-activation-based-on-percentages)
|
15
15
|
- [Caching Feature Flags](#caching-feature-flags)
|
16
16
|
- [Auto-deactivating flags](#auto-deactivating-flags)
|
17
17
|
- [Rake tasks](#rake-tasks)
|
18
|
-
- [Migrating from rollout gem](#migrating-from-rollout-gem
|
18
|
+
- [Migrating from rollout gem](#migrating-from-rollout-gem-)
|
19
19
|
- [Changelog](#changelog)
|
20
20
|
- [Contributing](#contributing)
|
21
21
|
|
@@ -147,7 +147,7 @@ If you want to allow the gem to deactivate your feature flag automatically when
|
|
147
147
|
```ruby
|
148
148
|
@rollout ||= Rollout.new(redis)
|
149
149
|
.with_cache
|
150
|
-
.with_degrade(
|
150
|
+
.with_degrade(min: 100, threshold: 0.1)
|
151
151
|
```
|
152
152
|
|
153
153
|
So now, instead of using the `active?` method, you need to wrap your new code under the `with_feature` method.
|
@@ -170,6 +170,13 @@ require 'rollout'
|
|
170
170
|
load 'rollout/tasks/rollout.rake'
|
171
171
|
```
|
172
172
|
|
173
|
+
Also, for using the rake tasks, you must set the following env variables
|
174
|
+
|
175
|
+
```shell
|
176
|
+
ROLLOUT_REDIS_HOST=localhost
|
177
|
+
ROLLOUT_REDIS_PORT=6379
|
178
|
+
```
|
179
|
+
|
173
180
|
### Usage
|
174
181
|
|
175
182
|
To activate/deactivate features, execute the following rake tasks:
|
data/lib/rollout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollout-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Carlos García
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|