simredis 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/simredis.rb +2 -2
- data/simredis.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/lib/simredis.rb
CHANGED
@@ -399,7 +399,7 @@ class Redis
|
|
399
399
|
end
|
400
400
|
|
401
401
|
def write(data)
|
402
|
-
puts "SEND: #{data.inspect}" if TESTING
|
402
|
+
puts "SEND: #{data.inspect}" if defined?(TESTING)
|
403
403
|
cmd, *data = data.split("\r\n")
|
404
404
|
if cmd =~ /^\*/
|
405
405
|
data.delete_if { |d| d =~ /^\$/ }
|
@@ -411,7 +411,7 @@ class Redis
|
|
411
411
|
cmd, *args = cmd.split(' ')
|
412
412
|
end
|
413
413
|
@output_queue += @emulator.send(cmd.downcase.to_sym, args)
|
414
|
-
puts "RECV: #{@output_queue.inspect}" if TESTING
|
414
|
+
puts "RECV: #{@output_queue.inspect}" if defined?(TESTING)
|
415
415
|
end
|
416
416
|
|
417
417
|
def read(b); @output_queue.shift; end
|
data/simredis.gemspec
CHANGED