redis_web_manager 0.3.4 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile.lock +187 -0
- data/README.md +5 -5
- data/config/routes.rb +1 -0
- data/lib/redis_web_manager.rb +3 -2
- data/lib/redis_web_manager/version.rb +1 -1
- data/redis_web_manager.gemspec +1 -1
- data/spec/controllers/redis_web_manager/keys_controller_spec.rb +1 -1
- data/spec/dummy/log/test.log +777 -0
- data/spec/redis_web_manager_action_spec.rb +1 -1
- data/spec/redis_web_manager_connection_spec.rb +0 -2
- data/spec/redis_web_manager_info_spec.rb +1 -1
- data/spec/redis_web_manager_spec.rb +14 -2
- data/spec/spec_helper.rb +1 -1
- metadata +12 -5
@@ -8,7 +8,6 @@ RSpec.describe RedisWebManager::Connection do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
describe 'connection' do
|
11
|
-
|
12
11
|
it 'returns a host' do
|
13
12
|
expect(connection.host).to eql('127.0.0.1')
|
14
13
|
end
|
@@ -28,6 +27,5 @@ RSpec.describe RedisWebManager::Connection do
|
|
28
27
|
it 'returns a location' do
|
29
28
|
expect(connection.location).to eql('127.0.0.1:6379')
|
30
29
|
end
|
31
|
-
|
32
30
|
end
|
33
31
|
end
|
@@ -40,7 +40,7 @@ RSpec.describe RedisWebManager do
|
|
40
40
|
expect do
|
41
41
|
RedisWebManager.configure do |c|
|
42
42
|
c.redises = {
|
43
|
-
default:
|
43
|
+
default: Redis.new
|
44
44
|
}
|
45
45
|
c.lifespan = 1
|
46
46
|
end
|
@@ -51,12 +51,24 @@ RSpec.describe RedisWebManager do
|
|
51
51
|
expect do
|
52
52
|
RedisWebManager.configure do |c|
|
53
53
|
c.redises = {
|
54
|
-
default:
|
54
|
+
default: Redis.new
|
55
55
|
}
|
56
56
|
c.lifespan = -1.days
|
57
57
|
end
|
58
58
|
end.to raise_error(ArgumentError, 'Invalid lifespan, value must be greater than 0')
|
59
59
|
end
|
60
60
|
|
61
|
+
it 'returns instances' do
|
62
|
+
RedisWebManager.configure do |c|
|
63
|
+
c.redises = {
|
64
|
+
foo: Redis.new,
|
65
|
+
bar: Redis.new
|
66
|
+
}
|
67
|
+
c.lifespan = 12.days
|
68
|
+
end
|
69
|
+
|
70
|
+
expect(RedisWebManager.redises.keys).to eql(%i[foo bar])
|
71
|
+
expect(RedisWebManager.redises.values.map(&:class)).to eql([Redis, Redis])
|
72
|
+
end
|
61
73
|
end
|
62
74
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -10,7 +10,7 @@ require 'simplecov'
|
|
10
10
|
require 'coveralls'
|
11
11
|
|
12
12
|
SimpleCov.start
|
13
|
-
|
13
|
+
Coveralls.wear!
|
14
14
|
|
15
15
|
# Given that it is always loaded, you are encouraged to keep this file as
|
16
16
|
# light-weight as possible. Requiring heavyweight dependencies from this file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_web_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris BRESCIANI
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-08-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coveralls
|
@@ -92,16 +92,22 @@ dependencies:
|
|
92
92
|
name: redis
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 4.1.0
|
98
|
+
- - "<"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '5'
|
98
101
|
type: :runtime
|
99
102
|
prerelease: false
|
100
103
|
version_requirements: !ruby/object:Gem::Requirement
|
101
104
|
requirements:
|
102
|
-
- - "
|
105
|
+
- - ">="
|
103
106
|
- !ruby/object:Gem::Version
|
104
107
|
version: 4.1.0
|
108
|
+
- - "<"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '5'
|
105
111
|
description: Manage your Redis instance (See keys, memory used, connected client,
|
106
112
|
configuration, information)
|
107
113
|
email:
|
@@ -118,6 +124,7 @@ files:
|
|
118
124
|
- ".rubocop.yml"
|
119
125
|
- ".travis.yml"
|
120
126
|
- Gemfile
|
127
|
+
- Gemfile.lock
|
121
128
|
- MIT-LICENSE
|
122
129
|
- README.md
|
123
130
|
- Rakefile
|
@@ -378,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
378
385
|
- !ruby/object:Gem::Version
|
379
386
|
version: '0'
|
380
387
|
requirements: []
|
381
|
-
rubygems_version: 3.1.
|
388
|
+
rubygems_version: 3.1.6
|
382
389
|
signing_key:
|
383
390
|
specification_version: 4
|
384
391
|
summary: Manage your Redis instance (See keys, memory used, connected client, etc...)
|