flipper-active_record 0.16.0 → 0.16.1
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/active_record.rb +5 -5
- data/lib/flipper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86a54bba2bb609883f0ae382e62e46876631e361
|
4
|
+
data.tar.gz: 644c7b85fd679bd09d163e032c5f1f11cf25076f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74606b6a848d34174111b5c7fddc7a9d0f523f86c2442feac9098330817e1362bf7b7a09f2cc0292f601c39d3345da7a616fba5274a3ac316e2336ed879b53f2
|
7
|
+
data.tar.gz: 640be793b7b616762cd70b1cc7e69b2ef71a87338a02fff97e3596e4c97cb28cff9d6c547c8f728f64e1f8be937c62741494ef099eddf6ec575c2bbd6b415a76
|
@@ -66,7 +66,7 @@ module Flipper
|
|
66
66
|
# Public: Removes a feature from the set of known features.
|
67
67
|
def remove(feature)
|
68
68
|
@feature_class.transaction do
|
69
|
-
@feature_class.where(key: feature.key).
|
69
|
+
@feature_class.where(key: feature.key).destroy_all
|
70
70
|
clear(feature)
|
71
71
|
end
|
72
72
|
true
|
@@ -74,7 +74,7 @@ module Flipper
|
|
74
74
|
|
75
75
|
# Public: Clears the gate values for a feature.
|
76
76
|
def clear(feature)
|
77
|
-
@gate_class.where(feature_key: feature.key).
|
77
|
+
@gate_class.where(feature_key: feature.key).destroy_all
|
78
78
|
true
|
79
79
|
end
|
80
80
|
|
@@ -148,7 +148,7 @@ module Flipper
|
|
148
148
|
@gate_class.where(
|
149
149
|
feature_key: feature.key,
|
150
150
|
key: gate.key
|
151
|
-
).
|
151
|
+
).destroy_all
|
152
152
|
|
153
153
|
@gate_class.create! do |g|
|
154
154
|
g.feature_key = feature.key
|
@@ -157,7 +157,7 @@ module Flipper
|
|
157
157
|
end
|
158
158
|
end
|
159
159
|
when :set
|
160
|
-
@gate_class.where(feature_key: feature.key, key: gate.key, value: thing.value).
|
160
|
+
@gate_class.where(feature_key: feature.key, key: gate.key, value: thing.value).destroy_all
|
161
161
|
else
|
162
162
|
unsupported_data_type gate.data_type
|
163
163
|
end
|
@@ -174,7 +174,7 @@ module Flipper
|
|
174
174
|
|
175
175
|
def enable_single(feature, gate, thing)
|
176
176
|
@gate_class.transaction do
|
177
|
-
@gate_class.where(feature_key: feature.key, key: gate.key).
|
177
|
+
@gate_class.where(feature_key: feature.key, key: gate.key).destroy_all
|
178
178
|
@gate_class.create! do |g|
|
179
179
|
g.feature_key = feature.key
|
180
180
|
g.key = gate.key
|
data/lib/flipper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipper-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.1
|
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: 2019-02-05 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.16.
|
19
|
+
version: 0.16.1
|
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.16.
|
26
|
+
version: 0.16.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|