feature_setting 1.6.1 → 1.6.2
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 53ffa8db4e5e12eab93ef6a84df1d16c297459643d84139b3f34bf15eed7f88a
|
4
|
+
data.tar.gz: 9f88e1e4672bc51d4d1a739e510ffbc448448422870a2b14873318fe49710c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbe6488bc9eb17cfb6812ce5be36b7d58368436938be2e18ef5105695412a2d4786852befedec892f4b72137a227a4166957bad89a0bedc4de6d8836c3f24f4e
|
7
|
+
data.tar.gz: 2753e2457b391937abd777ff998a574cf765052d7de782e52eba986b3d5b33c9561186aaf46fc0fe5070223afc9d02684d41e5401873f16e72ecbda13f4783df
|
data/feature_setting.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'bundler', '>= 1.9'
|
24
24
|
spec.add_development_dependency 'rake', '>= 10.0'
|
25
25
|
spec.add_development_dependency 'rspec', '>= 3.0'
|
26
|
-
spec.add_development_dependency 'sqlite3'
|
26
|
+
spec.add_development_dependency 'sqlite3'
|
27
27
|
spec.add_development_dependency 'byebug'
|
28
28
|
spec.add_development_dependency 'simplecov'
|
29
29
|
end
|
@@ -85,14 +85,14 @@ module FeatureSetting
|
|
85
85
|
def enable!(key)
|
86
86
|
if features.key?(key.to_sym)
|
87
87
|
record = self.where(key: key, klass: klass).first
|
88
|
-
record.
|
88
|
+
record.update(enabled: true)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
92
|
def disable!(key)
|
93
93
|
if features.key?(key.to_sym)
|
94
94
|
record = self.where(key: key, klass: klass).first
|
95
|
-
record.
|
95
|
+
record.update(enabled: false)
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feature_setting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Indro De
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: sqlite3
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: byebug
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,7 +166,7 @@ homepage: https://github.com/indrode/feature_setting
|
|
166
166
|
licenses:
|
167
167
|
- MIT
|
168
168
|
metadata: {}
|
169
|
-
post_install_message:
|
169
|
+
post_install_message:
|
170
170
|
rdoc_options: []
|
171
171
|
require_paths:
|
172
172
|
- lib
|
@@ -181,9 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
|
185
|
-
|
186
|
-
signing_key:
|
184
|
+
rubygems_version: 3.0.3
|
185
|
+
signing_key:
|
187
186
|
specification_version: 4
|
188
187
|
summary: A lightweight feature/setting DSL for Rails applications.
|
189
188
|
test_files: []
|