web47core 3.2.3.48 → 3.2.3.49

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: b460458978fdba54209f884a08fd57d1407bb02e4542ed559f9198aa918eb162
4
- data.tar.gz: b3d3c901f101674abe9be6cdafa8e2f866f795826b1a6ce00aedc49ad6802428
3
+ metadata.gz: 70781cb08eb5be20273e40a90835d91799d40c28c266631d5f905fcc8443047f
4
+ data.tar.gz: e876bd9972ca5ea75eb074578b98c1ba435e7100bd4c946b4ca9fa283fbe03cd
5
5
  SHA512:
6
- metadata.gz: 4a6ae3bf153a29041e5bf6b2c1e13f611a7056036dd50729e9c592b89d9015347b7fe9a5d2a5e584cad78fa4757b9f6e0ddd0720f91d233ba5feb27277f1989c
7
- data.tar.gz: e5100c2ef32e912f2b7f03afa453f2895f17879805e7dfaf4f17c3ce078de54f87d53e1e4604c5e00b0b82d7f9ed24fca4ffd46dc073b7dc2e1bca1caf8d9206
6
+ metadata.gz: 1e9c9401038a170e3acf2e6677aaa7f840742771036acf8d1f50c0234299892e150d05d0395fad30169359e6c700c9fe62fa2b8bf55cdf2ba9b6e16dbf1df3ae
7
+ data.tar.gz: e998d7542d10b5c21088697a883eb39ac8137da958b6e1e2d9712629465a5802ce11ec7b78831750bee238976e56c429827cbfd7828bb47a62d8674575a8c926
@@ -80,12 +80,10 @@ class StatusController < ActionController::Base
80
80
  def cache_status
81
81
  value = SecureRandom.hex(32)
82
82
  key = "cache-status-check-#{SecureRandom.hex(16)}"
83
- cache = Rails.cache
84
- write_result = cache.write(key, value, expires_in: 15.seconds)
85
- cached_value = cache.read(key)
83
+ Rails.cache.write key, value, expires_in: 15.seconds
84
+ cached_value = Rails.cache.fetch(key)
86
85
  unless value.eql?(cached_value)
87
- raise "Cache not available (#{cache.class.name}): Expected: #{value} with key #{key}, " \
88
- "but got #{cached_value.inspect}; write returned #{write_result.inspect}"
86
+ raise "Cache not available: Expected: #{value} with key #{key}, but got #{cached_value}"
89
87
  end
90
88
 
91
89
  report_success 'Cache Available', count: 1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.3.48'
4
+ VERSION = '3.2.3.49'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3.48
4
+ version: 3.2.3.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder