redis-namespace 1.6.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +17 -16
- data/README.md +22 -18
- data/lib/redis/namespace/version.rb +1 -1
- data/lib/redis/namespace.rb +144 -35
- data/spec/deprecation_spec.rb +5 -5
- data/spec/redis_spec.rb +466 -186
- data/spec/spec_helper.rb +5 -0
- metadata +51 -18
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,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-namespace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
8
8
|
- Terence Lee
|
9
9
|
- Steve Klabnik
|
10
10
|
- Ryan Biesemeyer
|
11
|
-
|
11
|
+
- Mike Bianco
|
12
|
+
autorequire:
|
12
13
|
bindir: bin
|
13
14
|
cert_chain: []
|
14
|
-
date:
|
15
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
17
18
|
name: redis
|
@@ -19,42 +20,70 @@ dependencies:
|
|
19
20
|
requirements:
|
20
21
|
- - ">="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
23
|
+
version: '4'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
26
|
version_requirements: !ruby/object:Gem::Requirement
|
26
27
|
requirements:
|
27
28
|
- - ">="
|
28
29
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
+
version: '4'
|
30
31
|
- !ruby/object:Gem::Dependency
|
31
32
|
name: rake
|
32
33
|
requirement: !ruby/object:Gem::Requirement
|
33
34
|
requirements:
|
34
|
-
- - "
|
35
|
+
- - ">="
|
35
36
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
37
|
+
version: '0'
|
37
38
|
type: :development
|
38
39
|
prerelease: false
|
39
40
|
version_requirements: !ruby/object:Gem::Requirement
|
40
41
|
requirements:
|
41
|
-
- - "
|
42
|
+
- - ">="
|
42
43
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
44
|
+
version: '0'
|
44
45
|
- !ruby/object:Gem::Dependency
|
45
46
|
name: rspec
|
46
47
|
requirement: !ruby/object:Gem::Requirement
|
47
48
|
requirements:
|
48
49
|
- - "~>"
|
49
50
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
51
|
+
version: '3.7'
|
51
52
|
type: :development
|
52
53
|
prerelease: false
|
53
54
|
version_requirements: !ruby/object:Gem::Requirement
|
54
55
|
requirements:
|
55
56
|
- - "~>"
|
56
57
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
58
|
+
version: '3.7'
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rspec-its
|
61
|
+
requirement: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: connection_pool
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
58
87
|
description: |
|
59
88
|
Adds a Redis::Namespace class which can be used to namespace calls
|
60
89
|
to Redis. This is useful when using a single instance of Redis with
|
@@ -64,6 +93,7 @@ email:
|
|
64
93
|
- hone02@gmail.com
|
65
94
|
- steve@steveklabnik.com
|
66
95
|
- me@yaauie.com
|
96
|
+
- mike@mikebian.co
|
67
97
|
executables: []
|
68
98
|
extensions: []
|
69
99
|
extra_rdoc_files: []
|
@@ -77,11 +107,15 @@ files:
|
|
77
107
|
- spec/deprecation_spec.rb
|
78
108
|
- spec/redis_spec.rb
|
79
109
|
- spec/spec_helper.rb
|
80
|
-
homepage:
|
110
|
+
homepage: https://github.com/resque/redis-namespace
|
81
111
|
licenses:
|
82
112
|
- MIT
|
83
|
-
metadata:
|
84
|
-
|
113
|
+
metadata:
|
114
|
+
bug_tracker_uri: https://github.com/resque/redis-namespace/issues
|
115
|
+
changelog_uri: https://github.com/resque/redis-namespace/blob/master/CHANGELOG.md
|
116
|
+
documentation_uri: https://www.rubydoc.info/gems/redis-namespace/1.11.0
|
117
|
+
rubygems_mfa_required: 'true'
|
118
|
+
post_install_message:
|
85
119
|
rdoc_options: []
|
86
120
|
require_paths:
|
87
121
|
- lib
|
@@ -89,16 +123,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
123
|
requirements:
|
90
124
|
- - ">="
|
91
125
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
126
|
+
version: '2.4'
|
93
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
128
|
requirements:
|
95
129
|
- - ">="
|
96
130
|
- !ruby/object:Gem::Version
|
97
131
|
version: '0'
|
98
132
|
requirements: []
|
99
|
-
|
100
|
-
|
101
|
-
signing_key:
|
133
|
+
rubygems_version: 3.4.1
|
134
|
+
signing_key:
|
102
135
|
specification_version: 4
|
103
136
|
summary: Namespaces Redis commands.
|
104
137
|
test_files: []
|