web47core 0.7.7 → 0.8.0
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/lib/app/models/concerns/core_system_configuration.rb +22 -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: fd6df6a00053ff9fd998b767d581c1468ce7fff3f230526333b73839e59670cf
|
|
4
|
+
data.tar.gz: 1b3d1bd842c3ba6bb6878073cd4ddc71c4e966f144df67a13587f97fcbe4c191
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e8fe75827bda687fbfd29fb2109f22e2f0b7195c8655aceee8739c99abed900adf2c1c2b1b723ab2566bd7e89a26a35ca1fc8695afa2a84e8112cb0d2790389
|
|
7
|
+
data.tar.gz: be892f7392931062cb1be21187f84163f7f0534b4af9905b01c60e714ec85849dd6df3947e1da2faa4bd5cca0f3e8b51688b2b9789c9f2c4bc9954c1faffd6af
|
|
@@ -21,7 +21,13 @@ module CoreSystemConfiguration
|
|
|
21
21
|
# Fields
|
|
22
22
|
#
|
|
23
23
|
field :environment, type: String, default: 'test'
|
|
24
|
-
field :fips_mode, type:
|
|
24
|
+
field :fips_mode, type: Boolean, default: false
|
|
25
|
+
field :fav_icon_path, { type: String, default: '/favicon.ico' }
|
|
26
|
+
field :default_logo_path, { type: String, default: 'ui-company-logo.png' }
|
|
27
|
+
field :primary_stylesheet, { type: String, default: 'app47' }
|
|
28
|
+
field :short_cache, { type: Integer, default: 1 }
|
|
29
|
+
field :medium_cache, { type: Integer, default: 5 }
|
|
30
|
+
field :long_cache, { type: Integer, default: 15 }
|
|
25
31
|
# SMTP configuration
|
|
26
32
|
field :default_email, type: String, default: 'support@app47.com'
|
|
27
33
|
field :support_email, type: String, default: 'support@app47.com'
|
|
@@ -121,6 +127,21 @@ module CoreSystemConfiguration
|
|
|
121
127
|
zendesk_token]
|
|
122
128
|
end
|
|
123
129
|
|
|
130
|
+
#
|
|
131
|
+
# Cache times in minutes
|
|
132
|
+
#
|
|
133
|
+
def short_cache_time
|
|
134
|
+
short_cache.minutes
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def medium_cache_time
|
|
138
|
+
medium_cache.minutes
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
def long_cache_time
|
|
142
|
+
long_cache.minutes
|
|
143
|
+
end
|
|
144
|
+
|
|
124
145
|
#
|
|
125
146
|
# Determine if SMTP is configured
|
|
126
147
|
#
|
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: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Schroeder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|