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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da89e852752c28edae6e11698db1a956073cb8c49b7c43d8e14ed7662f98a7ad
4
- data.tar.gz: c4f2bd61d349bd179f7faa595973d69fa57793e436c0848d58229086a576a5ae
3
+ metadata.gz: 33f6452d0604d6816a3be23bd3d3db8c4b4895b5ec47160c80377b84b9b602b3
4
+ data.tar.gz: 1a22b822524567d347f4dc9ecc48a5472e25334043a1247c9e82f9efc2bfbeb8
5
5
  SHA512:
6
- metadata.gz: ce684baaf3f3e0db2869a97d22c3a1a614abc4326d9b683e6bb8d642dad2af13e4c5b556b7e546ebb1b9157bc1cb0629d6ecea34617b5fcb41e681fdc0185835
7
- data.tar.gz: 1c41afc4dac2c3c39652ecb3cad6522802341c5e55f968f14071cfc14fe6c2ed344abb744d5544d7965118f3385d4cfd5dbb90d645e3f2c42d1bdb7951548d1c
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
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
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.0.0
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-23 00:00:00.000000000 Z
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.0.0
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.0.0
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: moneta
29
29
  requirement: !ruby/object:Gem::Requirement