trusty-cms 6.0.2 → 6.0.3
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/Gemfile.lock +1 -1
- data/app/controllers/admin/pages_controller.rb +1 -1
- data/lib/trusty_cms/task_support.rb +2 -2
- data/lib/trusty_cms.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: fd070d2a1f939233a8e702c0bca79d3642bbc42968b0f8ec119cd7da09f443be
|
|
4
|
+
data.tar.gz: b2da94658488d9005dfa919f1be59296f691cd65143b7badb2878118909e351c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57aa2f3b55e1f1c45396ba0ad1d7d0fba25d0fa48a2bf9da705b90ee28bc4764174bc5ee977fe814cb8b4c33df50f13082f96e837b8ae8feba3bf4d1ce3f5f10
|
|
7
|
+
data.tar.gz: a2451eda0132fce61f848c770dd066c3b28451fc6d3336984221a19cc209504d591a7ba041aaccb3453743c00703e3c09be37eafa6f25dfce5a5fa5d9a67c22b
|
data/Gemfile.lock
CHANGED
|
@@ -17,7 +17,7 @@ class Admin::PagesController < Admin::ResourceController
|
|
|
17
17
|
@template_name = 'index'
|
|
18
18
|
self.models = Page.find(params[:page_id]).children.all
|
|
19
19
|
response.headers['Content-Type'] = 'text/html;charset=utf-8'
|
|
20
|
-
render action: 'children
|
|
20
|
+
render action: 'children', layout: false
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
@@ -44,7 +44,7 @@ module TrustyCms
|
|
|
44
44
|
def cache_files(dir, files, cache_file)
|
|
45
45
|
cache_content = files.collect do |f|
|
|
46
46
|
File.read(File.join(dir, f))
|
|
47
|
-
end
|
|
47
|
+
end.join("\n\n")
|
|
48
48
|
|
|
49
49
|
cache_path = File.join(dir, cache_file)
|
|
50
50
|
File.delete(cache_path) if File.exists?(cache_path)
|
|
@@ -54,7 +54,7 @@ module TrustyCms
|
|
|
54
54
|
# Reads through the layout file and returns an array of JS filenames
|
|
55
55
|
#
|
|
56
56
|
def find_admin_js
|
|
57
|
-
layout = "#{TRUSTY_CMS_ROOT}/app/views/layouts/application
|
|
57
|
+
layout = "#{TRUSTY_CMS_ROOT}/app/views/layouts/application"
|
|
58
58
|
js_regexp = /javascript_include_tag %w\((.*)\), :cache => 'admin\/all/
|
|
59
59
|
files = File.open(layout) { |f| f.read.match(js_regexp)[1].split }
|
|
60
60
|
files.collect { |f| f.split('/').last + '.js' }
|
data/lib/trusty_cms.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trusty-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0.
|
|
4
|
+
version: 6.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TrustyCms CMS dev team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-10-
|
|
11
|
+
date: 2023-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activestorage-validator
|