redis_test 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_test/version.rb +1 -1
- data/lib/redis_test.rb +5 -2
- 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: 432f3706db821edbda7d1ffef12abc603364fd49
|
4
|
+
data.tar.gz: ac2c8fc26d5823d9ba6a3d33a2ab433b50eea97f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e523c490b454958366cd5ef9cb94307f814ad15f1a9f2ec9183157b9a21b8fb21f111bc1b57201b4b98be10cf17ab36ea971683e3d09eaee83f3482b2942627f
|
7
|
+
data.tar.gz: c3b66fc8f1b96b313e6582e7687892199a19ac43013c2c02dde46bca6a47d7b75fb9f745a9004983fab2d35ebf0cd4488fc9c74d76fdfa5c3ebc625274fc56f1
|
data/lib/redis_test/version.rb
CHANGED
data/lib/redis_test.rb
CHANGED
@@ -58,7 +58,7 @@ module RedisTest
|
|
58
58
|
|
59
59
|
wait_time_remaining = 5
|
60
60
|
begin
|
61
|
-
socket = TCPSocket.open("localhost", port)
|
61
|
+
self.socket = TCPSocket.open("localhost", port)
|
62
62
|
socket.puts "flushall"
|
63
63
|
success = true
|
64
64
|
rescue Exception => e
|
@@ -114,7 +114,10 @@ module RedisTest
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def clear
|
117
|
-
|
117
|
+
socket.puts("flushall")
|
118
118
|
end
|
119
|
+
|
120
|
+
private
|
121
|
+
attr_accessor :socket
|
119
122
|
end
|
120
123
|
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.0.
|
4
|
+
version: 0.0.8
|
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-
|
11
|
+
date: 2014-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|