flipper-active_record 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ee1ea1e930baa8bb351d4ac270b3a356fb01e17
4
- data.tar.gz: 7446eb0f9705b4633f40394657548cd5f9adce6e
3
+ metadata.gz: 86a54bba2bb609883f0ae382e62e46876631e361
4
+ data.tar.gz: 644c7b85fd679bd09d163e032c5f1f11cf25076f
5
5
  SHA512:
6
- metadata.gz: 064be4212916b8b8638249b58c3b4c16ab4bb1c7fa38f771440caea5351c175023f037c8a5180ac3855cc03bf51145cbbdd6fa23078e7b40c91e84ec3feb2d44
7
- data.tar.gz: 3d9802fe0f315883e05aeffcfd76d56e7404a985e940af61e4b69a4d0d57e13276f0f65be5be9411916429aa730d044f660b05c5d319cde1afaf249e7ca98890
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).delete_all
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).delete_all
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
- ).delete_all
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).delete_all
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).delete_all
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
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.16.0'.freeze
2
+ VERSION = '0.16.1'.freeze
3
3
  end
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.0
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: 2018-08-01 00:00:00.000000000 Z
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.0
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.0
26
+ version: 0.16.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement