web47core 3.2.3.23 → 3.2.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/status_controller.rb +3 -7
- data/lib/app/models/redis_configuration.rb +1 -1
- data/lib/web47core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 154ba81543aed62f9294393f3c3c5054ec581dc57b735d8c0a457a5b200cd951
|
|
4
|
+
data.tar.gz: e3d625c34ad9dca3294aa3046a6739ea7cf8f2da054da09a6aef9e95fad67bee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65372bb10fccf96d362764f71cf36135b7c3a22474fd3efef23f6a4e6c5bf6edf3f27653e52656b242947b8a22acf757abcf7a21b3834ce81c98970e8cc84e34
|
|
7
|
+
data.tar.gz: bf2d6f276b0921d4ee353e7755d35eaf7ce2604e812c9a850fd56fcfba8087ffa5fe680585c62bf73957d8d4b488c26eb44020a294340b93b95aa1a97a325d66
|
|
@@ -73,17 +73,13 @@ class StatusController < ActionController::Base
|
|
|
73
73
|
report_error error, count: 0
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
def pid
|
|
77
|
-
@pid ||= Process.pid
|
|
78
|
-
end
|
|
79
|
-
|
|
80
76
|
#
|
|
81
77
|
# Redis DB Status
|
|
82
78
|
#
|
|
83
79
|
def redis_status
|
|
84
|
-
value =
|
|
85
|
-
key = "redis-status-check-#{
|
|
86
|
-
Rails.cache.write key, value, expires_in:
|
|
80
|
+
value = SecureRandom.hex(32)
|
|
81
|
+
key = "redis-status-check-#{SecureRandom.hex(16)}"
|
|
82
|
+
Rails.cache.write key, value, expires_in: 15.seconds
|
|
87
83
|
cached_value = Rails.cache.fetch(key)
|
|
88
84
|
raise "Redis not available: Expected: #{value} with key #{key}, but got #{cached_value}" unless value.eql?(cached_value)
|
|
89
85
|
|
data/lib/web47core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: web47core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.3.
|
|
4
|
+
version: 3.2.3.25
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Schroeder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|