rservicebus 0.0.27 → 0.0.28
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/lib/rservicebus/Test/Redis.rb +10 -0
- metadata +2 -2
@@ -27,6 +27,16 @@ class Test_Redis
|
|
27
27
|
return @keyHash[key]
|
28
28
|
end
|
29
29
|
|
30
|
+
def sismember( key, value )
|
31
|
+
return false if @keyHash[key].nil?
|
32
|
+
|
33
|
+
@keyHash[key].each do |v|
|
34
|
+
return true if v == value
|
35
|
+
end
|
36
|
+
|
37
|
+
return false
|
38
|
+
end
|
39
|
+
|
30
40
|
def incr( key )
|
31
41
|
if !@keyHash.has_key?( key ) then
|
32
42
|
@keyHash[key] = 0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rservicebus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby interpretation of NServiceBus
|
15
15
|
email: guy@guyirvine.com
|