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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8368903fa52ac4f275e7c86e6924b3a952d4a63
4
- data.tar.gz: 6a190474427b22f830ac8cac194d8ff2649b7c94
3
+ metadata.gz: 432f3706db821edbda7d1ffef12abc603364fd49
4
+ data.tar.gz: ac2c8fc26d5823d9ba6a3d33a2ab433b50eea97f
5
5
  SHA512:
6
- metadata.gz: 70fd6880d2beee167d05f663de97b3e8d4ea47158d8d3628c91c2a31e7107473cfea789925a647abea6a57810c13fb34c789dd8e5e505a46cbbd255baef6062f
7
- data.tar.gz: cc2733d098ef59abf05d3aafe0a98a7609b61cdd46f292f6a661df5e9916163fe2fc52a9cb2550389b2bcf172f93f4c72ec27cef4786b11d399c44bb192651cf
6
+ metadata.gz: e523c490b454958366cd5ef9cb94307f814ad15f1a9f2ec9183157b9a21b8fb21f111bc1b57201b4b98be10cf17ab36ea971683e3d09eaee83f3482b2942627f
7
+ data.tar.gz: c3b66fc8f1b96b313e6582e7687892199a19ac43013c2c02dde46bca6a47d7b75fb9f745a9004983fab2d35ebf0cd4488fc9c74d76fdfa5c3ebc625274fc56f1
@@ -1,3 +1,3 @@
1
1
  module RedisTest
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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
- Redis.current.flushdb
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.7
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-29 00:00:00.000000000 Z
11
+ date: 2014-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler