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
- SHA1:
3
- metadata.gz: 4dd7ae1353890c307f9d541449ac74a837ed18d0
4
- data.tar.gz: 1031913c095a4a36c60f17e2b0111e56b8f5e0bc
2
+ SHA256:
3
+ metadata.gz: 53ffa8db4e5e12eab93ef6a84df1d16c297459643d84139b3f34bf15eed7f88a
4
+ data.tar.gz: 9f88e1e4672bc51d4d1a739e510ffbc448448422870a2b14873318fe49710c44
5
5
  SHA512:
6
- metadata.gz: bfa04192028b2195d06bfab8830259296128a9e08b9b3aaf20a2a26a0c746c35eb60c4fd79ada8bacb5ed41303f23aa96a13b516ec2d2a271deffb4ce6c026e6
7
- data.tar.gz: d7077dcc66b4b37176b8b460fe1a39f26e4a5b1d28df2f65db01b522a74a364dcc7168670c2243c8b7cdc6c7256655223672f0ae7e5f618db73d6ed31785cb83
6
+ metadata.gz: fbe6488bc9eb17cfb6812ce5be36b7d58368436938be2e18ef5105695412a2d4786852befedec892f4b72137a227a4166957bad89a0bedc4de6d8836c3f24f4e
7
+ data.tar.gz: 2753e2457b391937abd777ff998a574cf765052d7de782e52eba986b3d5b33c9561186aaf46fc0fe5070223afc9d02684d41e5401873f16e72ecbda13f4783df
@@ -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', '~> 1.3.6'
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.update_attributes(enabled: true)
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.update_attributes(enabled: false)
95
+ record.update(enabled: false)
96
96
  end
97
97
  end
98
98
 
@@ -82,7 +82,7 @@ module FeatureSetting
82
82
  value_type = value.class.to_s
83
83
  end
84
84
 
85
- record.update_attributes(
85
+ record.update(
86
86
  value: convert_to_string(new_value, new_value.class.to_s),
87
87
  value_type: value_type
88
88
  )
@@ -1,3 +1,3 @@
1
1
  module FeatureSetting
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
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.1
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: 2019-03-20 00:00:00.000000000 Z
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: 1.3.6
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: 1.3.6
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
- rubyforge_project:
185
- rubygems_version: 2.6.11
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: []