flipper-moneta 1.0.0.pre → 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: f00a7175db68d732049ee45dc8e2b8d6e8301b88901ad5630f1fe5d65571f6a8
4
- data.tar.gz: c0c39d0b3447c0235c8492b4507a7434160a3268757b1281232c48cfc2a39f28
3
+ metadata.gz: 33f6452d0604d6816a3be23bd3d3db8c4b4895b5ec47160c80377b84b9b602b3
4
+ data.tar.gz: 1a22b822524567d347f4dc9ecc48a5472e25334043a1247c9e82f9efc2bfbeb8
5
5
  SHA512:
6
- metadata.gz: 04a7703a758056d88a001b3710e61c4a175bb2c9af60553b34685d2d6d008173d58bce9290c8ccc12bc84c4e9e30093c65df429351a351a4db297c9432f2bcea
7
- data.tar.gz: 2707eb4cde42b20d3b681c80ebdc7a7634a76b8d59ec9c38de1c966725e7b338bf0b1cb01b1d33a5cefb7bb9649a9f9be73b1403b34c3923da71163b413a604e
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.pre'.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.pre
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-02 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.pre
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.pre
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: moneta
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,11 +69,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">"
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 1.3.1
74
+ version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.3.7
76
+ rubygems_version: 3.4.10
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Moneta adapter for Flipper