redis-namespace 1.6.0 → 1.8.2
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 +15 -18
- data/lib/redis/namespace/version.rb +1 -1
- data/lib/redis/namespace.rb +77 -25
- data/spec/deprecation_spec.rb +4 -4
- data/spec/redis_spec.rb +302 -177
- data/spec/spec_helper.rb +5 -0
- metadata +33 -16
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,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-namespace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
8
8
|
- Terence Lee
|
9
9
|
- Steve Klabnik
|
10
10
|
- Ryan Biesemeyer
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: redis
|
@@ -31,30 +31,44 @@ dependencies:
|
|
31
31
|
name: rake
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- - "
|
34
|
+
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '0'
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - "
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '0'
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: rspec
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
50
|
+
version: '3.7'
|
51
51
|
type: :development
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
57
|
+
version: '3.7'
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec-its
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
58
72
|
description: |
|
59
73
|
Adds a Redis::Namespace class which can be used to namespace calls
|
60
74
|
to Redis. This is useful when using a single instance of Redis with
|
@@ -77,11 +91,15 @@ files:
|
|
77
91
|
- spec/deprecation_spec.rb
|
78
92
|
- spec/redis_spec.rb
|
79
93
|
- spec/spec_helper.rb
|
80
|
-
homepage:
|
94
|
+
homepage: https://github.com/resque/redis-namespace
|
81
95
|
licenses:
|
82
96
|
- MIT
|
83
|
-
metadata:
|
84
|
-
|
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.2
|
101
|
+
source_code_uri: https://github.com/resque/redis-namespace/tree/v1.8.2
|
102
|
+
post_install_message:
|
85
103
|
rdoc_options: []
|
86
104
|
require_paths:
|
87
105
|
- lib
|
@@ -89,16 +107,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
107
|
requirements:
|
90
108
|
- - ">="
|
91
109
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
110
|
+
version: '2.4'
|
93
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
112
|
requirements:
|
95
113
|
- - ">="
|
96
114
|
- !ruby/object:Gem::Version
|
97
115
|
version: '0'
|
98
116
|
requirements: []
|
99
|
-
|
100
|
-
|
101
|
-
signing_key:
|
117
|
+
rubygems_version: 3.1.2
|
118
|
+
signing_key:
|
102
119
|
specification_version: 4
|
103
120
|
summary: Namespaces Redis commands.
|
104
121
|
test_files: []
|