trusty-cms 5.5.1 → 5.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +88 -88
  4. data/app/controllers/admin/resource_controller.rb +0 -5
  5. data/app/models/page.rb +0 -7
  6. data/app/models/standard_tags.rb +3 -6
  7. data/config/initializers/trusty_cms_config.rb +80 -79
  8. data/lib/generators/language_extension/templates/available_tags.yml +0 -16
  9. data/lib/trusty_cms.rb +1 -1
  10. data/package.json +2 -2
  11. data/spec/dummy/package.json +2 -2
  12. data/spec/dummy/yarn.lock +8 -9
  13. data/trusty_cms.gemspec +2 -2
  14. data/yarn.lock +16 -18
  15. metadata +35 -59
  16. data/app/assets/images/admin/c_icon.png +0 -0
  17. data/app/assets/images/admin/css_icon.png +0 -0
  18. data/app/assets/images/admin/database_icon.png +0 -0
  19. data/app/assets/images/admin/flash_icon.png +0 -0
  20. data/app/assets/images/admin/flash_thumbnail.png +0 -0
  21. data/app/assets/images/admin/font_icon.png +0 -0
  22. data/app/assets/images/admin/gzip_icon.png +0 -0
  23. data/app/assets/images/admin/html_icon.png +0 -0
  24. data/app/assets/images/admin/image_icon.png +0 -0
  25. data/app/assets/images/admin/java_icon.png +0 -0
  26. data/app/assets/images/admin/perl_icon.png +0 -0
  27. data/app/assets/images/admin/php_icon.png +0 -0
  28. data/app/assets/images/admin/presentation_icon.png +0 -0
  29. data/app/assets/images/admin/python_icon.png +0 -0
  30. data/app/assets/images/admin/ruby_icon.png +0 -0
  31. data/app/assets/images/admin/script_icon.png +0 -0
  32. data/app/assets/images/admin/spreadsheet_icon.png +0 -0
  33. data/app/assets/images/admin/tar_icon.png +0 -0
  34. data/app/assets/images/admin/xml_icon.png +0 -0
  35. data/app/assets/images/admin/zip_icon.png +0 -0
  36. data/app/assets/images/radiant/radiant-badge-color.png +0 -0
  37. data/app/models/deprecated_tags.rb +0 -13
  38. data/app/models/legacy_user.rb +0 -6
  39. data/lib/tasks/upgrade_to_devise.rake +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1fe00a8e1fbde680ce99052e154774972e5bedaa0770e2b2aa12fb19771f642
4
- data.tar.gz: 70ba4a618e0a4c576879c67aecebbda1d00f4a21c07138709e2320a6f7d1c361
3
+ metadata.gz: 8a0b63218f1b13cd9e62d0e9dd511832ce0b183b12dce7f448ae930a8f85aa37
4
+ data.tar.gz: 33a0c7bd22e54fb7d1b67faf6055fef788a1b99094b02a91898737f4012c05d1
5
5
  SHA512:
6
- metadata.gz: aed01177b5e39f78c398e24c8105d785325df410d8e272788097705cbcd02599d9a7246c14df3010d94ad1ab2ef293d83e7c292349ed19cd72e02970c7333bc9
7
- data.tar.gz: c4fa21d06a553b7eaf9dd8a4d20798466986fa0b9d41ee698f89d8b37c390645df33a5a87500487be3b29ffa3a0402cba774a12cafda0203eebacdb4e81f3b0e
6
+ metadata.gz: 626ce80ae15fe6a50ec19ea7f4e05897383ad8d3f2718bd97ffebc3ced51164d458d04ba857ce2a1b1e21e447c2ab270355f8e515e9586507222c11c82480803
7
+ data.tar.gz: 987ec216728bfa971e3fedca17b9672db471ff324472dfac87f1eb84ff27abe60ef2875f4123dde74f1c5ee586aa2bfdf0a50a8513d023b4cc842001117619a3
data/Gemfile CHANGED
@@ -21,7 +21,7 @@ group :development, :test do
21
21
  gem 'mysql2'
22
22
  gem 'poltergeist', '~> 1.18.1'
23
23
  gem 'pry-byebug'
24
- gem 'psych', '4.0.4'
24
+ gem 'psych', '5.0.2'
25
25
  gem 'rails-observers'
26
26
  gem 'rspec-rails'
27
27
  gem 'simplecov'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (5.5)
4
+ trusty-cms (5.5.6)
5
5
  RedCloth (= 4.3.2)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.1.0)
@@ -12,12 +12,12 @@ PATH
12
12
  execjs (~> 2.7)
13
13
  haml (~> 5.2.2)
14
14
  haml-rails (~> 2.0)
15
- highline (>= 1.7.8, < 2.1.0)
15
+ highline (>= 1.7.8, < 2.2.0)
16
16
  image_processing
17
17
  kraken-io
18
18
  mini_racer
19
19
  mysql2
20
- rack (>= 2.0.1, < 2.3.0)
20
+ rack (>= 2.0.1, < 3.1.0)
21
21
  rack-cache (~> 1.7)
22
22
  radius (~> 0.7)
23
23
  rails
@@ -35,62 +35,62 @@ GEM
35
35
  remote: https://rubygems.org/
36
36
  specs:
37
37
  RedCloth (4.3.2)
38
- actioncable (6.1.7)
39
- actionpack (= 6.1.7)
40
- activesupport (= 6.1.7)
38
+ actioncable (6.1.7.1)
39
+ actionpack (= 6.1.7.1)
40
+ activesupport (= 6.1.7.1)
41
41
  nio4r (~> 2.0)
42
42
  websocket-driver (>= 0.6.1)
43
- actionmailbox (6.1.7)
44
- actionpack (= 6.1.7)
45
- activejob (= 6.1.7)
46
- activerecord (= 6.1.7)
47
- activestorage (= 6.1.7)
48
- activesupport (= 6.1.7)
43
+ actionmailbox (6.1.7.1)
44
+ actionpack (= 6.1.7.1)
45
+ activejob (= 6.1.7.1)
46
+ activerecord (= 6.1.7.1)
47
+ activestorage (= 6.1.7.1)
48
+ activesupport (= 6.1.7.1)
49
49
  mail (>= 2.7.1)
50
- actionmailer (6.1.7)
51
- actionpack (= 6.1.7)
52
- actionview (= 6.1.7)
53
- activejob (= 6.1.7)
54
- activesupport (= 6.1.7)
50
+ actionmailer (6.1.7.1)
51
+ actionpack (= 6.1.7.1)
52
+ actionview (= 6.1.7.1)
53
+ activejob (= 6.1.7.1)
54
+ activesupport (= 6.1.7.1)
55
55
  mail (~> 2.5, >= 2.5.4)
56
56
  rails-dom-testing (~> 2.0)
57
- actionpack (6.1.7)
58
- actionview (= 6.1.7)
59
- activesupport (= 6.1.7)
57
+ actionpack (6.1.7.1)
58
+ actionview (= 6.1.7.1)
59
+ activesupport (= 6.1.7.1)
60
60
  rack (~> 2.0, >= 2.0.9)
61
61
  rack-test (>= 0.6.3)
62
62
  rails-dom-testing (~> 2.0)
63
63
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
64
- actiontext (6.1.7)
65
- actionpack (= 6.1.7)
66
- activerecord (= 6.1.7)
67
- activestorage (= 6.1.7)
68
- activesupport (= 6.1.7)
64
+ actiontext (6.1.7.1)
65
+ actionpack (= 6.1.7.1)
66
+ activerecord (= 6.1.7.1)
67
+ activestorage (= 6.1.7.1)
68
+ activesupport (= 6.1.7.1)
69
69
  nokogiri (>= 1.8.5)
70
- actionview (6.1.7)
71
- activesupport (= 6.1.7)
70
+ actionview (6.1.7.1)
71
+ activesupport (= 6.1.7.1)
72
72
  builder (~> 3.1)
73
73
  erubi (~> 1.4)
74
74
  rails-dom-testing (~> 2.0)
75
75
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
76
- activejob (6.1.7)
77
- activesupport (= 6.1.7)
76
+ activejob (6.1.7.1)
77
+ activesupport (= 6.1.7.1)
78
78
  globalid (>= 0.3.6)
79
- activemodel (6.1.7)
80
- activesupport (= 6.1.7)
81
- activerecord (6.1.7)
82
- activemodel (= 6.1.7)
83
- activesupport (= 6.1.7)
84
- activestorage (6.1.7)
85
- actionpack (= 6.1.7)
86
- activejob (= 6.1.7)
87
- activerecord (= 6.1.7)
88
- activesupport (= 6.1.7)
79
+ activemodel (6.1.7.1)
80
+ activesupport (= 6.1.7.1)
81
+ activerecord (6.1.7.1)
82
+ activemodel (= 6.1.7.1)
83
+ activesupport (= 6.1.7.1)
84
+ activestorage (6.1.7.1)
85
+ actionpack (= 6.1.7.1)
86
+ activejob (= 6.1.7.1)
87
+ activerecord (= 6.1.7.1)
88
+ activesupport (= 6.1.7.1)
89
89
  marcel (~> 1.0)
90
90
  mini_mime (>= 1.1.0)
91
91
  activestorage-validator (0.2.2)
92
92
  rails (>= 6.0.4.1)
93
- activesupport (6.1.7)
93
+ activesupport (6.1.7.1)
94
94
  concurrent-ruby (~> 1.0, >= 1.0.2)
95
95
  i18n (>= 1.6, < 2)
96
96
  minitest (>= 5.1)
@@ -121,7 +121,7 @@ GEM
121
121
  coderay (1.1.3)
122
122
  concurrent-ruby (1.1.10)
123
123
  crass (1.0.6)
124
- css_parser (1.12.0)
124
+ css_parser (1.14.0)
125
125
  addressable
126
126
  database_cleaner (2.0.1)
127
127
  database_cleaner-active_record (~> 2.0.0)
@@ -150,7 +150,7 @@ GEM
150
150
  file_validators (3.0.0)
151
151
  activemodel (>= 3.2)
152
152
  mime-types (>= 1.0)
153
- globalid (1.0.0)
153
+ globalid (1.0.1)
154
154
  activesupport (>= 5.0)
155
155
  haml (5.2.2)
156
156
  temple (>= 0.8.0)
@@ -160,26 +160,25 @@ GEM
160
160
  activesupport (>= 5.1)
161
161
  haml (>= 4.0.6)
162
162
  railties (>= 5.1)
163
- highline (2.0.3)
164
- httparty (0.20.0)
165
- mime-types (~> 3.0)
163
+ highline (2.1.0)
164
+ httparty (0.21.0)
165
+ mini_mime (>= 1.0.0)
166
166
  multi_xml (>= 0.5.2)
167
167
  i18n (1.12.0)
168
168
  concurrent-ruby (~> 1.0)
169
169
  image_processing (1.12.2)
170
170
  mini_magick (>= 4.9.5, < 5)
171
171
  ruby-vips (>= 2.0.17, < 3)
172
- json (2.6.2)
172
+ json (2.6.3)
173
173
  kraken-io (0.1.3)
174
174
  activesupport
175
175
  httparty
176
176
  json
177
177
  multipart-post
178
- launchy (2.5.0)
179
- addressable (~> 2.7)
178
+ launchy (2.5.2)
179
+ addressable (~> 2.8)
180
180
  libv8-node (16.10.0.0-x86_64-darwin)
181
- libv8-node (16.10.0.0-x86_64-linux)
182
- loofah (2.19.0)
181
+ loofah (2.19.1)
183
182
  crass (~> 1.0.2)
184
183
  nokogiri (>= 1.5.9)
185
184
  mail (2.7.1)
@@ -188,9 +187,10 @@ GEM
188
187
  method_source (1.0.0)
189
188
  mime-types (3.4.1)
190
189
  mime-types-data (~> 3.2015)
191
- mime-types-data (3.2021.0225)
192
- mini_magick (4.11.0)
190
+ mime-types-data (3.2022.0105)
191
+ mini_magick (4.12.0)
193
192
  mini_mime (1.1.2)
193
+ mini_portile2 (2.6.1)
194
194
  mini_racer (0.6.3)
195
195
  libv8-node (~> 16.10.0.0)
196
196
  minitest (5.15.0)
@@ -198,9 +198,8 @@ GEM
198
198
  multipart-post (2.2.3)
199
199
  mysql2 (0.5.4)
200
200
  nio4r (2.5.8)
201
- nokogiri (1.12.5-x86_64-darwin)
202
- racc (~> 1.4)
203
- nokogiri (1.12.5-x86_64-linux)
201
+ nokogiri (1.12.5)
202
+ mini_portile2 (~> 2.6.1)
204
203
  racc (~> 1.4)
205
204
  orm_adapter (0.5.0)
206
205
  poltergeist (1.18.1)
@@ -213,52 +212,52 @@ GEM
213
212
  pry-byebug (3.9.0)
214
213
  byebug (~> 11.0)
215
214
  pry (~> 0.13.0)
216
- psych (4.0.4)
215
+ psych (5.0.2)
217
216
  stringio
218
217
  public_suffix (4.0.7)
219
- racc (1.6.0)
220
- rack (2.2.4)
218
+ racc (1.6.2)
219
+ rack (2.2.6.2)
221
220
  rack-cache (1.13.0)
222
221
  rack (>= 0.4)
223
222
  rack-test (2.0.2)
224
223
  rack (>= 1.3)
225
224
  radius (0.7.5)
226
- rails (6.1.7)
227
- actioncable (= 6.1.7)
228
- actionmailbox (= 6.1.7)
229
- actionmailer (= 6.1.7)
230
- actionpack (= 6.1.7)
231
- actiontext (= 6.1.7)
232
- actionview (= 6.1.7)
233
- activejob (= 6.1.7)
234
- activemodel (= 6.1.7)
235
- activerecord (= 6.1.7)
236
- activestorage (= 6.1.7)
237
- activesupport (= 6.1.7)
225
+ rails (6.1.7.1)
226
+ actioncable (= 6.1.7.1)
227
+ actionmailbox (= 6.1.7.1)
228
+ actionmailer (= 6.1.7.1)
229
+ actionpack (= 6.1.7.1)
230
+ actiontext (= 6.1.7.1)
231
+ actionview (= 6.1.7.1)
232
+ activejob (= 6.1.7.1)
233
+ activemodel (= 6.1.7.1)
234
+ activerecord (= 6.1.7.1)
235
+ activestorage (= 6.1.7.1)
236
+ activesupport (= 6.1.7.1)
238
237
  bundler (>= 1.15.0)
239
- railties (= 6.1.7)
238
+ railties (= 6.1.7.1)
240
239
  sprockets-rails (>= 2.0.0)
241
240
  rails-dom-testing (2.0.3)
242
241
  activesupport (>= 4.2.0)
243
242
  nokogiri (>= 1.6)
244
- rails-html-sanitizer (1.4.3)
245
- loofah (~> 2.3)
243
+ rails-html-sanitizer (1.4.4)
244
+ loofah (~> 2.19, >= 2.19.1)
246
245
  rails-observers (0.1.5)
247
246
  activemodel (>= 4.0)
248
- railties (6.1.7)
249
- actionpack (= 6.1.7)
250
- activesupport (= 6.1.7)
247
+ railties (6.1.7.1)
248
+ actionpack (= 6.1.7.1)
249
+ activesupport (= 6.1.7.1)
251
250
  method_source
252
251
  rake (>= 12.2)
253
252
  thor (~> 1.0)
254
253
  rake (13.0.6)
255
- rdoc (6.4.0)
254
+ rdoc (6.5.0)
256
255
  psych (>= 4.0.0)
257
256
  regexp_parser (2.1.1)
258
257
  responders (3.0.1)
259
258
  actionpack (>= 5.0)
260
259
  railties (>= 5.0)
261
- roadie (5.0.1)
260
+ roadie (5.1.0)
262
261
  css_parser (~> 1.4)
263
262
  nokogiri (~> 1.8)
264
263
  roadie-rails (3.0.0)
@@ -266,10 +265,10 @@ GEM
266
265
  roadie (~> 5.0)
267
266
  rspec-core (3.12.0)
268
267
  rspec-support (~> 3.12.0)
269
- rspec-expectations (3.12.0)
268
+ rspec-expectations (3.12.1)
270
269
  diff-lcs (>= 1.2.0, < 2.0)
271
270
  rspec-support (~> 3.12.0)
272
- rspec-mocks (3.12.0)
271
+ rspec-mocks (3.12.1)
273
272
  diff-lcs (>= 1.2.0, < 2.0)
274
273
  rspec-support (~> 3.12.0)
275
274
  rspec-rails (6.0.1)
@@ -293,21 +292,21 @@ GEM
293
292
  sprockets (> 3.0)
294
293
  sprockets-rails
295
294
  tilt
296
- simplecov (0.21.2)
295
+ simplecov (0.22.0)
297
296
  docile (~> 1.1)
298
297
  simplecov-html (~> 0.11)
299
298
  simplecov_json_formatter (~> 0.1)
300
299
  simplecov-html (0.12.3)
301
- simplecov_json_formatter (0.1.3)
302
- sprockets (4.1.1)
300
+ simplecov_json_formatter (0.1.4)
301
+ sprockets (4.2.0)
303
302
  concurrent-ruby (~> 1.0)
304
- rack (> 1, < 3)
303
+ rack (>= 2.2.4, < 4)
305
304
  sprockets-rails (3.4.2)
306
305
  actionpack (>= 5.2)
307
306
  activesupport (>= 5.2)
308
307
  sprockets (>= 3.0.0)
309
308
  stringex (2.8.5)
310
- stringio (3.0.2)
309
+ stringio (3.0.4)
311
310
  temple (0.9.1)
312
311
  terrapin (0.6.0)
313
312
  climate_control (>= 0.0.3, < 1.0)
@@ -328,12 +327,13 @@ GEM
328
327
  will_paginate (3.3.1)
329
328
  xpath (3.2.0)
330
329
  nokogiri (~> 1.8)
331
- zeitwerk (2.6.3)
330
+ zeitwerk (2.6.6)
332
331
 
333
332
  PLATFORMS
334
333
  x86_64-darwin-18
335
334
  x86_64-darwin-20
336
335
  x86_64-darwin-21
336
+ x86_64-darwin-22
337
337
  x86_64-linux
338
338
 
339
339
  DEPENDENCIES
@@ -346,7 +346,7 @@ DEPENDENCIES
346
346
  mysql2
347
347
  poltergeist (~> 1.18.1)
348
348
  pry-byebug
349
- psych (= 4.0.4)
349
+ psych (= 5.0.2)
350
350
  rails-observers
351
351
  rspec-rails
352
352
  simplecov
@@ -354,4 +354,4 @@ DEPENDENCIES
354
354
  trustygems (~> 0.2.0)
355
355
 
356
356
  BUNDLED WITH
357
- 2.3.4
357
+ 2.4.4
@@ -214,11 +214,6 @@ class Admin::ResourceController < ApplicationController
214
214
  flash.now[:error] = t('resource_controller.validation_errors')
215
215
  end
216
216
 
217
- def announce_removed
218
- ActiveSupport::Deprecation.warn('announce_removed is no longer encouraged in TrustyCms 0.9.x.', caller)
219
- flash[:notice] = t('resource_controller.removed', humanized_model_name: humanized_model_name)
220
- end
221
-
222
217
  def announce_not_found
223
218
  flash[:notice] = t('resource_controller.not_found', humanized_model_name: humanized_model_name)
224
219
  end
data/app/models/page.rb CHANGED
@@ -30,7 +30,6 @@ class Page < ActiveRecord::Base
30
30
 
31
31
  include TrustyCms::Taggable
32
32
  include StandardTags
33
- include DeprecatedTags
34
33
  include Annotatable
35
34
 
36
35
  annotate :description
@@ -213,7 +212,6 @@ class Page < ActiveRecord::Base
213
212
  end
214
213
  slug_child
215
214
  end
216
- alias_method :find_by_url, :find_by_path
217
215
 
218
216
  def update_status
219
217
  self.published_at = Time.zone.now if published? && published_at == nil
@@ -249,11 +247,6 @@ class Page < ActiveRecord::Base
249
247
  root.find_by_path(path, live)
250
248
  end
251
249
 
252
- def find_by_url(*args)
253
- ActiveSupport::Deprecation.warn("`find_by_url' has been deprecated; use `find_by_path' instead.", caller)
254
- find_by_path(*args)
255
- end
256
-
257
250
  def date_column_names
258
251
  columns.collect { |c| c.name if c.sql_type =~ /(date|time)/ }.compact
259
252
  end
@@ -34,7 +34,6 @@ module StandardTags
34
34
  tag 'path' do |tag|
35
35
  relative_url_for(tag.locals.page.path, tag.globals.page.request)
36
36
  end
37
- deprecated_tag 'url', substitute: 'path', deadline: '1.2'
38
37
 
39
38
  desc %{
40
39
  Gives access to a page's children.
@@ -592,7 +591,6 @@ module StandardTags
592
591
  tag.expand
593
592
  end
594
593
  end
595
- deprecated_tag 'if_url', substitute: 'if_path', deadline: '1.2'
596
594
 
597
595
  desc %{
598
596
  The opposite of the @if_path@ tag.
@@ -608,7 +606,6 @@ module StandardTags
608
606
  tag.expand
609
607
  end
610
608
  end
611
- deprecated_tag 'unless_url', substitute: 'unless_path', deadline: '1.2'
612
609
 
613
610
  desc %{
614
611
  Renders the contained elements if the current contextual page is either the actual page or one of its parents.
@@ -798,7 +795,7 @@ module StandardTags
798
795
  tag.expand
799
796
  raise TagError.new("`navigation' tag must include a `normal' tag") unless hash.has_key? :normal
800
797
 
801
- ActiveSupport::Deprecation.warn("The 'urls' attribute of the r:navigation tag has been deprecated in favour of 'paths'. Please update your site.") if tag.attr['urls']
798
+ # ActiveSupport::Deprecation.warn("The 'urls' attribute of the r:navigation tag has been deprecated in favour of 'paths'. Please update your site.") if tag.attr['urls']
802
799
  result = []
803
800
  pairs = (tag.attr['paths'] || tag.attr['urls']).to_s.split('|').map do |pair|
804
801
  parts = pair.split(':')
@@ -837,9 +834,9 @@ module StandardTags
837
834
  hash[symbol]
838
835
  end
839
836
  end
840
- tag 'navigation:url' do |tag|
837
+ tag 'navigation:path' do |tag|
841
838
  hash = tag.locals.navigation
842
- ActiveSupport::Deprecation.warn("The 'r:navigation:url' tag has been deprecated in favour of 'r:navigation:path'. Please update your site.")
839
+ # ActiveSupport::Deprecation.warn("The 'r:navigation:url' tag has been deprecated in favour of 'r:navigation:path'. Please update your site.")
843
840
  hash[:path]
844
841
  end
845
842
 
@@ -1,94 +1,95 @@
1
1
  require 'multi_site/engine'
2
2
  require 'clipped/engine'
3
+ Rails.application.reloader.to_prepare do
4
+ TrustyCms.config do |config|
5
+ config.define 'admin.title', default: 'TrustyCms CMS'
6
+ config.define 'dev.host'
7
+ config.define 'local.timezone', allow_change: true, select_from: lambda { ActiveSupport::TimeZone::MAPPING.keys.sort }
8
+ config.define 'defaults.locale', select_from: lambda { TrustyCms::AvailableLocales.locales }, allow_blank: true
9
+ config.define 'defaults.page.parts', default: 'Body,Extended'
10
+ config.define 'defaults.page.status', select_from: lambda { Status.selectable_values }, allow_blank: false, default: 'Draft'
11
+ config.define 'defaults.page.filter', select_from: lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, allow_blank: true
12
+ config.define 'defaults.page.fields'
13
+ config.define 'pagination.param_name', default: 'page'
14
+ config.define 'pagination.per_page_param_name', default: 'per_page'
15
+ config.define 'admin.pagination.per_page', type: :integer, default: 50
16
+ config.define 'site.title', default: 'Your site title', allow_blank: false
17
+ config.define 'site.host', default: 'www.example.com', allow_blank: false
18
+ config.define 'user.allow_password_reset?', default: true
19
+ config.define 'session_timeout', default: 2.weeks
20
+ require 'multi_site/scoped_validation'
21
+ end
3
22
 
4
- TrustyCms.config do |config|
5
- config.define 'admin.title', default: 'TrustyCms CMS'
6
- config.define 'dev.host'
7
- config.define 'local.timezone', allow_change: true, select_from: lambda { ActiveSupport::TimeZone::MAPPING.keys.sort }
8
- config.define 'defaults.locale', select_from: lambda { TrustyCms::AvailableLocales.locales }, allow_blank: true
9
- config.define 'defaults.page.parts', default: 'Body,Extended'
10
- config.define 'defaults.page.status', select_from: lambda { Status.selectable_values }, allow_blank: false, default: 'Draft'
11
- config.define 'defaults.page.filter', select_from: lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, allow_blank: true
12
- config.define 'defaults.page.fields'
13
- config.define 'pagination.param_name', default: 'page'
14
- config.define 'pagination.per_page_param_name', default: 'per_page'
15
- config.define 'admin.pagination.per_page', type: :integer, default: 50
16
- config.define 'site.title', default: 'Your site title', allow_blank: false
17
- config.define 'site.host', default: 'www.example.com', allow_blank: false
18
- config.define 'user.allow_password_reset?', default: true
19
- config.define 'session_timeout', default: 2.weeks
20
- require 'multi_site/scoped_validation'
21
- end
23
+ TrustyCms.config do |config|
24
+ config.namespace 'paperclip' do |pc|
25
+ pc.define 'url', default: '/system/:attachment/:id/:style/:basename:no_original_style.:extension', allow_change: true
26
+ pc.define 'path', default: ':rails_root/public/system/:attachment/:id/:style/:basename:no_original_style.:extension', allow_change: true
27
+ pc.define 'skip_filetype_validation', default: true, type: :boolean
28
+ pc.define 'storage', default: 'filesystem',
29
+ select_from: {
30
+ 'File System' => 'filesystem',
31
+ 'Amazon S3' => 'fog',
32
+ 'Google Storage' => 'fog',
33
+ 'Rackspace Cloud Files' => 'fog',
34
+ },
35
+ allow_blank: false,
36
+ allow_display: false
22
37
 
23
- TrustyCms.config do |config|
24
- config.namespace 'paperclip' do |pc|
25
- pc.define 'url', default: '/system/:attachment/:id/:style/:basename:no_original_style.:extension', allow_change: true
26
- pc.define 'path', default: ':rails_root/public/system/:attachment/:id/:style/:basename:no_original_style.:extension', allow_change: true
27
- pc.define 'skip_filetype_validation', default: true, type: :boolean
28
- pc.define 'storage', default: 'filesystem',
29
- select_from: {
30
- 'File System' => 'filesystem',
31
- 'Amazon S3' => 'fog',
32
- 'Google Storage' => 'fog',
33
- 'Rackspace Cloud Files' => 'fog',
34
- },
35
- allow_blank: false,
36
- allow_display: false
38
+ pc.namespace 'fog' do |fog|
39
+ fog.define 'provider', select_from: {
40
+ 'Amazon S3' => 'AWS',
41
+ 'Google Storage' => 'Google',
42
+ 'Rackspace Cloud Files' => 'Rackspace',
43
+ }
44
+ fog.define 'directory'
45
+ fog.define 'public?', default: true
46
+ fog.define 'host'
47
+ end
37
48
 
38
- pc.namespace 'fog' do |fog|
39
- fog.define 'provider', select_from: {
40
- 'Amazon S3' => 'AWS',
41
- 'Google Storage' => 'Google',
42
- 'Rackspace Cloud Files' => 'Rackspace',
43
- }
44
- fog.define 'directory'
45
- fog.define 'public?', default: true
46
- fog.define 'host'
47
- end
49
+ pc.namespace 'google_storage' do |gs|
50
+ gs.define 'access_key_id'
51
+ gs.define 'secret_access_key'
52
+ end
48
53
 
49
- pc.namespace 'google_storage' do |gs|
50
- gs.define 'access_key_id'
51
- gs.define 'secret_access_key'
52
- end
54
+ pc.namespace 'rackspace' do |rs|
55
+ rs.define 'username'
56
+ rs.define 'api_key'
57
+ end
53
58
 
54
- pc.namespace 'rackspace' do |rs|
55
- rs.define 'username'
56
- rs.define 'api_key'
59
+ pc.namespace 's3' do |s3|
60
+ s3.define 'key'
61
+ s3.define 'secret'
62
+ s3.define 'region', select_from: {
63
+ 'Asia North East' => 'ap-northeast-1',
64
+ 'Asia South East' => 'ap-southeast-1',
65
+ 'EU West' => 'eu-west-1',
66
+ 'US East' => 'us-east-1',
67
+ 'US West' => 'us-west-1',
68
+ }
69
+ end
57
70
  end
58
71
 
59
- pc.namespace 's3' do |s3|
60
- s3.define 'key'
61
- s3.define 'secret'
62
- s3.define 'region', select_from: {
63
- 'Asia North East' => 'ap-northeast-1',
64
- 'Asia South East' => 'ap-southeast-1',
65
- 'EU West' => 'eu-west-1',
66
- 'US East' => 'us-east-1',
67
- 'US West' => 'us-west-1',
68
- }
69
- end
70
- end
72
+ config.namespace 'assets', allow_display: false do |assets|
73
+ assets.define 'create_image_thumbnails?', default: 'true'
74
+ assets.define 'create_video_thumbnails?', default: 'true'
75
+ assets.define 'create_pdf_thumbnails?', default: 'true'
71
76
 
72
- config.namespace 'assets', allow_display: false do |assets|
73
- assets.define 'create_image_thumbnails?', default: 'true'
74
- assets.define 'create_video_thumbnails?', default: 'true'
75
- assets.define 'create_pdf_thumbnails?', default: 'true'
77
+ assets.namespace 'thumbnails' do |thumbs| # NB :icon and :thumbnail are already defined as fixed formats for use in the admin interface and can't be changed
78
+ thumbs.define 'image', default: 'normal:size=640x640>|small:size=320x320>'
79
+ thumbs.define 'video', default: 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
80
+ thumbs.define 'pdf', default: 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
81
+ end
76
82
 
77
- assets.namespace 'thumbnails' do |thumbs| # NB :icon and :thumbnail are already defined as fixed formats for use in the admin interface and can't be changed
78
- thumbs.define 'image', default: 'normal:size=640x640>|small:size=320x320>'
79
- thumbs.define 'video', default: 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
80
- thumbs.define 'pdf', default: 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
83
+ assets.define 'max_asset_size', default: 5, type: :integer, units: 'MB'
84
+ assets.define 'display_size', default: 'normal', allow_blank: true
85
+ assets.define 'insertion_size', default: 'normal', allow_blank: true
81
86
  end
82
-
83
- assets.define 'max_asset_size', default: 5, type: :integer, units: 'MB'
84
- assets.define 'display_size', default: 'normal', allow_blank: true
85
- assets.define 'insertion_size', default: 'normal', allow_blank: true
86
87
  end
87
- end
88
88
 
89
- if TrustyCms.config_definitions['defaults.snippet.filter'].nil?
90
- TrustyCms.config.define 'defaults.snippet.filter', select_from: lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, allow_blank: true
91
- end
89
+ if TrustyCms.config_definitions['defaults.snippet.filter'].nil?
90
+ TrustyCms.config.define 'defaults.snippet.filter', select_from: lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, allow_blank: true
91
+ end
92
92
 
93
- Admin::LayoutsController.send :helper, MultiSite::SiteChooserHelper
94
- Admin::SnippetsController.send :helper, MultiSite::SiteChooserHelper
93
+ Admin::LayoutsController.send :helper, MultiSite::SiteChooserHelper
94
+ Admin::SnippetsController.send :helper, MultiSite::SiteChooserHelper
95
+ end
@@ -222,15 +222,6 @@
222
222
 
223
223
  <pre><code><r&#58;if_self>...</r&#58;if_self></code></pre>
224
224
 
225
- if_url:
226
- Renders the containing elements only if the page's url matches the regular expression
227
- given in the @matches@ attribute. If the @ignore_case@ attribute is set to false, the
228
- match is case sensitive. By default, @ignore_case@ is set to true.
229
-
230
- *Usage&#58;*
231
-
232
- <pre><code><r&#58;if_url matches="regexp" [ignore_case="true|false"]>...</r&#58;if_url></code></pre>
233
-
234
225
  markdown:
235
226
  Filters its contents with the Markdown filter.
236
227
 
@@ -443,13 +434,6 @@
443
434
 
444
435
  <pre><code><r&#58;unless_self>...</r&#58;unless_self></code></pre>
445
436
 
446
- unless_url:
447
- The opposite of the @if_url@ tag.
448
-
449
- *Usage&#58;*
450
-
451
- <pre><code><r&#58;unless_url matches="regexp" [ignore_case="true|false"]>...</r&#58;unless_url></code></pre>
452
-
453
437
  url:
454
438
  Renders the @url@ attribute of the current page.
455
439
 
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '5.5.1'.freeze
5
+ VERSION = '5.5.6'.freeze
6
6
  end
7
7
  end
data/package.json CHANGED
@@ -7,9 +7,9 @@
7
7
  "author": "Danielle Greaves <danigreaves@gmail.com>",
8
8
  "license": "MIT",
9
9
  "dependencies": {
10
- "@fortawesome/fontawesome-free": "^5.13.0",
10
+ "@fortawesome/fontawesome-free": "^5.15.4",
11
11
  "blueimp-file-upload": "^10.32.0",
12
- "jquery": "^3.5.0",
12
+ "jquery": "^3.6.1",
13
13
  "jquery-treetable": "^3.2.0-1",
14
14
  "jquery-ui": "^1.13.2",
15
15
  "jquery-ujs": "^1.2.2",
@@ -4,9 +4,9 @@
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "jquery": "^3.5.0",
7
+ "jquery": "^3.6.1",
8
8
  "jquery-treetable": "^3.2.0-1",
9
9
  "jquery-ui": "^1.12.1",
10
- "jquery-ujs": "^1.2.2"
10
+ "jquery-ujs": "^1.2.3"
11
11
  }
12
12
  }
data/spec/dummy/yarn.lock CHANGED
@@ -16,22 +16,21 @@ jquery-ui@^1.12.1:
16
16
  dependencies:
17
17
  jquery ">=1.8.0 <4.0.0"
18
18
 
19
- jquery-ujs@^1.2.2:
20
- version "1.2.2"
21
- resolved "https://registry.yarnpkg.com/jquery-ujs/-/jquery-ujs-1.2.2.tgz#6a8ef1020e6b6dda385b90a4bddc128c21c56397"
22
- dependencies:
23
- jquery ">=1.8.0"
19
+ jquery-ujs@^1.2.3:
20
+ version "1.2.3"
21
+ resolved "https://registry.yarnpkg.com/jquery-ujs/-/jquery-ujs-1.2.3.tgz#dcac6026ab7268e5ee41faf9d31c997cd4ddd603"
22
+ integrity sha512-59wvfx5vcCTHMeQT1/OwFiAj+UffLIwjRIoXdpO7Z7BCFGepzq9T9oLVeoItjTqjoXfUrHJvV7QU6pUR+UzOoA==
24
23
 
25
24
  jquery@>=1.6:
26
25
  version "3.6.0"
27
26
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470"
28
27
  integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==
29
28
 
30
- jquery@>=1.8.0, jquery@^3.5.0:
31
- version "3.5.0"
32
- resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.0.tgz#9980b97d9e4194611c36530e7dc46a58d7340fc9"
33
-
34
29
  "jquery@>=1.8.0 <4.0.0":
35
30
  version "3.6.1"
36
31
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.1.tgz#fab0408f8b45fc19f956205773b62b292c147a16"
37
32
  integrity sha512-opJeO4nCucVnsjiXOE+/PcCgYw9Gwpvs/a6B1LL/lQhwWwpbVEVYDZ1FokFr8PRc7ghYlrFPuyHuiiDNTQxmcw==
33
+
34
+ jquery@^3.5.0:
35
+ version "3.5.0"
36
+ resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.0.tgz#9980b97d9e4194611c36530e7dc46a58d7340fc9"
data/trusty_cms.gemspec CHANGED
@@ -33,12 +33,12 @@ a general purpose content management system--not merely a blogging engine.'
33
33
  s.add_dependency 'execjs', '~> 2.7'
34
34
  s.add_dependency 'haml', '~> 5.2.2'
35
35
  s.add_dependency 'haml-rails', '~> 2.0'
36
- s.add_dependency 'highline', '>= 1.7.8', '< 2.1.0'
36
+ s.add_dependency 'highline', '>= 1.7.8', '< 2.2.0'
37
37
  s.add_dependency 'image_processing'
38
38
  s.add_dependency 'kraken-io'
39
39
  s.add_dependency 'mini_racer'
40
40
  s.add_dependency 'mysql2'
41
- s.add_dependency 'rack', '>= 2.0.1', '< 2.3.0'
41
+ s.add_dependency 'rack', '>= 2.0.1', '< 3.1.0'
42
42
  s.add_dependency 'rack-cache', '~> 1.7'
43
43
  s.add_dependency 'radius', '~> 0.7'
44
44
  s.add_dependency 'rails'
data/yarn.lock CHANGED
@@ -184,10 +184,10 @@
184
184
  lodash "^4.17.13"
185
185
  to-fast-properties "^2.0.0"
186
186
 
187
- "@fortawesome/fontawesome-free@^5.13.0":
188
- version "5.13.0"
189
- resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.13.0.tgz#fcb113d1aca4b471b709e8c9c168674fbd6e06d9"
190
- integrity sha512-xKOeQEl5O47GPZYIMToj6uuA2syyFlq9EMSl2ui0uytjY9xbe8XS0pexNWmxrdcCyNGyDmLyYw5FtKsalBUeOg==
187
+ "@fortawesome/fontawesome-free@^5.15.4":
188
+ version "5.15.4"
189
+ resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz#ecda5712b61ac852c760d8b3c79c96adca5554e5"
190
+ integrity sha512-eYm8vijH/hpzr/6/1CJ/V/Eb1xQFW2nnUKArb3z+yUWv7HTwj6M7SP957oMjfZjAHU6qpoNc2wQvIxBLWYa/Jg==
191
191
 
192
192
  "@nodelib/fs.scandir@2.1.3":
193
193
  version "2.1.3"
@@ -319,9 +319,9 @@ bail@^1.0.0:
319
319
  integrity sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==
320
320
 
321
321
  balanced-match@^1.0.0:
322
- version "1.0.0"
323
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
324
- integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
322
+ version "1.0.2"
323
+ resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
324
+ integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
325
325
 
326
326
  blueimp-canvas-to-blob@3:
327
327
  version "3.29.0"
@@ -477,7 +477,7 @@ color-name@~1.1.4:
477
477
  concat-map@0.0.1:
478
478
  version "0.0.1"
479
479
  resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
480
- integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
480
+ integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
481
481
 
482
482
  convert-source-map@^1.7.0:
483
483
  version "1.7.0"
@@ -986,12 +986,12 @@ jquery@>=1.6:
986
986
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470"
987
987
  integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==
988
988
 
989
- jquery@>=1.8.0, jquery@^3.5.0:
989
+ jquery@>=1.8.0:
990
990
  version "3.5.0"
991
991
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.0.tgz#9980b97d9e4194611c36530e7dc46a58d7340fc9"
992
992
  integrity sha512-Xb7SVYMvygPxbFMpTFQiHh1J7HClEaThguL15N/Gg37Lri/qKyhRGZYzHRyLH8Stq3Aow0LsHO2O2ci86fCrNQ==
993
993
 
994
- "jquery@>=1.8.0 <4.0.0":
994
+ "jquery@>=1.8.0 <4.0.0", jquery@^3.6.1:
995
995
  version "3.6.1"
996
996
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.1.tgz#fab0408f8b45fc19f956205773b62b292c147a16"
997
997
  integrity sha512-opJeO4nCucVnsjiXOE+/PcCgYw9Gwpvs/a6B1LL/lQhwWwpbVEVYDZ1FokFr8PRc7ghYlrFPuyHuiiDNTQxmcw==
@@ -1022,11 +1022,9 @@ json-schema-traverse@^0.4.1:
1022
1022
  integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
1023
1023
 
1024
1024
  json5@^2.1.2:
1025
- version "2.1.3"
1026
- resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43"
1027
- integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==
1028
- dependencies:
1029
- minimist "^1.2.5"
1025
+ version "2.2.3"
1026
+ resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
1027
+ integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
1030
1028
 
1031
1029
  kind-of@^6.0.2:
1032
1030
  version "6.0.3"
@@ -1157,9 +1155,9 @@ min-indent@^1.0.0:
1157
1155
  integrity sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY=
1158
1156
 
1159
1157
  minimatch@^3.0.4:
1160
- version "3.0.4"
1161
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
1162
- integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
1158
+ version "3.1.2"
1159
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
1160
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
1163
1161
  dependencies:
1164
1162
  brace-expansion "^1.1.7"
1165
1163
 
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: 5.5.1
4
+ version: 5.5.6
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: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator
@@ -163,7 +163,7 @@ dependencies:
163
163
  version: 1.7.8
164
164
  - - "<"
165
165
  - !ruby/object:Gem::Version
166
- version: 2.1.0
166
+ version: 2.2.0
167
167
  type: :runtime
168
168
  prerelease: false
169
169
  version_requirements: !ruby/object:Gem::Requirement
@@ -173,7 +173,7 @@ dependencies:
173
173
  version: 1.7.8
174
174
  - - "<"
175
175
  - !ruby/object:Gem::Version
176
- version: 2.1.0
176
+ version: 2.2.0
177
177
  - !ruby/object:Gem::Dependency
178
178
  name: image_processing
179
179
  requirement: !ruby/object:Gem::Requirement
@@ -239,7 +239,7 @@ dependencies:
239
239
  version: 2.0.1
240
240
  - - "<"
241
241
  - !ruby/object:Gem::Version
242
- version: 2.3.0
242
+ version: 3.1.0
243
243
  type: :runtime
244
244
  prerelease: false
245
245
  version_requirements: !ruby/object:Gem::Requirement
@@ -249,7 +249,7 @@ dependencies:
249
249
  version: 2.0.1
250
250
  - - "<"
251
251
  - !ruby/object:Gem::Version
252
- version: 2.3.0
252
+ version: 3.1.0
253
253
  - !ruby/object:Gem::Dependency
254
254
  name: rack-cache
255
255
  requirement: !ruby/object:Gem::Requirement
@@ -494,14 +494,11 @@ files:
494
494
  - app/assets/images/admin/avatar_64x64.png
495
495
  - app/assets/images/admin/avatar_96x96.png
496
496
  - app/assets/images/admin/brown_bottom_line.gif
497
- - app/assets/images/admin/c_icon.png
498
497
  - app/assets/images/admin/calendar_down.gif
499
498
  - app/assets/images/admin/calendar_down.png
500
499
  - app/assets/images/admin/collapse.png
501
500
  - app/assets/images/admin/collapsed.png
502
501
  - app/assets/images/admin/copy.png
503
- - app/assets/images/admin/css_icon.png
504
- - app/assets/images/admin/database_icon.png
505
502
  - app/assets/images/admin/default_forgot_password.svg
506
503
  - app/assets/images/admin/default_reset_password.svg
507
504
  - app/assets/images/admin/default_safe_login.svg
@@ -509,15 +506,8 @@ files:
509
506
  - app/assets/images/admin/document_icon.png
510
507
  - app/assets/images/admin/document_thumbnail.png
511
508
  - app/assets/images/admin/draft_page.png
512
- - app/assets/images/admin/flash_icon.png
513
- - app/assets/images/admin/flash_thumbnail.png
514
- - app/assets/images/admin/font_icon.png
515
- - app/assets/images/admin/gzip_icon.png
516
- - app/assets/images/admin/html_icon.png
517
509
  - app/assets/images/admin/image.png
518
- - app/assets/images/admin/image_icon.png
519
510
  - app/assets/images/admin/image_thumbnail.png
520
- - app/assets/images/admin/java_icon.png
521
511
  - app/assets/images/admin/javascript.png
522
512
  - app/assets/images/admin/layout.png
523
513
  - app/assets/images/admin/metadata_toggle.png
@@ -534,8 +524,6 @@ files:
534
524
  - app/assets/images/admin/page_edit.png
535
525
  - app/assets/images/admin/pdf_icon.png
536
526
  - app/assets/images/admin/pdf_thumbnail.png
537
- - app/assets/images/admin/perl_icon.png
538
- - app/assets/images/admin/php_icon.png
539
527
  - app/assets/images/admin/plus.png
540
528
  - app/assets/images/admin/plus_disabled.png
541
529
  - app/assets/images/admin/plus_grey.png
@@ -544,17 +532,12 @@ files:
544
532
  - app/assets/images/admin/popup_border_bottom_right.png
545
533
  - app/assets/images/admin/popup_border_top_left.png
546
534
  - app/assets/images/admin/popup_border_top_right.png
547
- - app/assets/images/admin/presentation_icon.png
548
- - app/assets/images/admin/python_icon.png
549
535
  - app/assets/images/admin/remove.png
550
536
  - app/assets/images/admin/reorder_assets.png
551
- - app/assets/images/admin/ruby_icon.png
552
- - app/assets/images/admin/script_icon.png
553
537
  - app/assets/images/admin/search.png
554
538
  - app/assets/images/admin/single_form_shadow.png
555
539
  - app/assets/images/admin/snippet.png
556
540
  - app/assets/images/admin/spinner.gif
557
- - app/assets/images/admin/spreadsheet_icon.png
558
541
  - app/assets/images/admin/status_background.png
559
542
  - app/assets/images/admin/status_bottom_left.png
560
543
  - app/assets/images/admin/status_bottom_right.png
@@ -563,7 +546,6 @@ files:
563
546
  - app/assets/images/admin/status_top_right.png
564
547
  - app/assets/images/admin/stylesheet.png
565
548
  - app/assets/images/admin/tab_close.png
566
- - app/assets/images/admin/tar_icon.png
567
549
  - app/assets/images/admin/ui-bg_flat_75_ffffff_40x100.png
568
550
  - app/assets/images/admin/ui-bg_glass_55_fbf9ee_1x400.png
569
551
  - app/assets/images/admin/ui-bg_glass_65_ffffff_1x400.png
@@ -582,15 +564,12 @@ files:
582
564
  - app/assets/images/admin/video_icon.png
583
565
  - app/assets/images/admin/video_thumbnail.png
584
566
  - app/assets/images/admin/virtual_page.png
585
- - app/assets/images/admin/xml_icon.png
586
- - app/assets/images/admin/zip_icon.png
587
567
  - app/assets/images/rad_social/ajax-loader-small.gif
588
568
  - app/assets/images/rad_social/ajax-loader.gif
589
569
  - app/assets/images/rad_social/bg_primary-btn.png
590
570
  - app/assets/images/rad_social/email.png
591
571
  - app/assets/images/rad_social/facebook.png
592
572
  - app/assets/images/rad_social/twitter.png
593
- - app/assets/images/radiant/radiant-badge-color.png
594
573
  - app/assets/javascripts/admin.js
595
574
  - app/assets/javascripts/admin/assets.js
596
575
  - app/assets/javascripts/admin/assets_admin.js
@@ -691,11 +670,9 @@ files:
691
670
  - app/mailers/rad_social_mailer.rb
692
671
  - app/models/asset.rb
693
672
  - app/models/asset_type.rb
694
- - app/models/deprecated_tags.rb
695
673
  - app/models/file_not_found_page.rb
696
674
  - app/models/haml_filter.rb
697
675
  - app/models/layout.rb
698
- - app/models/legacy_user.rb
699
676
  - app/models/menu_renderer.rb
700
677
  - app/models/page.rb
701
678
  - app/models/page_attachment.rb
@@ -980,7 +957,6 @@ files:
980
957
  - lib/tasks/radiant_config.rake
981
958
  - lib/tasks/snippets_extension_tasks.rake
982
959
  - lib/tasks/translate.rake
983
- - lib/tasks/upgrade_to_devise.rake
984
960
  - lib/translation_support.rb
985
961
  - lib/trusty_cms.rb
986
962
  - lib/trusty_cms/admin_ui.rb
@@ -1163,52 +1139,52 @@ signing_key:
1163
1139
  specification_version: 4
1164
1140
  summary: A no-fluff content management system designed for small teams.
1165
1141
  test_files:
1166
- - spec/spec_helper.rb
1167
- - spec/fixtures/users.yml
1168
- - spec/models/layout_spec.rb
1169
- - spec/rails_helper.rb
1170
- - spec/support/custom_actions.rb
1171
- - spec/features/pages_spec.rb
1172
1142
  - spec/features/config_spec.rb
1143
+ - spec/features/pages_spec.rb
1173
1144
  - spec/features/layouts_spec.rb
1174
- - spec/controllers/application_controller_spec.rb
1175
- - spec/controllers/users_controller_spec.rb
1176
- - spec/dummy/config/environments/test.rb
1177
1145
  - spec/dummy/config/environments/development.rb
1178
1146
  - spec/dummy/config/environments/production.rb
1179
- - spec/dummy/config/environment.rb
1180
- - spec/dummy/config/locales/en.yml
1181
- - spec/dummy/config/routes.rb
1182
- - spec/dummy/config/database.yml
1183
- - spec/dummy/config/initializers/cookies_serializer.rb
1184
- - spec/dummy/config/initializers/filter_parameter_logging.rb
1185
- - spec/dummy/config/initializers/backtrace_silencers.rb
1147
+ - spec/dummy/config/environments/test.rb
1148
+ - spec/dummy/config/secrets.yml
1186
1149
  - spec/dummy/config/initializers/trusty_cms_config.rb
1187
- - spec/dummy/config/initializers/inflections.rb
1150
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
1188
1151
  - spec/dummy/config/initializers/wrap_parameters.rb
1189
- - spec/dummy/config/initializers/mime_types.rb
1190
1152
  - spec/dummy/config/initializers/assets.rb
1191
1153
  - spec/dummy/config/initializers/session_store.rb
1192
- - spec/dummy/config/application.rb
1193
- - spec/dummy/config/secrets.yml
1154
+ - spec/dummy/config/initializers/mime_types.rb
1155
+ - spec/dummy/config/initializers/cookies_serializer.rb
1156
+ - spec/dummy/config/initializers/inflections.rb
1157
+ - spec/dummy/config/initializers/backtrace_silencers.rb
1194
1158
  - spec/dummy/config/boot.rb
1195
- - spec/dummy/package.json
1196
- - spec/dummy/app/assets/config/manifest.js
1197
- - spec/dummy/db/schema.rb
1159
+ - spec/dummy/config/application.rb
1160
+ - spec/dummy/config/database.yml
1161
+ - spec/dummy/config/environment.rb
1162
+ - spec/dummy/config/locales/en.yml
1163
+ - spec/dummy/config/routes.rb
1198
1164
  - spec/dummy/Rakefile
1199
1165
  - spec/dummy/config.ru
1166
+ - spec/dummy/app/assets/config/manifest.js
1167
+ - spec/dummy/yarn.lock
1168
+ - spec/dummy/db/schema.rb
1200
1169
  - spec/dummy/README.rdoc
1170
+ - spec/dummy/public/422.html
1201
1171
  - spec/dummy/public/favicon.ico
1202
1172
  - spec/dummy/public/404.html
1203
1173
  - spec/dummy/public/500.html
1204
- - spec/dummy/public/422.html
1205
- - spec/dummy/bin/bundle
1206
- - spec/dummy/bin/rails
1207
- - spec/dummy/bin/setup
1174
+ - spec/dummy/package.json
1208
1175
  - spec/dummy/bin/rake
1209
- - spec/dummy/yarn.lock
1176
+ - spec/dummy/bin/setup
1177
+ - spec/dummy/bin/rails
1178
+ - spec/dummy/bin/bundle
1179
+ - spec/models/layout_spec.rb
1180
+ - spec/controllers/users_controller_spec.rb
1181
+ - spec/controllers/application_controller_spec.rb
1182
+ - spec/rails_helper.rb
1183
+ - spec/spec_helper.rb
1210
1184
  - spec/ci/database.mysql.yml
1185
+ - spec/support/custom_actions.rb
1186
+ - spec/fixtures/users.yml
1187
+ - spec/factories/page.rb
1211
1188
  - spec/factories/page_part.rb
1212
1189
  - spec/factories/layout.rb
1213
- - spec/factories/page.rb
1214
1190
  - spec/factories/user.rb
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,13 +0,0 @@
1
- require 'trusty_cms/taggable'
2
- module DeprecatedTags
3
- include TrustyCms::Taggable
4
-
5
- deprecated_tag 'comment', substitute: 'hide', deadline: '2.0'
6
-
7
- deprecated_tag 'rfc1123_date', deadline: '2.0' do |tag|
8
- page = tag.locals.page
9
- if date = page.published_at || page.created_at
10
- CGI.rfc1123_date(date.to_time)
11
- end
12
- end
13
- end
@@ -1,6 +0,0 @@
1
- class LegacyUser < ActiveRecord::Base
2
- self.table_name = 'users'
3
-
4
- # this is a legacy class
5
- # this table formally held user information for when TrustyCMS had a handwritten authentication system
6
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Define a namespace for the task
4
- namespace :import do
5
- desc 'Imports the legacy user data into the Devise Admin table'
6
- task admins: :environment do
7
- CHARS = ('0'..'9').to_a + ('A'..'Z').to_a + ('a'..'z').to_a + (1..9).to_a + ['`', '~', '!', '@', '#', '$', '%', '^', '&', '*']
8
- password = CHARS.sort_by { rand }.join[0...15]
9
-
10
- LegacyUser.all.each do |legacy|
11
- u = User.new(
12
- email: legacy.email,
13
- first_name: legacy.name.split[0],
14
- last_name: legacy.name.split[1],
15
- password: password,
16
- password_confirmation: password,
17
- admin: legacy.admin,
18
- designer: legacy.designer,
19
- content_editor: legacy.content_editor,
20
- notes: legacy.notes,
21
- )
22
- u.save!
23
- end
24
- end
25
- end