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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25607cfbd958a0445b9c13e85b6e3ddda654e5dc
4
- data.tar.gz: cd5fdb1b52a69190d5580ce801877d523c48625d
3
+ metadata.gz: 86491435908a76458ad312207fe78ddb7be54155
4
+ data.tar.gz: 412265e1b235aa4f06645adc31bb53905061f214
5
5
  SHA512:
6
- metadata.gz: a52375381f2ba1bbcdfa2518b99d5d836281cec86a0ae499a05f81d2bc6a9afab36279b69ee30066ea94533b6e3214244996b7b3109f9472dfec9851893c480d
7
- data.tar.gz: bf697589bca8c361103d7418912206adfc2cefe15ce45bc0f1280c72e216145a3f3447b4cbe3d275ff1546ab7f8ac11578677120c7ea10ef8968199f411ff928
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RedisTest
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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-07 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler