rails-settings-cached 2.3.1 → 2.3.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
2
  SHA256:
3
- metadata.gz: 4a7bc508cf14fd62288de455806b11c39f5894fc0830ea89523e9a4f9ca3d09b
4
- data.tar.gz: 9d4affefb02823cf0a73344c7356f2e416d6cb6fb78dc0e25ad94a21cb4b1646
3
+ metadata.gz: be7b05e634deda4d1a7b720528431277c7dcd57cace57181a84a5b02115ed412
4
+ data.tar.gz: b7dd8a8e4aec0dc80240bbcc4ecbb747896c7fd0495c0c7fc9820dd92191ec5c
5
5
  SHA512:
6
- metadata.gz: c023a86676cd5f41c5479e8c671df1946076de4167f8fe40c437e69d69e27d1d46a5d5e5a97ad35f950f6b477a0c14ab6de0c4e4fbd3210df46d0c091ac6c312
7
- data.tar.gz: 16ed2df3231c5379847c25c97f3950a8692ce51a36d5b1ffc7e1973a11786de820f8264e628f3f7df5e6689018a91e3849a4749c5757eb7f1b076a5b041f538b
6
+ metadata.gz: 70b0c0010ee5839c6bc85e7376649bbdbdec38e492af0d57559a32df4ae658125a180f021802f0b14cee43dffa8e6daba71df4f262b06ae6f4e705dc0474d46c
7
+ data.tar.gz: 277ba14e3774bd321dd038e315496294269d008d9e07e57e42dd9f8d398e185775754ef65e4ebe257178b9f74c826f660c017ced91936da7f25153d0c59790ad
@@ -121,15 +121,15 @@ module RailsSettings
121
121
  when :hash
122
122
  value = begin
123
123
  begin
124
- YAML.load(value).to_h
124
+ YAML.load(value).to_h
125
125
  rescue StandardError
126
126
  eval(value).to_h
127
- end
127
+ end
128
128
  rescue StandardError
129
129
  {}
130
130
  end
131
131
  value.deep_stringify_keys!
132
- value
132
+ ActiveSupport::HashWithIndifferentAccess.new(value)
133
133
  when :integer
134
134
  value.to_i
135
135
  when :float
@@ -3,7 +3,7 @@
3
3
  module RailsSettings
4
4
  class << self
5
5
  def version
6
- "2.3.1"
6
+ "2.3.2"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-settings-cached
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee