trusty-cms 6.0.4 → 6.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +69 -76
- data/app/controllers/admin/assets_controller.rb +6 -5
- data/app/models/file_not_found_page.rb +4 -4
- data/app/models/user.rb +4 -0
- data/app/views/admin/layouts/_site_chooser.html.haml +1 -1
- data/lib/trusty_cms.rb +1 -1
- metadata +29 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e18272551dce1a329a35f2392d27ab7db0a2b5add8a97817675566af694c574
|
4
|
+
data.tar.gz: eceba4ff32ac87ce60d9a3a09d4293bc8c5b492ca4054a377ffa9cf80839b1c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42b6a79322a0316b30e3b47f8fcb59854fa5b9aff6c93c6fe0bbdf07191cb38887cc70b46461cc5dd9a51443c0f41f08d0f8900a5fdea360cd7cc2e8f8d24252
|
7
|
+
data.tar.gz: 29a6abd9a87189113fe66ca8680e26bcddea84af5582eafd991c5de2cd7ee581553308ff259249e52100cc456e45f461adadc5af90971b4b425f258b7a20e32a
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -34,80 +34,74 @@ GEM
|
|
34
34
|
remote: https://rubygems.org/
|
35
35
|
specs:
|
36
36
|
RedCloth (4.3.2)
|
37
|
-
actioncable (7.
|
38
|
-
actionpack (= 7.
|
39
|
-
activesupport (= 7.
|
37
|
+
actioncable (6.1.7.6)
|
38
|
+
actionpack (= 6.1.7.6)
|
39
|
+
activesupport (= 6.1.7.6)
|
40
40
|
nio4r (~> 2.0)
|
41
41
|
websocket-driver (>= 0.6.1)
|
42
|
-
actionmailbox (7.
|
43
|
-
actionpack (= 7.
|
44
|
-
activejob (= 7.
|
45
|
-
activerecord (= 7.
|
46
|
-
activestorage (= 7.
|
47
|
-
activesupport (= 7.
|
42
|
+
actionmailbox (6.1.7.6)
|
43
|
+
actionpack (= 6.1.7.6)
|
44
|
+
activejob (= 6.1.7.6)
|
45
|
+
activerecord (= 6.1.7.6)
|
46
|
+
activestorage (= 6.1.7.6)
|
47
|
+
activesupport (= 6.1.7.6)
|
48
48
|
mail (>= 2.7.1)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
actionview (= 7.0.8)
|
55
|
-
activejob (= 7.0.8)
|
56
|
-
activesupport (= 7.0.8)
|
49
|
+
actionmailer (6.1.7.6)
|
50
|
+
actionpack (= 6.1.7.6)
|
51
|
+
actionview (= 6.1.7.6)
|
52
|
+
activejob (= 6.1.7.6)
|
53
|
+
activesupport (= 6.1.7.6)
|
57
54
|
mail (~> 2.5, >= 2.5.4)
|
58
|
-
net-imap
|
59
|
-
net-pop
|
60
|
-
net-smtp
|
61
55
|
rails-dom-testing (~> 2.0)
|
62
|
-
actionpack (7.
|
63
|
-
actionview (= 7.
|
64
|
-
activesupport (= 7.
|
65
|
-
rack (~> 2.0, >= 2.
|
56
|
+
actionpack (6.1.7.6)
|
57
|
+
actionview (= 6.1.7.6)
|
58
|
+
activesupport (= 6.1.7.6)
|
59
|
+
rack (~> 2.0, >= 2.0.9)
|
66
60
|
rack-test (>= 0.6.3)
|
67
61
|
rails-dom-testing (~> 2.0)
|
68
62
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
69
|
-
actiontext (7.
|
70
|
-
actionpack (= 7.
|
71
|
-
activerecord (= 7.
|
72
|
-
activestorage (= 7.
|
73
|
-
activesupport (= 7.
|
74
|
-
globalid (>= 0.6.0)
|
63
|
+
actiontext (6.1.7.6)
|
64
|
+
actionpack (= 6.1.7.6)
|
65
|
+
activerecord (= 6.1.7.6)
|
66
|
+
activestorage (= 6.1.7.6)
|
67
|
+
activesupport (= 6.1.7.6)
|
75
68
|
nokogiri (>= 1.8.5)
|
76
|
-
actionview (7.
|
77
|
-
activesupport (= 7.
|
69
|
+
actionview (6.1.7.6)
|
70
|
+
activesupport (= 6.1.7.6)
|
78
71
|
builder (~> 3.1)
|
79
72
|
erubi (~> 1.4)
|
80
73
|
rails-dom-testing (~> 2.0)
|
81
74
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
82
|
-
activejob (7.
|
83
|
-
activesupport (= 7.
|
75
|
+
activejob (6.1.7.6)
|
76
|
+
activesupport (= 6.1.7.6)
|
84
77
|
globalid (>= 0.3.6)
|
85
|
-
activemodel (7.
|
86
|
-
activesupport (= 7.
|
87
|
-
activerecord (7.
|
88
|
-
activemodel (= 7.
|
89
|
-
activesupport (= 7.
|
90
|
-
activestorage (7.
|
91
|
-
actionpack (= 7.
|
92
|
-
activejob (= 7.
|
93
|
-
activerecord (= 7.
|
94
|
-
activesupport (= 7.
|
78
|
+
activemodel (6.1.7.6)
|
79
|
+
activesupport (= 6.1.7.6)
|
80
|
+
activerecord (6.1.7.6)
|
81
|
+
activemodel (= 6.1.7.6)
|
82
|
+
activesupport (= 6.1.7.6)
|
83
|
+
activestorage (6.1.7.6)
|
84
|
+
actionpack (= 6.1.7.6)
|
85
|
+
activejob (= 6.1.7.6)
|
86
|
+
activerecord (= 6.1.7.6)
|
87
|
+
activesupport (= 6.1.7.6)
|
95
88
|
marcel (~> 1.0)
|
96
89
|
mini_mime (>= 1.1.0)
|
97
90
|
activestorage-validator (0.3.0)
|
98
91
|
rails (>= 6.1.0)
|
99
|
-
activesupport (7.
|
92
|
+
activesupport (6.1.7.6)
|
100
93
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
101
94
|
i18n (>= 1.6, < 2)
|
102
95
|
minitest (>= 5.1)
|
103
96
|
tzinfo (~> 2.0)
|
97
|
+
zeitwerk (~> 2.3)
|
104
98
|
acts_as_list (1.1.0)
|
105
99
|
activerecord (>= 4.2)
|
106
100
|
acts_as_tree (2.9.1)
|
107
101
|
activerecord (>= 3.0.0)
|
108
102
|
addressable (2.8.1)
|
109
103
|
public_suffix (>= 2.0.2, < 6.0)
|
110
|
-
bcrypt (3.1.
|
104
|
+
bcrypt (3.1.19)
|
111
105
|
builder (3.2.4)
|
112
106
|
byebug (11.1.3)
|
113
107
|
capybara (3.35.3)
|
@@ -137,7 +131,7 @@ GEM
|
|
137
131
|
date (3.3.3)
|
138
132
|
delocalize (1.2.0)
|
139
133
|
rails (>= 2)
|
140
|
-
devise (4.9.
|
134
|
+
devise (4.9.3)
|
141
135
|
bcrypt (~> 3.0)
|
142
136
|
orm_adapter (~> 0.1)
|
143
137
|
railties (>= 4.1.0)
|
@@ -202,7 +196,7 @@ GEM
|
|
202
196
|
mini_mime (1.1.5)
|
203
197
|
mini_racer (0.6.3)
|
204
198
|
libv8-node (~> 16.10.0.0)
|
205
|
-
minitest (5.
|
199
|
+
minitest (5.15.0)
|
206
200
|
multi_xml (0.6.0)
|
207
201
|
multipart-post (2.2.3)
|
208
202
|
mysql2 (0.5.5)
|
@@ -216,9 +210,9 @@ GEM
|
|
216
210
|
net-smtp (0.4.0)
|
217
211
|
net-protocol
|
218
212
|
nio4r (2.5.9)
|
219
|
-
nokogiri (1.
|
213
|
+
nokogiri (1.12.5-x86_64-darwin)
|
220
214
|
racc (~> 1.4)
|
221
|
-
nokogiri (1.
|
215
|
+
nokogiri (1.12.5-x86_64-linux)
|
222
216
|
racc (~> 1.4)
|
223
217
|
orm_adapter (0.5.0)
|
224
218
|
poltergeist (1.18.1)
|
@@ -231,51 +225,50 @@ GEM
|
|
231
225
|
pry-byebug (3.9.0)
|
232
226
|
byebug (~> 11.0)
|
233
227
|
pry (~> 0.13.0)
|
234
|
-
psych (5.1.
|
228
|
+
psych (5.1.1.1)
|
235
229
|
stringio
|
236
230
|
public_suffix (4.0.7)
|
237
|
-
racc (1.7.
|
231
|
+
racc (1.7.2)
|
238
232
|
rack (2.2.8)
|
239
233
|
rack-cache (1.14.0)
|
240
234
|
rack (>= 0.4)
|
241
235
|
rack-test (2.1.0)
|
242
236
|
rack (>= 1.3)
|
243
237
|
radius (0.7.5)
|
244
|
-
rails (7.
|
245
|
-
actioncable (= 7.
|
246
|
-
actionmailbox (= 7.
|
247
|
-
actionmailer (= 7.
|
248
|
-
actionpack (= 7.
|
249
|
-
actiontext (= 7.
|
250
|
-
actionview (= 7.
|
251
|
-
activejob (= 7.
|
252
|
-
activemodel (= 7.
|
253
|
-
activerecord (= 7.
|
254
|
-
activestorage (= 7.
|
255
|
-
activesupport (= 7.
|
238
|
+
rails (6.1.7.6)
|
239
|
+
actioncable (= 6.1.7.6)
|
240
|
+
actionmailbox (= 6.1.7.6)
|
241
|
+
actionmailer (= 6.1.7.6)
|
242
|
+
actionpack (= 6.1.7.6)
|
243
|
+
actiontext (= 6.1.7.6)
|
244
|
+
actionview (= 6.1.7.6)
|
245
|
+
activejob (= 6.1.7.6)
|
246
|
+
activemodel (= 6.1.7.6)
|
247
|
+
activerecord (= 6.1.7.6)
|
248
|
+
activestorage (= 6.1.7.6)
|
249
|
+
activesupport (= 6.1.7.6)
|
256
250
|
bundler (>= 1.15.0)
|
257
|
-
railties (= 7.
|
251
|
+
railties (= 6.1.7.6)
|
252
|
+
sprockets-rails (>= 2.0.0)
|
258
253
|
rails-dom-testing (2.2.0)
|
259
254
|
activesupport (>= 5.0.0)
|
260
255
|
minitest
|
261
256
|
nokogiri (>= 1.6)
|
262
|
-
rails-html-sanitizer (1.
|
263
|
-
loofah (~> 2.
|
264
|
-
nokogiri (~> 1.14)
|
257
|
+
rails-html-sanitizer (1.5.0)
|
258
|
+
loofah (~> 2.19, >= 2.19.1)
|
265
259
|
rails-observers (0.1.5)
|
266
260
|
activemodel (>= 4.0)
|
267
|
-
railties (7.
|
268
|
-
actionpack (= 7.
|
269
|
-
activesupport (= 7.
|
261
|
+
railties (6.1.7.6)
|
262
|
+
actionpack (= 6.1.7.6)
|
263
|
+
activesupport (= 6.1.7.6)
|
270
264
|
method_source
|
271
265
|
rake (>= 12.2)
|
272
266
|
thor (~> 1.0)
|
273
|
-
|
274
|
-
rake (13.0.6)
|
267
|
+
rake (13.1.0)
|
275
268
|
rdoc (6.5.0)
|
276
269
|
psych (>= 4.0.0)
|
277
270
|
regexp_parser (2.1.1)
|
278
|
-
responders (3.1.
|
271
|
+
responders (3.1.1)
|
279
272
|
actionpack (>= 5.2)
|
280
273
|
railties (>= 5.2)
|
281
274
|
roadie (4.0.0)
|
@@ -327,7 +320,7 @@ GEM
|
|
327
320
|
activesupport (>= 5.2)
|
328
321
|
sprockets (>= 3.0.0)
|
329
322
|
stringex (2.8.6)
|
330
|
-
stringio (3.0.
|
323
|
+
stringio (3.0.6)
|
331
324
|
temple (0.10.0)
|
332
325
|
terrapin (0.6.0)
|
333
326
|
climate_control (>= 0.0.3, < 1.0)
|
@@ -367,7 +360,7 @@ DEPENDENCIES
|
|
367
360
|
mysql2
|
368
361
|
poltergeist (~> 1.18.1)
|
369
362
|
pry-byebug
|
370
|
-
psych (= 5.1.
|
363
|
+
psych (= 5.1.1.1)
|
371
364
|
rails-observers
|
372
365
|
rspec-rails
|
373
366
|
simplecov
|
@@ -53,11 +53,12 @@ class Admin::AssetsController < Admin::ResourceController
|
|
53
53
|
flash[:error] = error
|
54
54
|
end
|
55
55
|
end
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
end
|
57
|
+
|
58
|
+
if asset_params[:for_attachment]
|
59
|
+
render partial: 'admin/page_attachments/attachment', collection: @page_attachments
|
60
|
+
else
|
61
|
+
response_for :create
|
61
62
|
end
|
62
63
|
end
|
63
64
|
|
data/app/models/user.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
- if current_user.admin? && defined?(Site) && defined?(controller) && controller.sited_model? && controller.template_name == 'index' && Site.several?
|
1
|
+
- if current_user.admin? && !current_user.scoped? && defined?(Site) && defined?(controller) && controller.sited_model? && controller.template_name == 'index' && Site.several?
|
2
2
|
.site_chooser
|
3
3
|
%ul.nav
|
4
4
|
%li
|
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.5
|
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-11-
|
11
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage-validator
|
@@ -1133,51 +1133,51 @@ specification_version: 4
|
|
1133
1133
|
summary: A no-fluff content management system designed for small teams.
|
1134
1134
|
test_files:
|
1135
1135
|
- spec/models/layout_spec.rb
|
1136
|
-
- spec/features/layouts_spec.rb
|
1137
|
-
- spec/features/config_spec.rb
|
1138
|
-
- spec/features/pages_spec.rb
|
1139
|
-
- spec/support/custom_actions.rb
|
1140
|
-
- spec/ci/database.mysql.yml
|
1141
|
-
- spec/controllers/users_controller_spec.rb
|
1142
|
-
- spec/controllers/application_controller_spec.rb
|
1143
1136
|
- spec/rails_helper.rb
|
1144
1137
|
- spec/spec_helper.rb
|
1138
|
+
- spec/controllers/users_controller_spec.rb
|
1139
|
+
- spec/controllers/application_controller_spec.rb
|
1140
|
+
- spec/support/custom_actions.rb
|
1141
|
+
- spec/dummy/db/schema.rb
|
1142
|
+
- spec/dummy/yarn.lock
|
1143
|
+
- spec/dummy/app/assets/config/manifest.js
|
1144
|
+
- spec/dummy/package.json
|
1145
1145
|
- spec/dummy/config.ru
|
1146
|
-
- spec/dummy/config/
|
1147
|
-
- spec/dummy/config/
|
1148
|
-
- spec/dummy/config/initializers/inflections.rb
|
1146
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
1147
|
+
- spec/dummy/config/initializers/assets.rb
|
1149
1148
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
1150
1149
|
- spec/dummy/config/initializers/mime_types.rb
|
1151
1150
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
1152
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
1153
|
-
- spec/dummy/config/initializers/trusty_cms_config.rb
|
1154
1151
|
- spec/dummy/config/initializers/session_store.rb
|
1152
|
+
- spec/dummy/config/initializers/trusty_cms_config.rb
|
1155
1153
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
1156
|
-
- spec/dummy/config/initializers/
|
1157
|
-
- spec/dummy/config/
|
1158
|
-
- spec/dummy/config/environment.rb
|
1159
|
-
- spec/dummy/config/secrets.yml
|
1160
|
-
- spec/dummy/config/environments/development.rb
|
1154
|
+
- spec/dummy/config/initializers/inflections.rb
|
1155
|
+
- spec/dummy/config/application.rb
|
1161
1156
|
- spec/dummy/config/environments/production.rb
|
1157
|
+
- spec/dummy/config/environments/development.rb
|
1162
1158
|
- spec/dummy/config/environments/test.rb
|
1159
|
+
- spec/dummy/config/locales/en.yml
|
1163
1160
|
- spec/dummy/config/database.yml
|
1164
1161
|
- spec/dummy/config/boot.rb
|
1165
|
-
- spec/dummy/
|
1166
|
-
- spec/dummy/
|
1162
|
+
- spec/dummy/config/routes.rb
|
1163
|
+
- spec/dummy/config/environment.rb
|
1164
|
+
- spec/dummy/config/secrets.yml
|
1167
1165
|
- spec/dummy/README.rdoc
|
1168
|
-
- spec/dummy/bin/bundle
|
1169
1166
|
- spec/dummy/bin/rails
|
1167
|
+
- spec/dummy/bin/bundle
|
1170
1168
|
- spec/dummy/bin/setup
|
1171
1169
|
- spec/dummy/bin/rake
|
1172
|
-
- spec/dummy/Rakefile
|
1173
|
-
- spec/dummy/app/assets/config/manifest.js
|
1174
|
-
- spec/dummy/package.json
|
1175
1170
|
- spec/dummy/public/favicon.ico
|
1176
|
-
- spec/dummy/public/500.html
|
1177
1171
|
- spec/dummy/public/404.html
|
1178
1172
|
- spec/dummy/public/422.html
|
1173
|
+
- spec/dummy/public/500.html
|
1174
|
+
- spec/dummy/Rakefile
|
1175
|
+
- spec/fixtures/users.yml
|
1179
1176
|
- spec/factories/page.rb
|
1180
|
-
- spec/factories/user.rb
|
1181
|
-
- spec/factories/layout.rb
|
1182
1177
|
- spec/factories/page_part.rb
|
1183
|
-
- spec/
|
1178
|
+
- spec/factories/layout.rb
|
1179
|
+
- spec/factories/user.rb
|
1180
|
+
- spec/features/pages_spec.rb
|
1181
|
+
- spec/features/config_spec.rb
|
1182
|
+
- spec/features/layouts_spec.rb
|
1183
|
+
- spec/ci/database.mysql.yml
|