mock_redis 0.1.1 → 0.1.2

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.
@@ -1,3 +1,6 @@
1
+ ### 0.1.2
2
+ * Fixes for 1.9.2; no functionality changes.
3
+
1
4
  ### 0.1.1
2
5
  * Fix handling of -inf, +inf, and exclusive endpoints (e.g. "(3") in
3
6
  zrangebyscore, zrevrangebyscore, and zremrangebyscore. ("Fix" here
data/README.md CHANGED
@@ -65,7 +65,7 @@ Ruby process.
65
65
  * `#monitor` isn't available; there's no place for requests to come
66
66
  from, so there's nothing to receive.
67
67
 
68
- * Pubsub commands (`#psubscribe`, `#publish`, `punsubscribe`) aren't
68
+ * Pubsub commands (`#psubscribe`, `#publish`, `#punsubscribe`) aren't
69
69
  available.
70
70
 
71
71
  * `#slowlog` isn't available.
@@ -1,3 +1,3 @@
1
1
  class MockRedis
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -42,11 +42,11 @@ class MockRedis
42
42
 
43
43
  def in_range(min, max)
44
44
  in_from_the_left = case min
45
- when "-inf":
46
- lambda { true }
47
- when "+inf":
48
- lambda { false }
49
- when /\((.*)$/:
45
+ when "-inf"
46
+ lambda {|_| true }
47
+ when "+inf"
48
+ lambda {|_| false }
49
+ when /\((.*)$/
50
50
  val = $1.to_f
51
51
  lambda {|x| x.to_f > val }
52
52
  else
@@ -54,11 +54,11 @@ class MockRedis
54
54
  end
55
55
 
56
56
  in_from_the_right = case max
57
- when "-inf":
58
- lambda { false }
59
- when "+inf":
60
- lambda { true }
61
- when /\((.*)$/:
57
+ when "-inf"
58
+ lambda {|_| false }
59
+ when "+inf"
60
+ lambda {|_| true }
61
+ when /\((.*)$/
62
62
  val = $1.to_f
63
63
  lambda {|x| x.to_f < val }
64
64
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_redis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Samuel Merritt