redis_web_manager 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 428aa9f1970ae3e2eeab18c4387ba04d5b7abf89e1b4748c8af169eec1e6a5f0
4
- data.tar.gz: 7436df93d55f63b257f1ffc3005df146700de3bb25cb3bca5a5996431ceb69c6
3
+ metadata.gz: e43e43b47db53a204c9f54b71d26bcf5cb9117ec1a18aa823aab09962b137e9c
4
+ data.tar.gz: 67499b45f3869d2b5f53098290d5458c5e28f29a1d010cd892dbf04fb6304d10
5
5
  SHA512:
6
- metadata.gz: 27c014c1b2574c867d0ac66c60b2ce4cae64ec9a778e833f70038c1acb5e18806df7c404e74c2e5d15e13fcb680297245327f970380615379ca8a7b43a45ebfe
7
- data.tar.gz: 0a2c89e42be5e2232647738c8f8ef8acd75f1f978de0f5564ff11c799575341377f3bbdac42c3d8ce2de8aa27baac974569016842fe3f21b0e24f032b82f0634
6
+ metadata.gz: 8fb0513e9dba98a977089aa568db8c03ecf095326a7218bcc25ff8467e0d4210e695e00fd8e355b3ec47508e13bf4ef2747ebf89de2698d9f4cea8452e600b01
7
+ data.tar.gz: d28d8cce20afd8befd94c7d4c7ed640180eb6c904184834906a2a77ecf4b110d30797ef493cb872990e3a9dfc3a3e1128bc2c83686f6b5e65423c2ace4b78d5c
data/.travis.yml CHANGED
@@ -3,7 +3,7 @@ os: linux
3
3
  language: ruby
4
4
  cache: bundler
5
5
  services:
6
- - redis-server
6
+ - redis
7
7
  rvm:
8
8
  - 2.5.5
9
9
  - 2.6.3
data/Gemfile.lock ADDED
@@ -0,0 +1,187 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ redis_web_manager (0.3.8)
5
+ pagy (~> 3.8)
6
+ rails (>= 5.2, < 7)
7
+ redis (>= 4.1.0, < 5)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (6.1.4)
13
+ actionpack (= 6.1.4)
14
+ activesupport (= 6.1.4)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailbox (6.1.4)
18
+ actionpack (= 6.1.4)
19
+ activejob (= 6.1.4)
20
+ activerecord (= 6.1.4)
21
+ activestorage (= 6.1.4)
22
+ activesupport (= 6.1.4)
23
+ mail (>= 2.7.1)
24
+ actionmailer (6.1.4)
25
+ actionpack (= 6.1.4)
26
+ actionview (= 6.1.4)
27
+ activejob (= 6.1.4)
28
+ activesupport (= 6.1.4)
29
+ mail (~> 2.5, >= 2.5.4)
30
+ rails-dom-testing (~> 2.0)
31
+ actionpack (6.1.4)
32
+ actionview (= 6.1.4)
33
+ activesupport (= 6.1.4)
34
+ rack (~> 2.0, >= 2.0.9)
35
+ rack-test (>= 0.6.3)
36
+ rails-dom-testing (~> 2.0)
37
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
38
+ actiontext (6.1.4)
39
+ actionpack (= 6.1.4)
40
+ activerecord (= 6.1.4)
41
+ activestorage (= 6.1.4)
42
+ activesupport (= 6.1.4)
43
+ nokogiri (>= 1.8.5)
44
+ actionview (6.1.4)
45
+ activesupport (= 6.1.4)
46
+ builder (~> 3.1)
47
+ erubi (~> 1.4)
48
+ rails-dom-testing (~> 2.0)
49
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
50
+ activejob (6.1.4)
51
+ activesupport (= 6.1.4)
52
+ globalid (>= 0.3.6)
53
+ activemodel (6.1.4)
54
+ activesupport (= 6.1.4)
55
+ activerecord (6.1.4)
56
+ activemodel (= 6.1.4)
57
+ activesupport (= 6.1.4)
58
+ activestorage (6.1.4)
59
+ actionpack (= 6.1.4)
60
+ activejob (= 6.1.4)
61
+ activerecord (= 6.1.4)
62
+ activesupport (= 6.1.4)
63
+ marcel (~> 1.0.0)
64
+ mini_mime (>= 1.1.0)
65
+ activesupport (6.1.4)
66
+ concurrent-ruby (~> 1.0, >= 1.0.2)
67
+ i18n (>= 1.6, < 2)
68
+ minitest (>= 5.1)
69
+ tzinfo (~> 2.0)
70
+ zeitwerk (~> 2.3)
71
+ builder (3.2.4)
72
+ concurrent-ruby (1.1.9)
73
+ coveralls (0.8.23)
74
+ json (>= 1.8, < 3)
75
+ simplecov (~> 0.16.1)
76
+ term-ansicolor (~> 1.3)
77
+ thor (>= 0.19.4, < 2.0)
78
+ tins (~> 1.6)
79
+ crass (1.0.6)
80
+ diff-lcs (1.4.4)
81
+ docile (1.4.0)
82
+ erubi (1.10.0)
83
+ globalid (0.5.2)
84
+ activesupport (>= 5.0)
85
+ i18n (1.8.10)
86
+ concurrent-ruby (~> 1.0)
87
+ json (2.5.1)
88
+ loofah (2.12.0)
89
+ crass (~> 1.0.2)
90
+ nokogiri (>= 1.5.9)
91
+ mail (2.7.1)
92
+ mini_mime (>= 0.1.1)
93
+ marcel (1.0.1)
94
+ method_source (1.0.0)
95
+ mini_mime (1.1.0)
96
+ mini_portile2 (2.6.1)
97
+ minitest (5.14.4)
98
+ nio4r (2.5.8)
99
+ nokogiri (1.12.3)
100
+ mini_portile2 (~> 2.6.1)
101
+ racc (~> 1.4)
102
+ pagy (3.14.0)
103
+ racc (1.5.2)
104
+ rack (2.2.3)
105
+ rack-test (1.1.0)
106
+ rack (>= 1.0, < 3)
107
+ rails (6.1.4)
108
+ actioncable (= 6.1.4)
109
+ actionmailbox (= 6.1.4)
110
+ actionmailer (= 6.1.4)
111
+ actionpack (= 6.1.4)
112
+ actiontext (= 6.1.4)
113
+ actionview (= 6.1.4)
114
+ activejob (= 6.1.4)
115
+ activemodel (= 6.1.4)
116
+ activerecord (= 6.1.4)
117
+ activestorage (= 6.1.4)
118
+ activesupport (= 6.1.4)
119
+ bundler (>= 1.15.0)
120
+ railties (= 6.1.4)
121
+ sprockets-rails (>= 2.0.0)
122
+ rails-dom-testing (2.0.3)
123
+ activesupport (>= 4.2.0)
124
+ nokogiri (>= 1.6)
125
+ rails-html-sanitizer (1.3.0)
126
+ loofah (~> 2.3)
127
+ railties (6.1.4)
128
+ actionpack (= 6.1.4)
129
+ activesupport (= 6.1.4)
130
+ method_source
131
+ rake (>= 0.13)
132
+ thor (~> 1.0)
133
+ rake (13.0.6)
134
+ redis (4.4.0)
135
+ rspec-core (3.10.1)
136
+ rspec-support (~> 3.10.0)
137
+ rspec-expectations (3.10.1)
138
+ diff-lcs (>= 1.2.0, < 2.0)
139
+ rspec-support (~> 3.10.0)
140
+ rspec-mocks (3.10.2)
141
+ diff-lcs (>= 1.2.0, < 2.0)
142
+ rspec-support (~> 3.10.0)
143
+ rspec-rails (4.0.2)
144
+ actionpack (>= 4.2)
145
+ activesupport (>= 4.2)
146
+ railties (>= 4.2)
147
+ rspec-core (~> 3.10)
148
+ rspec-expectations (~> 3.10)
149
+ rspec-mocks (~> 3.10)
150
+ rspec-support (~> 3.10)
151
+ rspec-support (3.10.2)
152
+ simplecov (0.16.1)
153
+ docile (~> 1.1)
154
+ json (>= 1.8, < 3)
155
+ simplecov-html (~> 0.10.0)
156
+ simplecov-html (0.10.2)
157
+ sprockets (4.0.2)
158
+ concurrent-ruby (~> 1.0)
159
+ rack (> 1, < 3)
160
+ sprockets-rails (3.2.2)
161
+ actionpack (>= 4.0)
162
+ activesupport (>= 4.0)
163
+ sprockets (>= 3.0.0)
164
+ sync (0.5.0)
165
+ term-ansicolor (1.7.1)
166
+ tins (~> 1.0)
167
+ thor (1.1.0)
168
+ tins (1.29.1)
169
+ sync
170
+ tzinfo (2.0.4)
171
+ concurrent-ruby (~> 1.0)
172
+ websocket-driver (0.7.5)
173
+ websocket-extensions (>= 0.1.0)
174
+ websocket-extensions (0.1.5)
175
+ zeitwerk (2.4.2)
176
+
177
+ PLATFORMS
178
+ ruby
179
+
180
+ DEPENDENCIES
181
+ coveralls (~> 0.8)
182
+ redis_web_manager!
183
+ rspec-rails (~> 4.0.0)
184
+ simplecov (~> 0.16)
185
+
186
+ BUNDLED WITH
187
+ 2.2.24
data/README.md CHANGED
@@ -57,8 +57,8 @@ You can configure RedisWebManager:
57
57
 
58
58
  RedisWebManager.configure do |config|
59
59
  config.redises = {
60
- default: Redis.new(db: 1),
61
- production: Redis.new(url: 'XXX')
60
+ instance_1: Redis.new(db: 1),
61
+ instance_2: Redis.new(url: 'XXX')
62
62
  } # Default { default: Redis.new } (Hash with instance(s) of Redis)
63
63
  config.lifespan = 2.days # Default 15.days (Lifespan of each keys for dashboard)
64
64
  config.authenticate = proc {
@@ -73,7 +73,7 @@ end
73
73
 
74
74
  In order to have data on your dashboard you must collect the data like this:
75
75
  ```ruby
76
- data = RedisWebManager::Data.new(:default)
76
+ data = RedisWebManager::Data.new(:instance_1)
77
77
  data.perform
78
78
  ```
79
79
 
@@ -94,7 +94,7 @@ class DashboardWorker
94
94
  include Sidekiq::Worker
95
95
 
96
96
  def perform
97
- data = RedisWebManager::Data.new(:default)
97
+ data = RedisWebManager::Data.new(:instance_1)
98
98
  data.perform
99
99
  end
100
100
  end
@@ -121,7 +121,7 @@ class DashboardJob
121
121
  include SuckerPunch::Job
122
122
 
123
123
  def perform
124
- data = RedisWebManager::Data.new(:default)
124
+ data = RedisWebManager::Data.new(:instance_1)
125
125
  data.perform
126
126
  end
127
127
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedisWebManager
4
- VERSION = '0.3.8'
4
+ VERSION = '0.3.9'
5
5
  end
@@ -4897,3 +4897,27 @@ Processing by RedisWebManager::KeysController#destroy as HTML
4897
4897
  Parameters: {"key"=>"test", "instance"=>"default"}
4898
4898
  Redirected to http://test.host/redis_web_manager/default/keys
4899
4899
  Completed 302 Found in 1ms (Allocations: 186)
4900
+ Processing by RedisWebManager::ActionsController#reset as HTML
4901
+ Parameters: {"instance"=>"default"}
4902
+ Completed 500 Internal Server Error in 8ms (Allocations: 486)
4903
+ Processing by RedisWebManager::ActionsController#flushdb as HTML
4904
+ Parameters: {"instance"=>"default"}
4905
+ Completed 500 Internal Server Error in 1ms (Allocations: 375)
4906
+ Processing by RedisWebManager::ActionsController#flushall as HTML
4907
+ Parameters: {"instance"=>"default"}
4908
+ Completed 500 Internal Server Error in 1ms (Allocations: 375)
4909
+ Processing by RedisWebManager::ClientsController#index as HTML
4910
+ Parameters: {"instance"=>"default"}
4911
+ Completed 500 Internal Server Error in 4ms (Allocations: 379)
4912
+ Processing by RedisWebManager::ConfigurationController#index as HTML
4913
+ Parameters: {"instance"=>"default"}
4914
+ Completed 500 Internal Server Error in 2ms (Allocations: 380)
4915
+ Processing by RedisWebManager::DashboardController#index as HTML
4916
+ Parameters: {"instance"=>"default"}
4917
+ Completed 500 Internal Server Error in 2ms (Allocations: 382)
4918
+ Processing by RedisWebManager::InformationController#index as HTML
4919
+ Parameters: {"instance"=>"default"}
4920
+ Completed 500 Internal Server Error in 9ms (Allocations: 382)
4921
+ Processing by RedisWebManager::KeysController#index as HTML
4922
+ Parameters: {"instance"=>"default"}
4923
+ Completed 500 Internal Server Error in 2ms (Allocations: 379)
data/spec/spec_helper.rb CHANGED
@@ -10,7 +10,7 @@ require 'simplecov'
10
10
  require 'coveralls'
11
11
 
12
12
  SimpleCov.start
13
- #Coveralls.wear!
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.8
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: 2021-01-23 00:00:00.000000000 Z
13
+ date: 2021-08-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coveralls
@@ -124,6 +124,7 @@ files:
124
124
  - ".rubocop.yml"
125
125
  - ".travis.yml"
126
126
  - Gemfile
127
+ - Gemfile.lock
127
128
  - MIT-LICENSE
128
129
  - README.md
129
130
  - Rakefile
@@ -384,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
385
  - !ruby/object:Gem::Version
385
386
  version: '0'
386
387
  requirements: []
387
- rubygems_version: 3.1.2
388
+ rubygems_version: 3.1.6
388
389
  signing_key:
389
390
  specification_version: 4
390
391
  summary: Manage your Redis instance (See keys, memory used, connected client, etc...)