redis-namespace 1.5.3 → 1.8.1
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 +14 -17
- data/lib/redis/namespace/version.rb +1 -1
- data/lib/redis/namespace.rb +71 -19
- data/spec/deprecation_spec.rb +4 -4
- data/spec/redis_spec.rb +303 -183
- data/spec/spec_helper.rb +5 -0
- metadata +33 -22
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,25 +1,22 @@
|
|
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.1
|
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: 2021-02-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: redis
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- - "~>"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3.0'
|
23
20
|
- - ">="
|
24
21
|
- !ruby/object:Gem::Version
|
25
22
|
version: 3.0.4
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
prerelease: false
|
28
25
|
version_requirements: !ruby/object:Gem::Requirement
|
29
26
|
requirements:
|
30
|
-
- - "~>"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '3.0'
|
33
27
|
- - ">="
|
34
28
|
- !ruby/object:Gem::Version
|
35
29
|
version: 3.0.4
|
@@ -37,30 +31,44 @@ dependencies:
|
|
37
31
|
name: rake
|
38
32
|
requirement: !ruby/object:Gem::Requirement
|
39
33
|
requirements:
|
40
|
-
- - "
|
34
|
+
- - ">="
|
41
35
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
36
|
+
version: '0'
|
43
37
|
type: :development
|
44
38
|
prerelease: false
|
45
39
|
version_requirements: !ruby/object:Gem::Requirement
|
46
40
|
requirements:
|
47
|
-
- - "
|
41
|
+
- - ">="
|
48
42
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
43
|
+
version: '0'
|
50
44
|
- !ruby/object:Gem::Dependency
|
51
45
|
name: rspec
|
52
46
|
requirement: !ruby/object:Gem::Requirement
|
53
47
|
requirements:
|
54
48
|
- - "~>"
|
55
49
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
50
|
+
version: '3.7'
|
57
51
|
type: :development
|
58
52
|
prerelease: false
|
59
53
|
version_requirements: !ruby/object:Gem::Requirement
|
60
54
|
requirements:
|
61
55
|
- - "~>"
|
62
56
|
- !ruby/object:Gem::Version
|
63
|
-
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'
|
64
72
|
description: |
|
65
73
|
Adds a Redis::Namespace class which can be used to namespace calls
|
66
74
|
to Redis. This is useful when using a single instance of Redis with
|
@@ -83,11 +91,15 @@ files:
|
|
83
91
|
- spec/deprecation_spec.rb
|
84
92
|
- spec/redis_spec.rb
|
85
93
|
- spec/spec_helper.rb
|
86
|
-
homepage:
|
94
|
+
homepage: https://github.com/resque/redis-namespace
|
87
95
|
licenses:
|
88
96
|
- MIT
|
89
|
-
metadata:
|
90
|
-
|
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:
|
91
103
|
rdoc_options: []
|
92
104
|
require_paths:
|
93
105
|
- lib
|
@@ -95,16 +107,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
107
|
requirements:
|
96
108
|
- - ">="
|
97
109
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
110
|
+
version: '2.4'
|
99
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
112
|
requirements:
|
101
113
|
- - ">="
|
102
114
|
- !ruby/object:Gem::Version
|
103
115
|
version: '0'
|
104
116
|
requirements: []
|
105
|
-
|
106
|
-
|
107
|
-
signing_key:
|
117
|
+
rubygems_version: 3.1.4
|
118
|
+
signing_key:
|
108
119
|
specification_version: 4
|
109
120
|
summary: Namespaces Redis commands.
|
110
121
|
test_files: []
|