web47core 3.2.27 → 3.2.29
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 +2 -1
- data/app/helpers/core_dropdown_helper.rb +6 -1
- data/lib/app/models/concerns/archive_able.rb +1 -1
- data/lib/web47core/version.rb +1 -1
- data/lib/web47core.rb +1 -1
- metadata +3 -4
- data/config/application.rb +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f78ccf19f10ae2b09b15a926a6fe5e3dfa3c2f7b89483f0aa98b4353b02239c3
|
4
|
+
data.tar.gz: f97bf445c8caa73d9d8c057d72c7c5315893681c90e064ab2716c586faa14008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95f8bdf83e0da3dd927421e3dfce334174cecff305577323e14c20ce79240a8710f69718e1aee7ba2da9e113d97573175f97a8006df34109514ff661c1b38e6a
|
7
|
+
data.tar.gz: ee2bd52449171610346fd7027142a7ed25ba0597334e87bbaa6eb4bf9e853b40622c36a87065f507f395bcaace204116a3a35f44efa28db5afb681ae39303846
|
@@ -84,7 +84,8 @@ class StatusController < ActionController::Base
|
|
84
84
|
value = Time.now.to_i
|
85
85
|
key = "redis-status-check-#{pid}"
|
86
86
|
Rails.cache.write key, value, expires_in: 5.seconds
|
87
|
-
|
87
|
+
cached_value = Rails.cache.fetch(key)
|
88
|
+
raise "Redis not available: Expected: #{value} with key #{key}, but got #{cached_value}" unless value.eql?(cached_value)
|
88
89
|
|
89
90
|
report_success 'Redis Available', count: 1
|
90
91
|
rescue StandardError => error
|
@@ -75,7 +75,12 @@ module CoreDropdownHelper
|
|
75
75
|
def cancel_dropdown_item(obj, path, confirm: 'Are you sure?', method: :delete)
|
76
76
|
return unless can? :edit, obj
|
77
77
|
|
78
|
-
dropdown_item(path,
|
78
|
+
dropdown_item(path,
|
79
|
+
'close-circle',
|
80
|
+
'Cancel',
|
81
|
+
method: method,
|
82
|
+
confirm: confirm,
|
83
|
+
classes: %w[text-danger])
|
79
84
|
end
|
80
85
|
|
81
86
|
def run_dropdown_item(obj, path, method: :get, title: 'Run')
|
@@ -82,7 +82,7 @@ module ArchiveAble
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def days_to_deletion
|
85
|
-
archived? ? ((archived_at + retention_days.days - Time.now.utc) / 86_400).to_i :
|
85
|
+
archived? ? ((archived_at + retention_days.days - Time.now.utc) / 86_400).to_i : 0
|
86
86
|
rescue StandardError
|
87
87
|
archived? ? retention_days : 0
|
88
88
|
end
|
data/lib/web47core/version.rb
CHANGED
data/lib/web47core.rb
CHANGED
@@ -80,7 +80,7 @@ require 'app/models/user_model_audit_log'
|
|
80
80
|
#
|
81
81
|
# Controllers
|
82
82
|
#
|
83
|
-
require 'web47core/engine'
|
83
|
+
require 'web47core/engine' if defined?(Rails::Engine)
|
84
84
|
require 'web47core/version'
|
85
85
|
require 'app/controllers/concerns/restful_controller'
|
86
86
|
require 'app/controllers/concerns/core_controller'
|
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.
|
4
|
+
version: 3.2.29
|
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-07-
|
11
|
+
date: 2025-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -602,7 +602,6 @@ files:
|
|
602
602
|
- bin/rails
|
603
603
|
- bin/rake
|
604
604
|
- bin/setup
|
605
|
-
- config/application.rb
|
606
605
|
- config/boot.rb
|
607
606
|
- config/brakeman.ignore
|
608
607
|
- config/brakeman.yml
|
@@ -713,7 +712,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
713
712
|
- !ruby/object:Gem::Version
|
714
713
|
version: '0'
|
715
714
|
requirements: []
|
716
|
-
rubygems_version: 3.
|
715
|
+
rubygems_version: 3.4.20
|
717
716
|
signing_key:
|
718
717
|
specification_version: 4
|
719
718
|
summary: App47 Web Core Library.
|
data/config/application.rb
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
# require File.expand_path('../../config/environment', __FILE__)
|
2
|
-
# Load the Rails application.
|
3
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
4
|
-
|
5
|
-
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
6
|
-
|
7
|
-
require 'rails'
|
8
|
-
|
9
|
-
%w[
|
10
|
-
action_controller/railtie
|
11
|
-
action_view/railtie
|
12
|
-
action_mailer/railtie
|
13
|
-
active_job/railtie
|
14
|
-
action_cable/engine
|
15
|
-
rails/test_unit/railtie
|
16
|
-
sprockets/railtie
|
17
|
-
].each do |railtie|
|
18
|
-
require railtie
|
19
|
-
rescue LoadError => error
|
20
|
-
puts 'Unable to load libraries'
|
21
|
-
puts error.message
|
22
|
-
end
|
23
|
-
|
24
|
-
require 'haml'
|
25
|
-
require 'mail'
|
26
|
-
require 'cancancan'
|
27
|
-
|
28
|
-
# Require the gems listed in Gemfile, including any gems
|
29
|
-
# you've limited to :test, :development, or :production.
|
30
|
-
Bundler.require(*Rails.groups)
|
31
|
-
|
32
|
-
module WebCore
|
33
|
-
class Application < Rails::Application
|
34
|
-
# Settings in config/environments/* take precedence over those specified here.
|
35
|
-
# Application configuration should go into files in config/initializers
|
36
|
-
# -- all .rb files in that directory are automatically loaded.
|
37
|
-
# Configure redis cache
|
38
|
-
config.eager_load = false
|
39
|
-
config.cache_store = :redis_cache_store, { url: 'redis://127.0.0.1:6379/11' }
|
40
|
-
config.autoload_paths += %W[#{config.root}/lib]
|
41
|
-
config.generators do |g|
|
42
|
-
g.template_engine :haml
|
43
|
-
g.orm :mongoid
|
44
|
-
g.test_framework :shoulda
|
45
|
-
g.fallbacks[:shoulda] = :test_unit
|
46
|
-
g.fixture_replacement :factory_bot
|
47
|
-
end
|
48
|
-
config.active_job.queue_adapter = :delayed_job
|
49
|
-
|
50
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
51
|
-
config.encoding = 'utf-8'
|
52
|
-
config.logger = Logger.new($stdout)
|
53
|
-
config.logger.level = Logger::DEBUG
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
Delayed::Worker.delay_jobs = false
|
58
|
-
|
59
|
-
# Initialize the Rails application.
|
60
|
-
Rails.application.initialize!
|
61
|
-
Rails.application.config.filter_parameters += %w[password password_confirmation]
|