redis_support 0.0.11 → 0.0.12
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/README.md +4 -0
- data/lib/redis_support/class_extensions.rb +5 -1
- data/test/test_redis_support.rb +14 -0
- metadata +10 -10
data/README.md
CHANGED
data/test/test_redis_support.rb
CHANGED
@@ -19,6 +19,20 @@ context "Redis Support Setup" do
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
context "Redis Support No Setup" do
|
23
|
+
setup do
|
24
|
+
RedisSupport.redis=nil
|
25
|
+
end
|
26
|
+
|
27
|
+
test "redis returns nil when nil" do
|
28
|
+
assert_equal RedisSupport.redis, nil
|
29
|
+
assert_equal TestClass.redis, nil
|
30
|
+
assert_equal SecondTest.redis, nil
|
31
|
+
|
32
|
+
assert_equal TestClass.new.redis, nil
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
22
36
|
context "Redis Support" do
|
23
37
|
setup do
|
24
38
|
RedisSupport.redis = "localhost:9736"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brian P O'Rourke
|
@@ -16,11 +16,13 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-07-
|
19
|
+
date: 2010-07-14 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
|
23
|
+
prerelease: false
|
24
|
+
name: redis
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
26
|
none: false
|
25
27
|
requirements:
|
26
28
|
- - ">="
|
@@ -31,10 +33,8 @@ dependencies:
|
|
31
33
|
- 0
|
32
34
|
- 4
|
33
35
|
version: 1.0.4
|
36
|
+
requirement: *id001
|
34
37
|
type: :runtime
|
35
|
-
name: redis
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: *id001
|
38
38
|
description: "Module for adding redis functionality to classes: simple key namespacing and locking and connections"
|
39
39
|
email: dolores@doloreslabs.com
|
40
40
|
executables: []
|
@@ -48,8 +48,8 @@ files:
|
|
48
48
|
- lib/redis_support/class_extensions.rb
|
49
49
|
- lib/redis_support/locks.rb
|
50
50
|
- README.md
|
51
|
-
- test/helper.rb
|
52
51
|
- test/test_redis_support.rb
|
52
|
+
- test/helper.rb
|
53
53
|
has_rdoc: true
|
54
54
|
homepage: http://github.com/dolores/redis_support
|
55
55
|
licenses: []
|
@@ -85,5 +85,5 @@ signing_key:
|
|
85
85
|
specification_version: 3
|
86
86
|
summary: A Redis Support module
|
87
87
|
test_files:
|
88
|
-
- test/helper.rb
|
89
88
|
- test/test_redis_support.rb
|
89
|
+
- test/helper.rb
|