trusty-cms 7.0.33 → 7.0.35
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 +116 -92
- data/README.md +15 -0
- data/app/models/page.rb +16 -2
- data/app/models/standard_tags.rb +1 -1
- data/app/models/status.rb +1 -0
- data/config/application.rb +0 -2
- data/config/locales/en_available_tags.yml +1 -1
- data/lib/generators/extension/templates/test_helper.rb +1 -1
- data/lib/generators/language_extension/templates/available_tags.yml +1 -1
- data/lib/tasks/database.rake +7 -4
- data/lib/trusty_cms/version.rb +1 -1
- data/spec/dummy/config/application.rb +0 -2
- data/spec/dummy/config/boot.rb +0 -1
- data/spec/rails_helper.rb +1 -1
- data/trusty_cms.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ca244b4507317a42d9515312799e54a50b4bd0eb38cfb9d23f1721a0e87ce8e
|
4
|
+
data.tar.gz: 8a6facfa1efe892c29dc8ffcc4ffa05c1ac355f3b296aa14bba44192bf0a6311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97b54ea35702c9215033f022d004907b285fe8ac3ebb3708cad3cb368091bdda41fd54c67c8f155d02d5ab87f72cc50c104f59b5de43052ca068913df43dacf0
|
7
|
+
data.tar.gz: f5d54ede3730f8e4e6cdd4be4190913a7c639ebebd55f2d937d4823e97ce1dd062d2a370017f7e456d15e4609f534d55efd62be71db6ceb617c4d89da7141406
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-cms (7.0.
|
4
|
+
trusty-cms (7.0.35)
|
5
5
|
RedCloth (= 4.3.3)
|
6
6
|
activestorage-validator
|
7
7
|
acts_as_list (>= 0.9.5, < 1.3.0)
|
@@ -29,7 +29,7 @@ PATH
|
|
29
29
|
rack (>= 2.0.1, < 3.2.0)
|
30
30
|
rack-cache (~> 1.7)
|
31
31
|
radius (~> 0.7)
|
32
|
-
rails (~> 7.
|
32
|
+
rails (~> 7.2.2.1)
|
33
33
|
rake (< 14.0)
|
34
34
|
ransack (~> 4.2.1)
|
35
35
|
rdoc (>= 5.1, < 7.0)
|
@@ -46,73 +46,79 @@ GEM
|
|
46
46
|
remote: https://rubygems.org/
|
47
47
|
specs:
|
48
48
|
RedCloth (4.3.3)
|
49
|
-
actioncable (7.
|
50
|
-
actionpack (= 7.
|
51
|
-
activesupport (= 7.
|
49
|
+
actioncable (7.2.2.1)
|
50
|
+
actionpack (= 7.2.2.1)
|
51
|
+
activesupport (= 7.2.2.1)
|
52
52
|
nio4r (~> 2.0)
|
53
53
|
websocket-driver (>= 0.6.1)
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
activesupport (= 7.0.8.7)
|
77
|
-
rack (~> 2.0, >= 2.2.4)
|
54
|
+
zeitwerk (~> 2.6)
|
55
|
+
actionmailbox (7.2.2.1)
|
56
|
+
actionpack (= 7.2.2.1)
|
57
|
+
activejob (= 7.2.2.1)
|
58
|
+
activerecord (= 7.2.2.1)
|
59
|
+
activestorage (= 7.2.2.1)
|
60
|
+
activesupport (= 7.2.2.1)
|
61
|
+
mail (>= 2.8.0)
|
62
|
+
actionmailer (7.2.2.1)
|
63
|
+
actionpack (= 7.2.2.1)
|
64
|
+
actionview (= 7.2.2.1)
|
65
|
+
activejob (= 7.2.2.1)
|
66
|
+
activesupport (= 7.2.2.1)
|
67
|
+
mail (>= 2.8.0)
|
68
|
+
rails-dom-testing (~> 2.2)
|
69
|
+
actionpack (7.2.2.1)
|
70
|
+
actionview (= 7.2.2.1)
|
71
|
+
activesupport (= 7.2.2.1)
|
72
|
+
nokogiri (>= 1.8.5)
|
73
|
+
racc
|
74
|
+
rack (>= 2.2.4, < 3.2)
|
75
|
+
rack-session (>= 1.0.1)
|
78
76
|
rack-test (>= 0.6.3)
|
79
|
-
rails-dom-testing (~> 2.
|
80
|
-
rails-html-sanitizer (~> 1.
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
77
|
+
rails-dom-testing (~> 2.2)
|
78
|
+
rails-html-sanitizer (~> 1.6)
|
79
|
+
useragent (~> 0.16)
|
80
|
+
actiontext (7.2.2.1)
|
81
|
+
actionpack (= 7.2.2.1)
|
82
|
+
activerecord (= 7.2.2.1)
|
83
|
+
activestorage (= 7.2.2.1)
|
84
|
+
activesupport (= 7.2.2.1)
|
86
85
|
globalid (>= 0.6.0)
|
87
86
|
nokogiri (>= 1.8.5)
|
88
|
-
actionview (7.
|
89
|
-
activesupport (= 7.
|
87
|
+
actionview (7.2.2.1)
|
88
|
+
activesupport (= 7.2.2.1)
|
90
89
|
builder (~> 3.1)
|
91
|
-
erubi (~> 1.
|
92
|
-
rails-dom-testing (~> 2.
|
93
|
-
rails-html-sanitizer (~> 1.
|
94
|
-
activejob (7.
|
95
|
-
activesupport (= 7.
|
90
|
+
erubi (~> 1.11)
|
91
|
+
rails-dom-testing (~> 2.2)
|
92
|
+
rails-html-sanitizer (~> 1.6)
|
93
|
+
activejob (7.2.2.1)
|
94
|
+
activesupport (= 7.2.2.1)
|
96
95
|
globalid (>= 0.3.6)
|
97
|
-
activemodel (7.
|
98
|
-
activesupport (= 7.
|
99
|
-
activerecord (7.
|
100
|
-
activemodel (= 7.
|
101
|
-
activesupport (= 7.
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
96
|
+
activemodel (7.2.2.1)
|
97
|
+
activesupport (= 7.2.2.1)
|
98
|
+
activerecord (7.2.2.1)
|
99
|
+
activemodel (= 7.2.2.1)
|
100
|
+
activesupport (= 7.2.2.1)
|
101
|
+
timeout (>= 0.4.0)
|
102
|
+
activestorage (7.2.2.1)
|
103
|
+
actionpack (= 7.2.2.1)
|
104
|
+
activejob (= 7.2.2.1)
|
105
|
+
activerecord (= 7.2.2.1)
|
106
|
+
activesupport (= 7.2.2.1)
|
107
107
|
marcel (~> 1.0)
|
108
|
-
mini_mime (>= 1.1.0)
|
109
108
|
activestorage-validator (0.4.0)
|
110
109
|
rails (>= 6.1.0)
|
111
|
-
activesupport (7.
|
112
|
-
|
110
|
+
activesupport (7.2.2.1)
|
111
|
+
base64
|
112
|
+
benchmark (>= 0.3)
|
113
|
+
bigdecimal
|
114
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
115
|
+
connection_pool (>= 2.2.5)
|
116
|
+
drb
|
113
117
|
i18n (>= 1.6, < 2)
|
118
|
+
logger (>= 1.4.2)
|
114
119
|
minitest (>= 5.1)
|
115
|
-
|
120
|
+
securerandom (>= 0.3)
|
121
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
116
122
|
acts_as_list (1.2.4)
|
117
123
|
activerecord (>= 6.1)
|
118
124
|
activesupport (>= 6.1)
|
@@ -122,6 +128,7 @@ GEM
|
|
122
128
|
public_suffix (>= 2.0.2, < 7.0)
|
123
129
|
base64 (0.2.0)
|
124
130
|
bcrypt (3.1.20)
|
131
|
+
benchmark (0.4.1)
|
125
132
|
bigdecimal (3.1.9)
|
126
133
|
builder (3.3.0)
|
127
134
|
byebug (11.1.3)
|
@@ -143,7 +150,8 @@ GEM
|
|
143
150
|
climate_control (1.2.0)
|
144
151
|
cliver (0.3.2)
|
145
152
|
coderay (1.1.3)
|
146
|
-
concurrent-ruby (1.3.
|
153
|
+
concurrent-ruby (1.3.5)
|
154
|
+
connection_pool (2.5.3)
|
147
155
|
crass (1.0.6)
|
148
156
|
css_parser (1.19.1)
|
149
157
|
addressable
|
@@ -154,7 +162,7 @@ GEM
|
|
154
162
|
activerecord (>= 5.a)
|
155
163
|
database_cleaner-core (~> 2.0.0)
|
156
164
|
database_cleaner-core (2.0.1)
|
157
|
-
date (3.4.
|
165
|
+
date (3.4.1)
|
158
166
|
delocalize (1.2.0)
|
159
167
|
rails (>= 2)
|
160
168
|
devise (4.9.4)
|
@@ -172,7 +180,7 @@ GEM
|
|
172
180
|
diffy (3.4.4)
|
173
181
|
docile (1.4.1)
|
174
182
|
drb (2.2.1)
|
175
|
-
erubi (1.13.
|
183
|
+
erubi (1.13.1)
|
176
184
|
execjs (2.10.0)
|
177
185
|
factory_bot (6.5.0)
|
178
186
|
activesupport (>= 5.0.0)
|
@@ -208,12 +216,16 @@ GEM
|
|
208
216
|
csv
|
209
217
|
mini_mime (>= 1.0.0)
|
210
218
|
multi_xml (>= 0.5.2)
|
211
|
-
i18n (1.14.
|
219
|
+
i18n (1.14.7)
|
212
220
|
concurrent-ruby (~> 1.0)
|
213
221
|
image_processing (1.13.0)
|
214
222
|
mini_magick (>= 4.9.5, < 5)
|
215
223
|
ruby-vips (>= 2.0.17, < 3)
|
216
224
|
io-console (0.7.2)
|
225
|
+
irb (1.15.2)
|
226
|
+
pp (>= 0.6.0)
|
227
|
+
rdoc (>= 4.0.0)
|
228
|
+
reline (>= 0.4.2)
|
217
229
|
json (2.8.1)
|
218
230
|
kraken-io (0.1.3)
|
219
231
|
activesupport
|
@@ -231,7 +243,7 @@ GEM
|
|
231
243
|
libv8-node (18.19.0.0-x86_64-linux)
|
232
244
|
libv8-node (18.19.0.0-x86_64-linux-musl)
|
233
245
|
logger (1.6.1)
|
234
|
-
loofah (2.
|
246
|
+
loofah (2.24.1)
|
235
247
|
crass (~> 1.0.2)
|
236
248
|
nokogiri (>= 1.12.0)
|
237
249
|
mail (2.8.1)
|
@@ -251,22 +263,22 @@ GEM
|
|
251
263
|
mini_portile2 (2.8.9)
|
252
264
|
mini_racer (0.16.0)
|
253
265
|
libv8-node (~> 18.19.0.0)
|
254
|
-
minitest (5.25.
|
266
|
+
minitest (5.25.5)
|
255
267
|
multi_xml (0.7.1)
|
256
268
|
bigdecimal (~> 3.1)
|
257
269
|
multipart-post (2.4.1)
|
258
270
|
mutex_m (0.3.0)
|
259
271
|
mysql2 (0.5.6)
|
260
|
-
net-imap (0.5.
|
272
|
+
net-imap (0.5.9)
|
261
273
|
date
|
262
274
|
net-protocol
|
263
275
|
net-pop (0.1.2)
|
264
276
|
net-protocol
|
265
277
|
net-protocol (0.2.2)
|
266
278
|
timeout
|
267
|
-
net-smtp (0.5.
|
279
|
+
net-smtp (0.5.1)
|
268
280
|
net-protocol
|
269
|
-
nio4r (2.7.
|
281
|
+
nio4r (2.7.4)
|
270
282
|
nokogiri (1.18.8)
|
271
283
|
mini_portile2 (~> 2.8.2)
|
272
284
|
racc (~> 1.4)
|
@@ -296,6 +308,9 @@ GEM
|
|
296
308
|
capybara (>= 2.1, < 4)
|
297
309
|
cliver (~> 0.3.1)
|
298
310
|
websocket-driver (>= 0.2.0)
|
311
|
+
pp (0.6.2)
|
312
|
+
prettyprint
|
313
|
+
prettyprint (0.2.0)
|
299
314
|
pry (0.14.2)
|
300
315
|
coderay (~> 1.1)
|
301
316
|
method_source (~> 1.0)
|
@@ -307,27 +322,32 @@ GEM
|
|
307
322
|
stringio
|
308
323
|
public_suffix (6.0.1)
|
309
324
|
racc (1.8.1)
|
310
|
-
rack (
|
325
|
+
rack (3.1.16)
|
311
326
|
rack-cache (1.17.0)
|
312
327
|
rack (>= 0.4)
|
313
|
-
rack-
|
328
|
+
rack-session (2.1.1)
|
329
|
+
base64 (>= 0.1.0)
|
330
|
+
rack (>= 3.0.0)
|
331
|
+
rack-test (2.2.0)
|
314
332
|
rack (>= 1.3)
|
333
|
+
rackup (2.2.1)
|
334
|
+
rack (>= 3)
|
315
335
|
radius (0.8.0)
|
316
|
-
rails (7.
|
317
|
-
actioncable (= 7.
|
318
|
-
actionmailbox (= 7.
|
319
|
-
actionmailer (= 7.
|
320
|
-
actionpack (= 7.
|
321
|
-
actiontext (= 7.
|
322
|
-
actionview (= 7.
|
323
|
-
activejob (= 7.
|
324
|
-
activemodel (= 7.
|
325
|
-
activerecord (= 7.
|
326
|
-
activestorage (= 7.
|
327
|
-
activesupport (= 7.
|
336
|
+
rails (7.2.2.1)
|
337
|
+
actioncable (= 7.2.2.1)
|
338
|
+
actionmailbox (= 7.2.2.1)
|
339
|
+
actionmailer (= 7.2.2.1)
|
340
|
+
actionpack (= 7.2.2.1)
|
341
|
+
actiontext (= 7.2.2.1)
|
342
|
+
actionview (= 7.2.2.1)
|
343
|
+
activejob (= 7.2.2.1)
|
344
|
+
activemodel (= 7.2.2.1)
|
345
|
+
activerecord (= 7.2.2.1)
|
346
|
+
activestorage (= 7.2.2.1)
|
347
|
+
activesupport (= 7.2.2.1)
|
328
348
|
bundler (>= 1.15.0)
|
329
|
-
railties (= 7.
|
330
|
-
rails-dom-testing (2.
|
349
|
+
railties (= 7.2.2.1)
|
350
|
+
rails-dom-testing (2.3.0)
|
331
351
|
activesupport (>= 5.0.0)
|
332
352
|
minitest
|
333
353
|
nokogiri (>= 1.6)
|
@@ -336,14 +356,15 @@ GEM
|
|
336
356
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
337
357
|
rails-observers (0.1.5)
|
338
358
|
activemodel (>= 4.0)
|
339
|
-
railties (7.
|
340
|
-
actionpack (= 7.
|
341
|
-
activesupport (= 7.
|
342
|
-
|
359
|
+
railties (7.2.2.1)
|
360
|
+
actionpack (= 7.2.2.1)
|
361
|
+
activesupport (= 7.2.2.1)
|
362
|
+
irb (~> 1.13)
|
363
|
+
rackup (>= 1.0.0)
|
343
364
|
rake (>= 12.2)
|
344
|
-
thor (~> 1.0)
|
345
|
-
zeitwerk (~> 2.
|
346
|
-
rake (13.
|
365
|
+
thor (~> 1.0, >= 1.2.2)
|
366
|
+
zeitwerk (~> 2.6)
|
367
|
+
rake (13.3.0)
|
347
368
|
ransack (4.2.1)
|
348
369
|
activerecord (>= 6.1.5)
|
349
370
|
activesupport (>= 6.1.5)
|
@@ -399,6 +420,7 @@ GEM
|
|
399
420
|
sprockets (> 3.0)
|
400
421
|
sprockets-rails
|
401
422
|
tilt
|
423
|
+
securerandom (0.4.1)
|
402
424
|
simplecov (0.22.0)
|
403
425
|
docile (~> 1.1)
|
404
426
|
simplecov-html (~> 0.11)
|
@@ -420,7 +442,7 @@ GEM
|
|
420
442
|
climate_control
|
421
443
|
thor (1.3.2)
|
422
444
|
tilt (2.4.0)
|
423
|
-
timeout (0.4.
|
445
|
+
timeout (0.4.3)
|
424
446
|
trustygems (0.2.1)
|
425
447
|
rake
|
426
448
|
tzinfo (2.0.6)
|
@@ -428,15 +450,17 @@ GEM
|
|
428
450
|
uglifier (4.2.1)
|
429
451
|
execjs (>= 0.3.0, < 3)
|
430
452
|
uri (1.0.2)
|
453
|
+
useragent (0.16.11)
|
431
454
|
warden (1.2.9)
|
432
455
|
rack (>= 2.0.9)
|
433
|
-
websocket-driver (0.
|
456
|
+
websocket-driver (0.8.0)
|
457
|
+
base64
|
434
458
|
websocket-extensions (>= 0.1.0)
|
435
459
|
websocket-extensions (0.1.5)
|
436
460
|
will_paginate (4.0.1)
|
437
461
|
xpath (3.2.0)
|
438
462
|
nokogiri (~> 1.8)
|
439
|
-
zeitwerk (2.
|
463
|
+
zeitwerk (2.7.3)
|
440
464
|
|
441
465
|
PLATFORMS
|
442
466
|
aarch64-linux
|
data/README.md
CHANGED
@@ -76,6 +76,21 @@ Steps:
|
|
76
76
|
|
77
77
|
rspec
|
78
78
|
|
79
|
+
### Hidden Page Status Configuration
|
80
|
+
In version `7.0.34`, TrustyCMS introduces support for custom behavior when a page is marked as **Hidden**.
|
81
|
+
|
82
|
+
While TrustyCMS does not include built-in fields for excluding hidden pages from calendars or search, parent applications can define this behavior using the `on_hidden_callback` configuration option.
|
83
|
+
|
84
|
+
To define what should happen when a page is set to Hidden, configure the callback in your initializer (e.g., `config/initializers/trusty_cms_config.rb`):
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
TrustyCms::Application.config.on_hidden_callback = ->(page) do
|
88
|
+
page.display_on_calendar = false
|
89
|
+
page.hide_from_subnav = true
|
90
|
+
page.indexable = false
|
91
|
+
end
|
92
|
+
```
|
93
|
+
|
79
94
|
### Preview Custom Page Types
|
80
95
|
|
81
96
|
TrustyCMS supports a preview feature for standard page types. However, this functionality may not work out of the box for custom page types. To enable the preview feature for your custom page types, follow these steps:
|
data/app/models/page.rb
CHANGED
@@ -8,7 +8,10 @@ class Page < ActiveRecord::Base
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# Callbacks
|
11
|
-
before_save :update_virtual,
|
11
|
+
before_save :update_virtual,
|
12
|
+
:update_published_datetime,
|
13
|
+
:set_allowed_children_cache,
|
14
|
+
:handle_hidden_status
|
12
15
|
|
13
16
|
# Associations
|
14
17
|
acts_as_tree order: 'position ASC'
|
@@ -107,6 +110,10 @@ class Page < ActiveRecord::Base
|
|
107
110
|
status == Status[:published]
|
108
111
|
end
|
109
112
|
|
113
|
+
def hidden?
|
114
|
+
status == Status[:hidden]
|
115
|
+
end
|
116
|
+
|
110
117
|
def scheduled?
|
111
118
|
status == Status[:scheduled]
|
112
119
|
end
|
@@ -205,7 +212,7 @@ class Page < ActiveRecord::Base
|
|
205
212
|
|
206
213
|
path = clean_path(path) if clean
|
207
214
|
my_path = self.path
|
208
|
-
if (my_path == path) && (published? || can_view_drafts)
|
215
|
+
if (my_path == path) && (published? || hidden? || can_view_drafts)
|
209
216
|
return self
|
210
217
|
elsif path =~ /^#{Regexp.quote(my_path)}([^\/]*)/
|
211
218
|
slug_child = children.find_by_slug($1)
|
@@ -245,6 +252,13 @@ class Page < ActiveRecord::Base
|
|
245
252
|
self.allowed_children_cache = allowed_children_lookup.collect(&:name).join(',')
|
246
253
|
end
|
247
254
|
|
255
|
+
def handle_hidden_status
|
256
|
+
return unless status_id == Status[:hidden].id
|
257
|
+
return unless TrustyCms::Application.config.on_hidden_callback
|
258
|
+
|
259
|
+
TrustyCms::Application.config.on_hidden_callback.call(self)
|
260
|
+
end
|
261
|
+
|
248
262
|
class << self
|
249
263
|
def root
|
250
264
|
find_by_parent_id(nil)
|
data/app/models/standard_tags.rb
CHANGED
@@ -103,7 +103,7 @@ module StandardTags
|
|
103
103
|
<pre><code><r:children:each [offset="number"] [limit="number"]
|
104
104
|
[by="published_at|updated_at|created_at|slug|title|keywords|description"]
|
105
105
|
[order="asc|desc"]
|
106
|
-
[status="draft|reviewed|scheduled|published|all"]
|
106
|
+
[status="draft|reviewed|scheduled|published|hidden|all"]
|
107
107
|
[paginated="true"]
|
108
108
|
[per_page="number"]
|
109
109
|
>
|
data/app/models/status.rb
CHANGED
data/config/application.rb
CHANGED
@@ -20,7 +20,6 @@ module TrustyCms
|
|
20
20
|
Rails.autoloaders.log!
|
21
21
|
# Enable the asset pipeline
|
22
22
|
config.assets.enabled = true
|
23
|
-
config.active_record.legacy_connection_handling = false
|
24
23
|
|
25
24
|
# Version of your assets, change this if you want to expire all your assets
|
26
25
|
config.assets.version = '1.0'
|
@@ -68,7 +67,6 @@ module TrustyCms
|
|
68
67
|
|
69
68
|
# Make Active Record use UTC-base instead of local time
|
70
69
|
config.time_zone = 'UTC'
|
71
|
-
config.legacy_connection_handling = false
|
72
70
|
# Set the default field error proc
|
73
71
|
config.action_view.field_error_proc = Proc.new do |html, instance|
|
74
72
|
if html !~ /label/
|
@@ -141,7 +141,7 @@ en:
|
|
141
141
|
<pre><code><r:children:each [offset=\"number\"] [limit=\"number\"]
|
142
142
|
[by=\"published_at|updated_at|created_at|slug|title|keywords|description\"]
|
143
143
|
[order=\"asc|desc\"]
|
144
|
-
[status=\"draft|reviewed|scheduled|published|all\"]
|
144
|
+
[status=\"draft|reviewed|scheduled|published|hidden|all\"]
|
145
145
|
[paginated=\"true\"]
|
146
146
|
[per_page=\"number\"]
|
147
147
|
>
|
@@ -18,7 +18,7 @@ class ActiveSupport::TestCase
|
|
18
18
|
test_helper :extension_tags
|
19
19
|
|
20
20
|
# Add the fixture directory to the fixture path
|
21
|
-
self.
|
21
|
+
self.fixture_paths << File.expand_path('fixtures', __dir__)
|
22
22
|
|
23
23
|
# Add more helper methods to be used by all extension tests here...
|
24
24
|
end
|
@@ -107,7 +107,7 @@
|
|
107
107
|
|
108
108
|
<pre><code><r:children:each [offset="number"] [limit="number"]
|
109
109
|
[by="published_at|updated_at|created_at|slug|title|keywords|description"]
|
110
|
-
[order="asc|desc"] [status="draft|reviewed|scheduled|published|all"]>
|
110
|
+
[order="asc|desc"] [status="draft|reviewed|scheduled|published|hidden|all"]>
|
111
111
|
...
|
112
112
|
</r:children:each>
|
113
113
|
</code></pre>
|
data/lib/tasks/database.rake
CHANGED
@@ -46,7 +46,7 @@ namespace :db do
|
|
46
46
|
# that's not a setup anyone would recommend.
|
47
47
|
#
|
48
48
|
ActiveRecord::Base.connection.tables.each do |table|
|
49
|
-
ActiveRecord::Migration[
|
49
|
+
ActiveRecord::Migration[7.0].drop_table table
|
50
50
|
end
|
51
51
|
Rake::Task['db:migrate'].invoke
|
52
52
|
else
|
@@ -80,14 +80,17 @@ To add more extensions just add them to your Gemfile and run `bundle install`.
|
|
80
80
|
|
81
81
|
desc 'Migrate the database through all available migration scripts (looks for db/migrate/* in trusty-cms, in extensions and in your site) and update db/schema.rb by invoking db:schema:dump. Turn off output with VERBOSE=false.'
|
82
82
|
task migrate: [:environment, 'db:migrate:trusty_cms', 'db:migrate:extensions'] do
|
83
|
-
ActiveRecord::Migration[
|
84
|
-
|
83
|
+
ActiveRecord::Migration[7.0].verbose = ENV['VERBOSE'] ? ENV['VERBOSE'] == 'true' : true
|
84
|
+
|
85
|
+
if Rails.application.config.active_record.schema_format == :ruby
|
86
|
+
Rake::Task['db:schema:dump'].invoke
|
87
|
+
end
|
85
88
|
end
|
86
89
|
|
87
90
|
namespace :migrate do
|
88
91
|
desc 'Migrates the database through steps defined in the core trusty-cms distribution. Usual db:migrate options can apply.'
|
89
92
|
task trusty_cms: :environment do
|
90
|
-
ActiveRecord::Migration[
|
93
|
+
ActiveRecord::Migration[7.0].verbose = ENV['VERBOSE'] ? ENV['VERBOSE'] == 'true' : true
|
91
94
|
Rake::Task['db:migrate'].invoke
|
92
95
|
end
|
93
96
|
end
|
data/lib/trusty_cms/version.rb
CHANGED
@@ -24,14 +24,12 @@ end
|
|
24
24
|
module TrustyCms
|
25
25
|
class Application < Rails::Application
|
26
26
|
include TrustyCms::Initializer
|
27
|
-
config.legacy_connection_handling = false
|
28
27
|
config.autoload_paths += %W(#{TRUSTY_CMS_ROOT}/lib)
|
29
28
|
config.autoload_paths += %W(#{config.root}/lib)
|
30
29
|
config.autoload_paths += %W(#{config.root}/app/helpers)
|
31
30
|
|
32
31
|
# Initialize extension paths
|
33
32
|
config.initialize_extension_paths
|
34
|
-
config.active_record.legacy_connection_handling = false
|
35
33
|
|
36
34
|
extension_loader = ExtensionLoader.instance { |l| l.initializer = self }
|
37
35
|
extension_loader.paths(:load).reverse_each do |path, value|
|
data/spec/dummy/config/boot.rb
CHANGED
data/spec/rails_helper.rb
CHANGED
@@ -24,7 +24,7 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
24
24
|
|
25
25
|
RSpec.configure do |config|
|
26
26
|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
27
|
-
config.
|
27
|
+
config.fixture_paths = ["#{::TRUSTY_CMS_ROOT}/spec/fixtures"]
|
28
28
|
|
29
29
|
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
30
30
|
# examples within a transaction, remove the following line or assign false
|
data/trusty_cms.gemspec
CHANGED
@@ -51,7 +51,7 @@ a general purpose content management system--not merely a blogging engine.'
|
|
51
51
|
s.add_dependency 'rack', '>= 2.0.1', '< 3.2.0'
|
52
52
|
s.add_dependency 'rack-cache', '~> 1.7'
|
53
53
|
s.add_dependency 'radius', '~> 0.7'
|
54
|
-
s.add_dependency 'rails', '~> 7.
|
54
|
+
s.add_dependency 'rails', '~> 7.2.2.1'
|
55
55
|
s.add_dependency 'rake', '< 14.0'
|
56
56
|
s.add_dependency 'ransack', '~> 4.2.1'
|
57
57
|
s.add_dependency 'rdoc', '>= 5.1', '< 7.0'
|
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: 7.0.
|
4
|
+
version: 7.0.35
|
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: 2025-
|
11
|
+
date: 2025-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage-validator
|
@@ -416,14 +416,14 @@ dependencies:
|
|
416
416
|
requirements:
|
417
417
|
- - "~>"
|
418
418
|
- !ruby/object:Gem::Version
|
419
|
-
version: 7.
|
419
|
+
version: 7.2.2.1
|
420
420
|
type: :runtime
|
421
421
|
prerelease: false
|
422
422
|
version_requirements: !ruby/object:Gem::Requirement
|
423
423
|
requirements:
|
424
424
|
- - "~>"
|
425
425
|
- !ruby/object:Gem::Version
|
426
|
-
version: 7.
|
426
|
+
version: 7.2.2.1
|
427
427
|
- !ruby/object:Gem::Dependency
|
428
428
|
name: rake
|
429
429
|
requirement: !ruby/object:Gem::Requirement
|