flipper-active_record 0.7.4 → 0.7.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a81520344638895f43c0e1b4993d3e5d5fae5667
|
4
|
+
data.tar.gz: 1629de83c8f79141b91978b1aaf603e37e09f85e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b02a26809928457bee641aba482c3b955827f8d6b46f338f9a5665358d7fe75c4a78f50e8b7717b072b28a1a7d0e60eccf997a6831ce9cc306d8b2b9f698667b
|
7
|
+
data.tar.gz: d09d90bacb12b8a7ec37089c3e2c357a7b40351f666ff611cef7cbf6a5f1a482ff4e45d7385fbb8a4b92b14d74837a1882c151a2a77127867517b4eb38c3d72c
|
@@ -55,7 +55,7 @@ module Flipper
|
|
55
55
|
# Public: Removes a feature from the set of known features.
|
56
56
|
def remove(feature)
|
57
57
|
@feature_class.transaction do
|
58
|
-
@feature_class.
|
58
|
+
@feature_class.where(key: feature.key).delete_all
|
59
59
|
clear(feature)
|
60
60
|
end
|
61
61
|
true
|
@@ -63,7 +63,7 @@ module Flipper
|
|
63
63
|
|
64
64
|
# Public: Clears the gate values for a feature.
|
65
65
|
def clear(feature)
|
66
|
-
@gate_class.
|
66
|
+
@gate_class.where(feature_key: feature.key).delete_all
|
67
67
|
true
|
68
68
|
end
|
69
69
|
|
@@ -141,7 +141,7 @@ module Flipper
|
|
141
141
|
value: thing.value.to_s,
|
142
142
|
})
|
143
143
|
when :set
|
144
|
-
@gate_class.
|
144
|
+
@gate_class.where(feature_key: feature.key, key: gate.key, value: thing.value).delete_all
|
145
145
|
else
|
146
146
|
unsupported_data_type gate.data_type
|
147
147
|
end
|
data/lib/flipper/version.rb
CHANGED
@@ -2,8 +2,8 @@ require "rails/generators/active_record"
|
|
2
2
|
|
3
3
|
module Flipper
|
4
4
|
module Generators
|
5
|
-
class ActiveRecordGenerator < Rails::Generators::Base
|
6
|
-
include Rails::Generators::Migration
|
5
|
+
class ActiveRecordGenerator < ::Rails::Generators::Base
|
6
|
+
include ::Rails::Generators::Migration
|
7
7
|
desc "Generates migration for flipper tables"
|
8
8
|
|
9
9
|
source_paths << File.join(File.dirname(__FILE__), "templates")
|
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.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-25 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.7.
|
19
|
+
version: 0.7.5
|
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.7.
|
26
|
+
version: 0.7.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.4.5.1
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: ActiveRecord adapter for Flipper
|