redis-namespace 1.5.2 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +17 -16
- data/README.md +85 -20
- data/lib/redis/namespace.rb +155 -45
- data/lib/redis/namespace/version.rb +1 -1
- data/spec/deprecation_spec.rb +34 -2
- data/spec/redis_spec.rb +316 -180
- data/spec/spec_helper.rb +5 -0
- metadata +45 -46
data/spec/spec_helper.rb
CHANGED
@@ -4,6 +4,7 @@ Bundler.setup(:default, :test)
|
|
4
4
|
Bundler.require(:default, :test)
|
5
5
|
|
6
6
|
require 'rspec'
|
7
|
+
require 'rspec/its'
|
7
8
|
require 'redis'
|
8
9
|
require 'logger'
|
9
10
|
|
@@ -11,6 +12,10 @@ $TESTING=true
|
|
11
12
|
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
12
13
|
require 'redis/namespace'
|
13
14
|
|
15
|
+
if Redis.respond_to?(:exists_returns_integer=)
|
16
|
+
Redis.exists_returns_integer = true
|
17
|
+
end
|
18
|
+
|
14
19
|
module Helper
|
15
20
|
def capture_stderr(io = nil)
|
16
21
|
require 'stringio'
|
metadata
CHANGED
@@ -1,80 +1,78 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-namespace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.8.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chris Wanstrath
|
9
8
|
- Terence Lee
|
10
9
|
- Steve Klabnik
|
11
10
|
- Ryan Biesemeyer
|
12
|
-
autorequire:
|
11
|
+
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date:
|
14
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: redis
|
19
18
|
requirement: !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
19
|
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: '3.0'
|
25
|
-
- - ! '>='
|
20
|
+
- - ">="
|
26
21
|
- !ruby/object:Gem::Version
|
27
22
|
version: 3.0.4
|
28
23
|
type: :runtime
|
29
24
|
prerelease: false
|
30
25
|
version_requirements: !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
26
|
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '3.0'
|
36
|
-
- - ! '>='
|
27
|
+
- - ">="
|
37
28
|
- !ruby/object:Gem::Version
|
38
29
|
version: 3.0.4
|
39
30
|
- !ruby/object:Gem::Dependency
|
40
31
|
name: rake
|
41
32
|
requirement: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
33
|
requirements:
|
44
|
-
- -
|
34
|
+
- - ">="
|
45
35
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
36
|
+
version: '0'
|
47
37
|
type: :development
|
48
38
|
prerelease: false
|
49
39
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
40
|
requirements:
|
52
|
-
- -
|
41
|
+
- - ">="
|
53
42
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
43
|
+
version: '0'
|
55
44
|
- !ruby/object:Gem::Dependency
|
56
45
|
name: rspec
|
57
46
|
requirement: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
47
|
requirements:
|
60
|
-
- - ~>
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '3.7'
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.7'
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec-its
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
61
63
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
64
|
+
version: '0'
|
63
65
|
type: :development
|
64
66
|
prerelease: false
|
65
67
|
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
68
|
requirements:
|
68
|
-
- -
|
69
|
+
- - ">="
|
69
70
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
71
|
-
description:
|
72
|
-
|
71
|
+
version: '0'
|
72
|
+
description: |
|
73
|
+
Adds a Redis::Namespace class which can be used to namespace calls
|
73
74
|
to Redis. This is useful when using a single instance of Redis with
|
74
|
-
|
75
75
|
multiple, different applications.
|
76
|
-
|
77
|
-
'
|
78
76
|
email:
|
79
77
|
- chris@ozmm.org
|
80
78
|
- hone02@gmail.com
|
@@ -84,39 +82,40 @@ executables: []
|
|
84
82
|
extensions: []
|
85
83
|
extra_rdoc_files: []
|
86
84
|
files:
|
85
|
+
- LICENSE
|
87
86
|
- README.md
|
88
87
|
- Rakefile
|
89
|
-
- LICENSE
|
90
|
-
- lib/redis/namespace/version.rb
|
91
|
-
- lib/redis/namespace.rb
|
92
88
|
- lib/redis-namespace.rb
|
89
|
+
- lib/redis/namespace.rb
|
90
|
+
- lib/redis/namespace/version.rb
|
93
91
|
- spec/deprecation_spec.rb
|
94
92
|
- spec/redis_spec.rb
|
95
93
|
- spec/spec_helper.rb
|
96
|
-
homepage:
|
94
|
+
homepage: https://github.com/resque/redis-namespace
|
97
95
|
licenses:
|
98
96
|
- MIT
|
99
|
-
|
97
|
+
metadata:
|
98
|
+
bug_tracker_uri: https://github.com/resque/redis-namespace/issues
|
99
|
+
changelog_uri: https://github.com/resque/redis-namespace/blob/master/CHANGELOG.md
|
100
|
+
documentation_uri: https://www.rubydoc.info/gems/redis-namespace/1.8.1
|
101
|
+
source_code_uri: https://github.com/resque/redis-namespace/tree/v1.8.1
|
102
|
+
post_install_message:
|
100
103
|
rdoc_options: []
|
101
104
|
require_paths:
|
102
105
|
- lib
|
103
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
107
|
requirements:
|
106
|
-
- -
|
108
|
+
- - ">="
|
107
109
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
110
|
+
version: '2.4'
|
109
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
112
|
requirements:
|
112
|
-
- -
|
113
|
+
- - ">="
|
113
114
|
- !ruby/object:Gem::Version
|
114
115
|
version: '0'
|
115
116
|
requirements: []
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
specification_version: 3
|
117
|
+
rubygems_version: 3.1.4
|
118
|
+
signing_key:
|
119
|
+
specification_version: 4
|
120
120
|
summary: Namespaces Redis commands.
|
121
121
|
test_files: []
|
122
|
-
has_rdoc: false
|