redis_web_manager 0.3.0 → 0.3.1

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: a2c1a155b9755c60298027f28029841cdcf6e347fb6b4be7a959c62922a5ccf6
4
- data.tar.gz: 203f63d9ce3d1284825cc55d428bf82430076e3858078849768651b21ab99ad8
3
+ metadata.gz: 90403c4f344a825c76fabb3696d76ba56b017a76b4cc97005d3679deef2012d9
4
+ data.tar.gz: 9c79268b3093e83f1d9be414623a54f6b3e274cc61100df165a56d2064c0a028
5
5
  SHA512:
6
- metadata.gz: c9ba53415f30c8374fb7bbdaa2a0f3ee6437dda8ecfc7986584613b61603eb1a87bd0c742e9bfa47b524b798ec239cf524c0f0769d70af091417fd26838d892c
7
- data.tar.gz: c224c72c7e3b3d5b006a6009de3e5ee4a2f02914da2059376a58bae3e0b1a8e112a85a74f8d6e1262abb465973c7b54161bc1f616e8fc48e8bd4201a2ea5b55e
6
+ metadata.gz: 6f035849f1f47258dbcfbffa026d4efe6d95fcf3fa38275f83975708bffffb1d0e682910cb53d9919faca2b112e6345c34a8bb149ca93d5f9b7fad544f6410a4
7
+ data.tar.gz: 705c2ace1f9f1f89dab6705d8d85b8b8bebcd14d495a3f434329af4ef0d6ed0d37b38d150bbea96b071cc5a5b062ac4fd678c32b19d99fefb4a390db65f55350
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redis_web_manager (0.2.1)
4
+ redis_web_manager (0.3.1)
5
5
  pagy (~> 3.7)
6
6
  rails (>= 5.2, < 7)
7
7
  redis (~> 4.1.0)
data/README.md CHANGED
@@ -94,7 +94,7 @@ class DashboardWorker
94
94
  include Sidekiq::Worker
95
95
 
96
96
  def perform
97
- data = RedisWebManager::Data.new
97
+ data = RedisWebManager::Data.new(:default)
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
124
+ data = RedisWebManager::Data.new(:default)
125
125
  data.perform
126
126
  end
127
127
  end
@@ -11,7 +11,7 @@ module RedisWebManager
11
11
  def perform
12
12
  now = Time.now.to_i
13
13
  seconds = (now + lifespan.to_i) - now
14
- redis.setex("#{instance}_#{BASE}_#{now}", seconds, serialize.to_json)
14
+ redis.setex("#{BASE}_#{instance}_#{now}", seconds, serialize.to_json)
15
15
  end
16
16
 
17
17
  def flush
@@ -21,7 +21,7 @@ module RedisWebManager
21
21
  private
22
22
 
23
23
  def data
24
- @data ||= redis.scan_each(match: "#{instance}_#{BASE}_*").to_a
24
+ @data ||= redis.scan_each(match: "#{BASE}_#{instance}_*").to_a
25
25
  end
26
26
 
27
27
  def lifespan
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedisWebManager
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris BRESCIANI