cache_service 1.0.0 → 1.0.1

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: 9cf278122641042d003cd6d13271027b6f8337ef
4
- data.tar.gz: 4069a723bfc62032f76028b9283252b48ef6882c
3
+ metadata.gz: 2ab4bab409cfebd5f3396706003f8278fe347de6
4
+ data.tar.gz: 636144bf42285de2b2bd4955d8d96a7044e806ce
5
5
  SHA512:
6
- metadata.gz: f9c141021dfb8f81fb666c3b9590265c1bfb7485dcad8ffc59312133a4c715af11b7e369e979b25e5c5c71297bf9d0b3e5c8bbb74dcbef9adac356bb8789452f
7
- data.tar.gz: 536c71f8c41e7f98769afe0355e1a66cf530f1ac11a011d4d915050eeca40d0f262c16a0c4db82bc550460eb30f6d2d7052a3ccc64862df7dc3256bdc0ee09af
6
+ metadata.gz: 4f6837148179316f2f2899cad51066aa1acb400811738facf59833ac535b1838d2b6a4ea0c1fbd4ce114ebe7c8aa97c4b1473bcd2edfb7ad6269fb96f91abe3b
7
+ data.tar.gz: 33704ee78e2ae7459f03ac9ebdd484fa16457bcb75e9d0fbb2ee137dc608680fe23b2736b6c4dc8076be3f9f5f948455aa4797ca18afb3364c3070ab3fc2c8ff
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cache_service'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.summary = "A gem for cache facility"
5
5
  s.description = "A gem for cache facility"
6
6
  s.authors = ['Linh Chau']
@@ -14,8 +14,8 @@ class CacheService
14
14
  config = ConfigService.load_config('cache_config.yml')[ConfigService.environment]
15
15
  # Load all the existing caches in the system, outside of the gem
16
16
  Dir.glob("#{File.expand_path('.')}/caches/*.rb").each { |rb_file| require rb_file }
17
- @@cache ||= Object.const_get(config['cache'])
18
- SdkLogger.logger = Object.const_get(config['logger']) if config['logger'].present?
17
+ @@cache ||= eval(config['cache'])
18
+ SdkLogger.logger = eval(config['logger']) if config['logger'].present?
19
19
  rescue => error
20
20
  @@cache ||= McCache
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linh Chau