flipper-redis 0.27.0 → 0.28.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
  SHA256:
3
- metadata.gz: 14aaa85565a4a6fc04ee3e49ffcbc6920bea306008af8aba0ef7215bc150f697
4
- data.tar.gz: ae3fa3b6c13955a8d5fd5a6fcb61a367d7597fad650dcdad7da58ea77a1b0879
3
+ metadata.gz: 0fde720fc29090ac49eaaf60631378eae9e000a7f3bcf8c3645c30eff0ccc527
4
+ data.tar.gz: c4256eeece41abb26f4c57f057ffcb05bd139bb488b1323601fd94b876f415db
5
5
  SHA512:
6
- metadata.gz: c6fda280d16e65e0bf4f47f81a3bf133ff1a122ac2a0d7dfbb6ebdb349fb0c4189db1c66cf2e67ab0ecb290e90f0e90f9869ceb198fdc70d37a3b7b2b1c56bea
7
- data.tar.gz: 17c7de925f4874413f6856a94c55696c8bca5cd85daafdc173a97cb3ad2fd6e9bf5864a0941ae63e42b68eca3fa26c4845609fdeb387d9f99fea7e0f0e262857
6
+ metadata.gz: 558fb3ce2ecebd37567bb7ae0f2e2fcfc8811cc63bf8bfd7e41ec5c3941b0648935aa16bb672bcc882de2cc84e62ded9c054d44a2d563d873de3929efdf2c0c3
7
+ data.tar.gz: dfd52f6ea9539c620f517373be2fe39a73189942d38bf8c56ac3d86da15fb3a870a1754090374d75b376b114d215a217cfa77196780804749ade607cf60a734d
@@ -6,8 +6,8 @@ require 'flipper/adapters/redis'
6
6
  client = Redis.new
7
7
 
8
8
  # Register a few groups.
9
- Flipper.register(:admins) { |thing| thing.admin? }
10
- Flipper.register(:early_access) { |thing| thing.early_access? }
9
+ Flipper.register(:admins) { |actor| actor.admin? }
10
+ Flipper.register(:early_access) { |actor| actor.early_access? }
11
11
 
12
12
  # Create a user class that has flipper_id instance method.
13
13
  User = Struct.new(:flipper_id)
@@ -12,8 +12,8 @@ adapter = Flipper::Adapters::Redis.new(namespaced_client)
12
12
  flipper = Flipper.new(adapter)
13
13
 
14
14
  # Register a few groups.
15
- Flipper.register(:admins) { |thing| thing.admin? }
16
- Flipper.register(:early_access) { |thing| thing.early_access? }
15
+ Flipper.register(:admins) { |actor| actor.admin? }
16
+ Flipper.register(:early_access) { |actor| actor.early_access? }
17
17
 
18
18
  # Create a user class that has flipper_id instance method.
19
19
  User = Struct.new(:flipper_id)
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.27.0'.freeze
2
+ VERSION = '0.28.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.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: 2023-03-18 00:00:00.000000000 Z
11
+ date: 2023-03-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.27.0
19
+ version: 0.28.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.27.0
26
+ version: 0.28.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement