redis_test 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/redis_test.rb +1 -2
- data/lib/redis_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86491435908a76458ad312207fe78ddb7be54155
|
4
|
+
data.tar.gz: 412265e1b235aa4f06645adc31bb53905061f214
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962abdca861751e329a63dcd40f2c235c319f50f581f51b3ebcae15d15977edb35ab06e473a13f90856919990422f43b64a01454e08170edcbff4bd8eab06bfe
|
7
|
+
data.tar.gz: dc783babf4af0a3a15b18f794a899fdd391b369b1c0ef9fd06e6de5538d349bc913e8bd834e952e84afb10516aeb95edc3e8130521faf63cfb9d16012f6feb7a
|
data/README.md
CHANGED
@@ -41,7 +41,7 @@ RSpec.configure do |config|
|
|
41
41
|
# if log_to_stdout ommited it will logs to file
|
42
42
|
RedisTest.configure(:default, :sidekiq)
|
43
43
|
# RedisTest provide common configuration for :default (set
|
44
|
-
# Redis.current), :sidekiq, :ohm (set Ohm.redis) and :resque.
|
44
|
+
# Redis.current + ENV['REDIS_URL']), :sidekiq, :ohm (set Ohm.redis) and :resque.
|
45
45
|
end
|
46
46
|
|
47
47
|
config.after(:each) do
|
data/lib/redis_test.rb
CHANGED
@@ -79,8 +79,6 @@ module RedisTest
|
|
79
79
|
raise "Cannot start redis server in 5 seconds. Pinging server yield\n#{e.inspect}"
|
80
80
|
end
|
81
81
|
end while(!@started)
|
82
|
-
|
83
|
-
ENV['REDIS_URL'] = server_url
|
84
82
|
end
|
85
83
|
|
86
84
|
def started?
|
@@ -109,6 +107,7 @@ module RedisTest
|
|
109
107
|
options.flatten.each do |option|
|
110
108
|
case option
|
111
109
|
when :default
|
110
|
+
ENV['REDIS_URL'] = server_url
|
112
111
|
Redis.current = Redis.new
|
113
112
|
RedisClassy.redis = Redis.current if defined? RedisClassy
|
114
113
|
when :sidekiq
|
data/lib/redis_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phuong Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|