catarse_settings_db 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/catarse_settings_db/setting.rb +1 -4
- data/lib/catarse_settings_db/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6233c2752b3e9e472330959147ec42d348b93e00
|
4
|
+
data.tar.gz: 418d8e451c9bad001e0f88a7cce6820918945859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b86efa30b52d958630ee3d29ba8192912cef5f6474e9684570807524dedddacf437922c5e1ea6940f070a6468b0814aabd3c36baf0511991db459513d9c1df36
|
7
|
+
data.tar.gz: 7903e2dd6f85b4dc7bc02f38f02855502ab116fa9f07646fbde5b84a64e055a44dea88a8e916ff9dcab76a6eac658d0735f4ef99dc82710779670d83f2f5402d
|
@@ -27,14 +27,11 @@ module CatarseSettingsDb
|
|
27
27
|
|
28
28
|
private
|
29
29
|
def get key
|
30
|
-
|
31
|
-
get_without_cache(key)
|
32
|
-
end
|
30
|
+
get_without_cache(key)
|
33
31
|
end
|
34
32
|
|
35
33
|
def set key, value
|
36
34
|
find_or_create_by!(name: key).update(value: value)
|
37
|
-
Rails.cache.write("/configurations/#{key}", value)
|
38
35
|
value
|
39
36
|
end
|
40
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: catarse_settings_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antônio Roberto Silva
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.5.1
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Engine to store catarse settings in the database.
|