feature_setting 1.3.3 → 1.4.0

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: 4569619999399fd92cb877b3a7ce50e57577e658
4
- data.tar.gz: 5b9a330d076941d0bd7e04ab19e9797fe72db1fe
3
+ metadata.gz: 6687c023f1275645ce2b345fadfde38336bb20e8
4
+ data.tar.gz: f4cdd18d578ac303cac874fa09faeb0db41033bf
5
5
  SHA512:
6
- metadata.gz: cb6440f4203ed357381783cc7762f9d8caf6679e7b886c4bdd78c423f8cd6b491a96b3dfc89c91b56c7ff0be080a929e15f39a7d5ce3e69e24244e8057d0ab6f
7
- data.tar.gz: a7e9cec6681cfe303c699fb7c3ae938b2326656b84ecd8d0e93c5e3874095e4759268f8165987a5d6aa9cff092058ebcfadd72bd0b29d045467ce68f97d942f3
6
+ metadata.gz: 53e55b5bf5d1586ec556b0be1f73492038aadb62cc970d1353f7feaf545747c388cb8990c70e60e25faae3c8871c3686fdae9dc316af46bf0bdecbae4074b5f1
7
+ data.tar.gz: 3b3819bb3c31274a749b30fd5c9caa3476e19767a7b269ca1813706a4da16b55b447a4e3630c851db7c539d9fda3275dd91a16e183d283ad3deccbad48133b63
@@ -86,7 +86,6 @@ module FeatureSetting
86
86
  end
87
87
 
88
88
  def convert_to_type(value, type)
89
- p type
90
89
  case type
91
90
  when 'String'
92
91
  value.to_s
@@ -105,7 +104,7 @@ module FeatureSetting
105
104
  when 'Array'
106
105
  value.split('|||')
107
106
  when 'Hash'
108
- JSON.parse(value).try(:symbolize_keys)
107
+ JSON.parse(value).try(:with_indifferent_access)
109
108
  end
110
109
  end
111
110
 
@@ -1,3 +1,3 @@
1
1
  module FeatureSetting
2
- VERSION = "1.3.3"
2
+ VERSION = "1.4.0"
3
3
  end
@@ -9,7 +9,7 @@ class CreateFsTables < ActiveRecord::Migration
9
9
 
10
10
  create_table :fs_settings do |t|
11
11
  t.string :key
12
- t.string :value
12
+ t.text :value
13
13
  t.string :value_type
14
14
  t.string :klass
15
15
  t.timestamps null: false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_setting
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indro De