trusty-cms 6.0.1 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/admin/pages_controller.rb +1 -1
- data/app/models/trusty_cms/config.rb +1 -2
- data/lib/trusty_cms/task_support.rb +2 -2
- data/lib/trusty_cms.rb +1 -1
- metadata +35 -35
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
|
|
@@ -81,8 +81,7 @@ module TrustyCms
|
|
81
81
|
TrustyCms::Config.initialize_cache
|
82
82
|
end
|
83
83
|
TrustyCms::Config.initialize_cache if TrustyCms::Config.stale_cache?
|
84
|
-
|
85
|
-
# TODO: Do we need this line?
|
84
|
+
Rails.cache.read('TrustyCms::Config')[key]
|
86
85
|
end
|
87
86
|
end
|
88
87
|
end
|
@@ -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
|
@@ -1152,52 +1152,52 @@ signing_key:
|
|
1152
1152
|
specification_version: 4
|
1153
1153
|
summary: A no-fluff content management system designed for small teams.
|
1154
1154
|
test_files:
|
1155
|
+
- spec/models/layout_spec.rb
|
1156
|
+
- spec/features/layouts_spec.rb
|
1157
|
+
- spec/features/config_spec.rb
|
1158
|
+
- spec/features/pages_spec.rb
|
1159
|
+
- spec/support/custom_actions.rb
|
1160
|
+
- spec/ci/database.mysql.yml
|
1155
1161
|
- spec/controllers/users_controller_spec.rb
|
1156
1162
|
- spec/controllers/application_controller_spec.rb
|
1157
|
-
- spec/
|
1158
|
-
- spec/
|
1159
|
-
- spec/dummy/
|
1160
|
-
- spec/dummy/public/500.html
|
1161
|
-
- spec/dummy/public/favicon.ico
|
1162
|
-
- spec/dummy/public/422.html
|
1163
|
-
- spec/dummy/bin/rails
|
1164
|
-
- spec/dummy/bin/setup
|
1165
|
-
- spec/dummy/bin/rake
|
1166
|
-
- spec/dummy/bin/bundle
|
1167
|
-
- spec/dummy/config/locales/en.yml
|
1168
|
-
- spec/dummy/config/routes.rb
|
1163
|
+
- spec/rails_helper.rb
|
1164
|
+
- spec/spec_helper.rb
|
1165
|
+
- spec/dummy/config.ru
|
1169
1166
|
- spec/dummy/config/application.rb
|
1170
|
-
- spec/dummy/config/
|
1171
|
-
- spec/dummy/config/
|
1172
|
-
- spec/dummy/config/environments/production.rb
|
1173
|
-
- spec/dummy/config/environments/development.rb
|
1174
|
-
- spec/dummy/config/environments/test.rb
|
1175
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
1167
|
+
- spec/dummy/config/routes.rb
|
1168
|
+
- spec/dummy/config/initializers/inflections.rb
|
1176
1169
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
1177
|
-
- spec/dummy/config/initializers/trusty_cms_config.rb
|
1178
|
-
- spec/dummy/config/initializers/session_store.rb
|
1179
1170
|
- spec/dummy/config/initializers/mime_types.rb
|
1180
1171
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
1181
|
-
- spec/dummy/config/initializers/
|
1172
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
1173
|
+
- spec/dummy/config/initializers/trusty_cms_config.rb
|
1174
|
+
- spec/dummy/config/initializers/session_store.rb
|
1182
1175
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
1183
1176
|
- spec/dummy/config/initializers/assets.rb
|
1177
|
+
- spec/dummy/config/locales/en.yml
|
1178
|
+
- spec/dummy/config/environment.rb
|
1184
1179
|
- spec/dummy/config/secrets.yml
|
1180
|
+
- spec/dummy/config/environments/development.rb
|
1181
|
+
- spec/dummy/config/environments/production.rb
|
1182
|
+
- spec/dummy/config/environments/test.rb
|
1183
|
+
- spec/dummy/config/database.yml
|
1185
1184
|
- spec/dummy/config/boot.rb
|
1185
|
+
- spec/dummy/db/schema.rb
|
1186
|
+
- spec/dummy/yarn.lock
|
1187
|
+
- spec/dummy/README.rdoc
|
1188
|
+
- spec/dummy/bin/bundle
|
1189
|
+
- spec/dummy/bin/rails
|
1190
|
+
- spec/dummy/bin/setup
|
1191
|
+
- spec/dummy/bin/rake
|
1186
1192
|
- spec/dummy/Rakefile
|
1187
1193
|
- spec/dummy/app/assets/config/manifest.js
|
1188
1194
|
- spec/dummy/package.json
|
1189
|
-
- spec/dummy/
|
1190
|
-
- spec/dummy/
|
1191
|
-
- spec/dummy/
|
1192
|
-
- spec/dummy/
|
1193
|
-
- spec/spec_helper.rb
|
1194
|
-
- spec/rails_helper.rb
|
1195
|
-
- spec/models/layout_spec.rb
|
1195
|
+
- spec/dummy/public/favicon.ico
|
1196
|
+
- spec/dummy/public/500.html
|
1197
|
+
- spec/dummy/public/404.html
|
1198
|
+
- spec/dummy/public/422.html
|
1196
1199
|
- spec/factories/page.rb
|
1197
|
-
- spec/factories/page_part.rb
|
1198
1200
|
- spec/factories/user.rb
|
1199
1201
|
- spec/factories/layout.rb
|
1200
|
-
- spec/
|
1201
|
-
- spec/
|
1202
|
-
- spec/features/layouts_spec.rb
|
1203
|
-
- spec/features/pages_spec.rb
|
1202
|
+
- spec/factories/page_part.rb
|
1203
|
+
- spec/fixtures/users.yml
|