simredis 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/simredis.rb +2 -2
  3. data/simredis.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{simredis}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Cooper"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simredis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Cooper