flipper-moneta 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flipper/adapters/moneta.rb +8 -4
- 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: 33f6452d0604d6816a3be23bd3d3db8c4b4895b5ec47160c80377b84b9b602b3
|
4
|
+
data.tar.gz: 1a22b822524567d347f4dc9ecc48a5472e25334043a1247c9e82f9efc2bfbeb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54cdb823aeeda7f1a9abf7d9870d117362486c444fe756dd8ec2cca3631aff677cd1572f48273cac7f79f7242cd53c7403b3433a393553578dcde8d15729a32d
|
7
|
+
data.tar.gz: 1d03fabbee4858cc4d5ce6a213abe14920274d251318611d63fa928a6350a9ae47609eae0267e529a4c29b23765e82f3e1d8f0daa8cf205a171a82337477aa29
|
@@ -7,13 +7,9 @@ module Flipper
|
|
7
7
|
|
8
8
|
FEATURES_KEY = :flipper_features
|
9
9
|
|
10
|
-
# Public: The name of the adapter.
|
11
|
-
attr_reader :name
|
12
|
-
|
13
10
|
# Public
|
14
11
|
def initialize(moneta)
|
15
12
|
@moneta = moneta
|
16
|
-
@name = :moneta
|
17
13
|
end
|
18
14
|
|
19
15
|
# Public: The set of known features
|
@@ -70,6 +66,10 @@ module Flipper
|
|
70
66
|
result = get(feature)
|
71
67
|
result[gate.key] << thing.value.to_s
|
72
68
|
moneta[key(feature.key)] = result
|
69
|
+
when :json
|
70
|
+
result = get(feature)
|
71
|
+
result[gate.key] = thing.value
|
72
|
+
moneta[key(feature.key)] = result
|
73
73
|
end
|
74
74
|
true
|
75
75
|
end
|
@@ -93,6 +93,10 @@ module Flipper
|
|
93
93
|
result = get(feature)
|
94
94
|
result[gate.key] = result[gate.key].delete(thing.value.to_s)
|
95
95
|
moneta[key(feature.key)] = result
|
96
|
+
when :json
|
97
|
+
result = get(feature)
|
98
|
+
result[gate.key] = nil
|
99
|
+
moneta[key(feature.key)] = result
|
96
100
|
end
|
97
101
|
true
|
98
102
|
end
|
data/lib/flipper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipper-moneta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.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-08
|
11
|
+
date: 2023-12-08 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: 1.
|
19
|
+
version: 1.1.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: 1.
|
26
|
+
version: 1.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: moneta
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|