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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 711765e112d0c732fb310cffb2bdd9817b5acfaf
4
- data.tar.gz: 07d6290a4d67e31e8073f5d24ae6bd41d062bf18
3
+ metadata.gz: 6233c2752b3e9e472330959147ec42d348b93e00
4
+ data.tar.gz: 418d8e451c9bad001e0f88a7cce6820918945859
5
5
  SHA512:
6
- metadata.gz: f2af7e961f96fa974028e40c0303c4b7bb2eb58338e12865b81ab8362b3b0913045f06a265dbb9f1a95cb6339bc34c96c6628d9f1253eb481da5947bcdbb1195
7
- data.tar.gz: 8dd1c1afa37750f68c5b954f1b5c9c8d5837a6437f89d7dbb6edd1bf930753e0d95b283cafc55dc81d4afd8e729b2119f23a2e07c9e151811cf2b9a9043f0d87
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
- Rails.cache.fetch("/configurations/#{key}") do
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
 
@@ -1,3 +1,3 @@
1
1
  module CatarseSettingsDb
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.1
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: 2015-05-14 00:00:00.000000000 Z
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.4.5
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.