redis_test 0.0.8 → 0.0.9

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: 432f3706db821edbda7d1ffef12abc603364fd49
4
- data.tar.gz: ac2c8fc26d5823d9ba6a3d33a2ab433b50eea97f
3
+ metadata.gz: 8d91cfaae2860c04da57ecbd687616e739b187e3
4
+ data.tar.gz: 42fd0bee49b23b9cb688a85b6d8ca77d41c79c46
5
5
  SHA512:
6
- metadata.gz: e523c490b454958366cd5ef9cb94307f814ad15f1a9f2ec9183157b9a21b8fb21f111bc1b57201b4b98be10cf17ab36ea971683e3d09eaee83f3482b2942627f
7
- data.tar.gz: c3b66fc8f1b96b313e6582e7687892199a19ac43013c2c02dde46bca6a47d7b75fb9f745a9004983fab2d35ebf0cd4488fc9c74d76fdfa5c3ebc625274fc56f1
6
+ metadata.gz: 7cf0acb5937d0b1069b6173557d3761147662e518ae570fa79cb06f12af837bc0cc13f97b90968b47d1d907064fe04f129e8962318d2dc006caf0d47f0deb829
7
+ data.tar.gz: 0568b292dbf289edfd765a4c0e01d568a020096f50c590f42d88c55dc8e8f0f66865afa0655938903f9bd8b86d4abf239d24c28bde4448d50ddd8168db932751
@@ -1,3 +1,3 @@
1
1
  module RedisTest
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/redis_test.rb CHANGED
@@ -59,7 +59,7 @@ module RedisTest
59
59
  wait_time_remaining = 5
60
60
  begin
61
61
  self.socket = TCPSocket.open("localhost", port)
62
- socket.puts "flushall"
62
+ clear
63
63
  success = true
64
64
  rescue Exception => e
65
65
  if wait_time_remaining > 0
@@ -115,6 +115,7 @@ module RedisTest
115
115
 
116
116
  def clear
117
117
  socket.puts("flushall")
118
+ socket.gets # wait for redis server to reply with "OK"
118
119
  end
119
120
 
120
121
  private
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.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phuong Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-31 00:00:00.000000000 Z
11
+ date: 2015-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler