We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e989d4 commit bda5b47Copy full SHA for bda5b47
Gemfile
@@ -8,4 +8,5 @@ group :test do
8
gem 'rspec'
9
gem 'ZenTest'
10
gem 'autotest'
11
-end
+ gem 'redis'
12
+end
Gemfile.lock
@@ -30,6 +30,7 @@ GEM
30
rack-test (0.6.1)
31
rack (>= 1.0)
32
rake (0.9.2.2)
33
+ redis (3.0.1)
34
rspec (2.10.0)
35
rspec-core (~> 2.10.0)
36
rspec-expectations (~> 2.10.0)
@@ -51,4 +52,5 @@ DEPENDENCIES
51
52
rack-mini-profiler!
53
rack-test
54
rake
55
+ redis
56
rspec
lib/mini_profiler/storage/redis_store.rb
@@ -5,6 +5,7 @@ class RedisStore < AbstractStore
5
EXPIRE_SECONDS = 60 * 60 * 24
6
7
def initialize(args = {})
+ require 'redis'
@prefix = args[:prefix] || 'MPRedisStore'
end
0 commit comments