flipper-redis 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flipper-redis.gemspec +2 -2
- data/lib/flipper/adapters/redis.rb +6 -5
- data/lib/flipper/adapters/redis_cache.rb +2 -0
- data/lib/flipper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b37ca565968b7a1767313bf56d0afc09030445af77a89d6cd807e2734101d05
|
4
|
+
data.tar.gz: 3336d3ab8c98d5fd109ff3622c181b803057614015ebc58583579a6b870ec51e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77dcce339f37e489cc079084158cb1ecc06640e706509f7a14fab0ba869dd51c733e4ee148f2f4cdc93b647cc2400078f9f63428575fa5a1be6b15d8e26b156d
|
7
|
+
data.tar.gz: b008f1bfdde9ca0ef9429eed64b16f729e920702428043efed2a7d04a95cbb4f95cc453b5c882795d85e2866daf6296bc6120a4b3e70c62f15aaf336bc0c161f
|
data/flipper-redis.gemspec
CHANGED
@@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.license = 'MIT'
|
15
15
|
gem.homepage = 'https://github.com/jnunemaker/flipper'
|
16
16
|
|
17
|
-
gem.files = `git ls-files`.split("\n").select(&flipper_redis_files) + ['lib/flipper/version.rb'] # rubocop:disable
|
18
|
-
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_redis_files) # rubocop:disable
|
17
|
+
gem.files = `git ls-files`.split("\n").select(&flipper_redis_files) + ['lib/flipper/version.rb'] # rubocop:disable Layout/LineLength
|
18
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_redis_files) # rubocop:disable Layout/LineLength
|
19
19
|
gem.name = 'flipper-redis'
|
20
20
|
gem.require_paths = ['lib']
|
21
21
|
gem.version = Flipper::VERSION
|
@@ -34,10 +34,8 @@ module Flipper
|
|
34
34
|
|
35
35
|
# Public: Removes a feature from the set of known features.
|
36
36
|
def remove(feature)
|
37
|
-
@client.
|
38
|
-
|
39
|
-
@client.del feature.key
|
40
|
-
end
|
37
|
+
@client.srem FeaturesKey, feature.key
|
38
|
+
@client.del feature.key
|
41
39
|
true
|
42
40
|
end
|
43
41
|
|
@@ -73,7 +71,10 @@ module Flipper
|
|
73
71
|
# Returns true.
|
74
72
|
def enable(feature, gate, thing)
|
75
73
|
case gate.data_type
|
76
|
-
when :boolean
|
74
|
+
when :boolean
|
75
|
+
clear(feature)
|
76
|
+
@client.hset feature.key, gate.key, thing.value.to_s
|
77
|
+
when :integer
|
77
78
|
@client.hset feature.key, gate.key, thing.value.to_s
|
78
79
|
when :set
|
79
80
|
@client.hset feature.key, to_field(gate, thing), 1
|
data/lib/flipper/version.rb
CHANGED
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.17.
|
4
|
+
version: 0.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-04 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.17.
|
19
|
+
version: 0.17.2
|
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.17.
|
26
|
+
version: 0.17.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|