web47core 2.2.17 → 2.2.18
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/README.md +3 -1
- data/lib/app/models/concerns/aws_configuration.rb +1 -0
- data/lib/app/models/concerns/cdn_url.rb +2 -7
- 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: 2634a258267965ef476e8d35fa47a04ab43e0dcb0690d12496cdd1155b8c9c86
|
|
4
|
+
data.tar.gz: a1f897abb8a68208537fd18d25f460ce2ec48156e05993d3b2627f46dcd462c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be313d46de430a646d0d0e847ab32a865a11b3c34455da3a6a327ee598680cde337e99e280506f507e07fe1a7a4cba57e9542d830107245ef5252643f1a411f0
|
|
7
|
+
data.tar.gz: d024aafb910e644fffd3ac4615d30968703ad3d8a9b270f64f4e52f91f4dc6f0ebab9812781043dd346ae816035a7162764afa7478fb677469be1c663cf71b7e
|
data/README.md
CHANGED
|
@@ -188,7 +188,9 @@ The following routes should be added to the correct namespace for your applicait
|
|
|
188
188
|
#
|
|
189
189
|
# System configuration
|
|
190
190
|
#
|
|
191
|
-
resource :system_configurations, only: %i[edit update show]
|
|
191
|
+
resource :system_configurations, only: %i[edit update show] do
|
|
192
|
+
get :sync
|
|
193
|
+
end
|
|
192
194
|
#
|
|
193
195
|
# Delayed jobs
|
|
194
196
|
#
|
|
@@ -17,14 +17,9 @@
|
|
|
17
17
|
#
|
|
18
18
|
module CdnUrl
|
|
19
19
|
extend ActiveSupport::Concern
|
|
20
|
-
#
|
|
21
|
-
# Constants
|
|
22
|
-
#
|
|
23
|
-
STYLE_S3_FILE_PATH = ':class/:attachment/:id/:style.:extension' unless defined? STYLE_S3_FILE_PATH
|
|
24
|
-
STYLE_FILE_PATH = 'public/system/:class/:attachment/:id/:style.:extension' unless defined? STYLE_FILE_PATH
|
|
25
|
-
STYLE_S3_FILE_URL = ':s3_domain_url' unless defined? STYLE_S3_FILE_URL
|
|
26
|
-
STYLE_FILE_URL = ':rails_root/public/system/:class/:attachment/:id/:style.:extension' unless defined? STYLE_FILE_URL
|
|
27
20
|
|
|
21
|
+
# @abstract Catch methods started with `cdn_` and respond to those requests if there is a
|
|
22
|
+
# matching method ending in `_url`
|
|
28
23
|
def method_missing(method, *args)
|
|
29
24
|
if method.to_s.start_with? 'cdn_'
|
|
30
25
|
url = if args.blank?
|
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: 2.2.
|
|
4
|
+
version: 2.2.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Schroeder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-08-
|
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|