h2ocube_rails_cache 0.1.3 → 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
- SHA1:
3
- metadata.gz: 22a34735c67c2e1690101d534e1901de67db00d6
4
- data.tar.gz: 063a33c8227d6d81c7ae490f6eccb23026c5a6f6
2
+ SHA256:
3
+ metadata.gz: 60978f917ed31612a423bb155585ea08baa3e1030e5e46ca04b4e57bfea85c87
4
+ data.tar.gz: df7578555b35f6df7fc1bc48f702691443d277cb9796eaef0957671be7ee4e84
5
5
  SHA512:
6
- metadata.gz: 725e1687aa6c22aa9a332d4f04b2d02927b32dd2c40b4cd9183163d9b376e4993912bfddeaf2818ea51ea1aab88236f7e0ccc6c9c23fcfd3de581fa754176fb3
7
- data.tar.gz: 1d98bbd324ad2e7cdb62e99a851e6be2fa0e4817fdfb3d77846e3ae72827178821f8ca7223f66e9b9e6950a299ea084459b171cdc56f5a80d8a96eb9e8fc4390
6
+ metadata.gz: e281ed0b35fd6e0e9b4c658da0b097bf1752a3e069cfce351bb1974e47c53e887f3882734b56bf607fa1f631d720f7f469532587624bf3bf561ec87d45c30706
7
+ data.tar.gz: 4bf1959286bf8fa3d983d9111f358f9c0b7087a0147e25c6d3562a09b119141e988477b387c3c5fbe2af2993689237cea1ee11504d50240fae5e609d3982ac59
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'h2ocube_rails_cache'
7
- gem.version = '0.1.3'
7
+ gem.version = '0.2.0'
8
8
  gem.authors = ['Ben']
9
9
  gem.email = ['ben@h2ocube.com']
10
10
  gem.description = 'Just an redis cache.'
@@ -18,6 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ['lib']
19
19
 
20
20
  gem.add_dependency 'redis'
21
+ gem.add_dependency 'hiredis'
21
22
 
22
23
  %w[rails minitest-rails].each { |g| gem.add_development_dependency g }
23
24
  end
@@ -3,7 +3,7 @@ require 'active_support/cache/h2ocube_rails_cache'
3
3
  module H2ocubeRailsCache
4
4
  class Railtie < Rails::Railtie
5
5
  config.after_initialize do |app|
6
- Rails.cache = ActiveSupport::Cache.lookup_store :h2ocube_rails_cache, namespace: "#{Rails.application.class.to_s.split("::").first}:#{Rails.env}#{ENV['TEST_ENV_NUMBER']}", expires_in: 60.minutes, url: ENV['REDIS_URL'] || 'redis://127.0.0.1:6379/0'
6
+ Rails.cache = ActiveSupport::Cache.lookup_store :h2ocube_rails_cache, namespace: "#{Rails.application.class.to_s.split("::").first}:#{Rails.env}#{ENV['TEST_ENV_NUMBER']}", expires_in: 60.minutes, url: ENV['REDIS_URL'] || 'redis://127.0.0.1:6379/0', driver: :hiredis
7
7
  Rails.cache.logger = Rails.logger
8
8
 
9
9
  ActiveSupport::Notifications.subscribe(/cache_[^.]+.active_support/) do |name, start, finish, id, payload|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-29 00:00:00.000000000 Z
11
+ date: 2018-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hiredis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rails
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
123
  version: '0'
110
124
  requirements: []
111
125
  rubyforge_project:
112
- rubygems_version: 2.6.13
126
+ rubygems_version: 2.7.6
113
127
  signing_key:
114
128
  specification_version: 4
115
129
  summary: Just an redis cache.