rails-settings-cached 2.3.2 → 2.3.3

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
  SHA256:
3
- metadata.gz: be7b05e634deda4d1a7b720528431277c7dcd57cace57181a84a5b02115ed412
4
- data.tar.gz: b7dd8a8e4aec0dc80240bbcc4ecbb747896c7fd0495c0c7fc9820dd92191ec5c
3
+ metadata.gz: d9fb44e09bad24a4d3c6cf36fda107fe18ce214964b713de318e5f3efc083851
4
+ data.tar.gz: 75ee5df473cff1fc07b963b6441152f559de8d0a5652267530c5c0f62cac93f9
5
5
  SHA512:
6
- metadata.gz: 70b0c0010ee5839c6bc85e7376649bbdbdec38e492af0d57559a32df4ae658125a180f021802f0b14cee43dffa8e6daba71df4f262b06ae6f4e705dc0474d46c
7
- data.tar.gz: 277ba14e3774bd321dd038e315496294269d008d9e07e57e42dd9f8d398e185775754ef65e4ebe257178b9f74c826f660c017ced91936da7f25153d0c59790ad
6
+ metadata.gz: 6bf0b841b4b2ee46b7da5f51a54d2e3f17f984f2fe1f72841bc056966efc29fd5ad70ea54b0b5559f4ea493927ef796cbc956302b404e18ec61059c40d620904
7
+ data.tar.gz: 76a594a2df28a1490c6d67b1fff1a4d776572cc1240c9c07549d6d0349c048a017ee10f828d7c38e41bdf4c7158af9108f9c9181af3ee015af72654cd23831ff
@@ -142,7 +142,11 @@ module RailsSettings
142
142
  end
143
143
 
144
144
  def _value_of(var_name)
145
- raise "#{table_name} does not exist." unless table_exists?
145
+ unless table_exists?
146
+ # Fallback to default value if table was not ready (before migrate)
147
+ puts "WARNING: table: \"#{table_name}\" does not exist, `#{name}.#{var_name}` fallback to returns the default value."
148
+ return nil
149
+ end
146
150
 
147
151
  _all_settings[var_name.to_s]
148
152
  end
@@ -3,7 +3,7 @@
3
3
  module RailsSettings
4
4
  class << self
5
5
  def version
6
- "2.3.2"
6
+ "2.3.3"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-settings-cached
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-15 00:00:00.000000000 Z
11
+ date: 2020-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails