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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -4
  3. data/lib/rollout/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cbcf193e2048b5dfd5e694a7556844e7d7d9c4aa7426b6f0583a589f7fc8b70
4
- data.tar.gz: 62d2b603c6a59495c6eca0816cdda4a2ba8b6944544e572a80f208af3c821615
3
+ metadata.gz: '09b02bf812a6d2bf771a7d9b3d299113d6600c43d88516e40ff43d724c6681b9'
4
+ data.tar.gz: d18a8829c7ded0e56c2c9f43da26a73e2011d28a7aee15a9011d6246bcc5a166
5
5
  SHA512:
6
- metadata.gz: cae46805987da343fc78d1ec937a8a42c793eb09dce7dd98aeec2f33f0a615500324ba901e4585a34aa7f64a021766021bf8d942197443e0820005881f3151fd
7
- data.tar.gz: c679e1a883c8ec708325f3a1a628dc125b9df9d0e014c2b67b7f479b700c10264db42abbf14561052dc19ee4b49564a11e9705744db4cbc146f8f17295b45032
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(sample: 5000, min: 100, threshold: 0.1)
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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Rollout
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis