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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a09635f3dfd9386e18ac0368fe795611308035dad8f099d0462dca45741b6e80
4
- data.tar.gz: dd2d6d96fa1202e7738f2d1634e7be51d5499a573e32c5cd3745b0cb5d12b19f
3
+ metadata.gz: 154ba81543aed62f9294393f3c3c5054ec581dc57b735d8c0a457a5b200cd951
4
+ data.tar.gz: e3d625c34ad9dca3294aa3046a6739ea7cf8f2da054da09a6aef9e95fad67bee
5
5
  SHA512:
6
- metadata.gz: cd89824d741a5b185a9445ad3ad74ed2e40caff989b92e48551580fe5180f61637791e9eb3931587af8cd6c493c7fdfb85d1dca510adfba9b7732dd91031ca0e
7
- data.tar.gz: f2a66062999aa47ac433d4582304da72aca1b52f7180dcbe925a22df769c31cb86c3dbb0bbe15382f20289d86791f264dfa1784551870b03ba612312d1410195
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 = Time.now.to_i
85
- key = "redis-status-check-#{pid}"
86
- Rails.cache.write key, value, expires_in: 5.seconds
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
 
@@ -72,7 +72,7 @@ class RedisConfiguration
72
72
 
73
73
  config = load_base(raw_config)
74
74
  config[:url] = raw_config['url']
75
- config[:db] = (database || 0)
75
+ config[:db] = (database || 0) unless config[:url].include?('cache.amazonaws.com')
76
76
  config
77
77
  end
78
78
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.3.23'
4
+ VERSION = '3.2.3.25'
5
5
  end
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.23
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-13 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel