trusty-cms 5.5 → 5.5.5.1

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.lock +10 -10
  3. data/app/assets/stylesheets/admin/partials/_popup.scss +5 -20
  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 -8
  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/yarn.lock +13 -13
  14. metadata +36 -61
  15. data/app/assets/images/admin/c_icon.png +0 -0
  16. data/app/assets/images/admin/css_icon.png +0 -0
  17. data/app/assets/images/admin/database_icon.png +0 -0
  18. data/app/assets/images/admin/flash_icon.png +0 -0
  19. data/app/assets/images/admin/flash_thumbnail.png +0 -0
  20. data/app/assets/images/admin/font_icon.png +0 -0
  21. data/app/assets/images/admin/gzip_icon.png +0 -0
  22. data/app/assets/images/admin/html_icon.png +0 -0
  23. data/app/assets/images/admin/image_icon.png +0 -0
  24. data/app/assets/images/admin/java_icon.png +0 -0
  25. data/app/assets/images/admin/perl_icon.png +0 -0
  26. data/app/assets/images/admin/php_icon.png +0 -0
  27. data/app/assets/images/admin/presentation_icon.png +0 -0
  28. data/app/assets/images/admin/python_icon.png +0 -0
  29. data/app/assets/images/admin/ruby_icon.png +0 -0
  30. data/app/assets/images/admin/script_icon.png +0 -0
  31. data/app/assets/images/admin/spreadsheet_icon.png +0 -0
  32. data/app/assets/images/admin/tar_icon.png +0 -0
  33. data/app/assets/images/admin/xml_icon.png +0 -0
  34. data/app/assets/images/admin/zip_icon.png +0 -0
  35. data/app/assets/images/radiant/radiant-badge-color.png +0 -0
  36. data/app/models/deprecated_tags.rb +0 -13
  37. data/app/models/legacy_user.rb +0 -6
  38. data/lib/local_time.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: '019ee42dfa05a82526b8a1e2a38f5b7f229caeab0ce98148559e060c1debc5ce'
4
- data.tar.gz: 94a7341db24b3e806bdde66f09ea64209e054cab394f52f38483c98ed3152c35
3
+ metadata.gz: 2ad78e0d034ea5a4bfbc73fa860a4c19600214124e2799a4b976f36461e34bc0
4
+ data.tar.gz: cac51f559be8d6a64bbde045b36f7629430dbb9267fad95a519f105ab146dd10
5
5
  SHA512:
6
- metadata.gz: 79897bd4cafd496a4e6189f3047505cee2f9520984acc5455749f9f71940697839b5b889424b99e7a8f8d52d20e0b4f9fe8569293d815da3d015d18a21a1b094
7
- data.tar.gz: a48741e60e8c9bc6f540fb0cb6118fc43a26932332d833ca04c2dd32b87242dee78e1055d6c82db0c30fafab084eac9448ee3732e28c5be836c44aead550c03d
6
+ metadata.gz: fd0d2a9d043f57afc8f58c387b0d2d5e8014d0e018e2fef3abae6aec994cd8949e5b6bb1d863a677a8ec6fa5afb23e56ceb9e96f49041caaf5082b49e7f2d06e
7
+ data.tar.gz: 5f68ad234336f160ae870a6104ecfcebb19cbfa95afeebba62dbc019e443d281c71a9b9927950cf88bc4a473e24e81d92e0712a291b685362c368dfc0555d738
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.5)
5
5
  RedCloth (= 4.3.2)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.1.0)
@@ -169,7 +169,7 @@ GEM
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
@@ -179,7 +179,7 @@ GEM
179
179
  addressable (~> 2.7)
180
180
  libv8-node (16.10.0.0-x86_64-darwin)
181
181
  libv8-node (16.10.0.0-x86_64-linux)
182
- loofah (2.19.0)
182
+ loofah (2.19.1)
183
183
  crass (~> 1.0.2)
184
184
  nokogiri (>= 1.5.9)
185
185
  mail (2.7.1)
@@ -189,7 +189,7 @@ GEM
189
189
  mime-types (3.4.1)
190
190
  mime-types-data (~> 3.2015)
191
191
  mime-types-data (3.2021.0225)
192
- mini_magick (4.11.0)
192
+ mini_magick (4.12.0)
193
193
  mini_mime (1.1.2)
194
194
  mini_racer (0.6.3)
195
195
  libv8-node (~> 16.10.0.0)
@@ -216,7 +216,7 @@ GEM
216
216
  psych (4.0.4)
217
217
  stringio
218
218
  public_suffix (4.0.7)
219
- racc (1.6.0)
219
+ racc (1.6.1)
220
220
  rack (2.2.4)
221
221
  rack-cache (1.13.0)
222
222
  rack (>= 0.4)
@@ -241,8 +241,8 @@ GEM
241
241
  rails-dom-testing (2.0.3)
242
242
  activesupport (>= 4.2.0)
243
243
  nokogiri (>= 1.6)
244
- rails-html-sanitizer (1.4.3)
245
- loofah (~> 2.3)
244
+ rails-html-sanitizer (1.4.4)
245
+ loofah (~> 2.19, >= 2.19.1)
246
246
  rails-observers (0.1.5)
247
247
  activemodel (>= 4.0)
248
248
  railties (6.1.7)
@@ -252,13 +252,13 @@ GEM
252
252
  rake (>= 12.2)
253
253
  thor (~> 1.0)
254
254
  rake (13.0.6)
255
- rdoc (6.4.0)
255
+ rdoc (6.5.0)
256
256
  psych (>= 4.0.0)
257
257
  regexp_parser (2.1.1)
258
258
  responders (3.0.1)
259
259
  actionpack (>= 5.0)
260
260
  railties (>= 5.0)
261
- roadie (5.0.1)
261
+ roadie (5.1.0)
262
262
  css_parser (~> 1.4)
263
263
  nokogiri (~> 1.8)
264
264
  roadie-rails (3.0.0)
@@ -269,7 +269,7 @@ GEM
269
269
  rspec-expectations (3.12.0)
270
270
  diff-lcs (>= 1.2.0, < 2.0)
271
271
  rspec-support (~> 3.12.0)
272
- rspec-mocks (3.12.0)
272
+ rspec-mocks (3.12.1)
273
273
  diff-lcs (>= 1.2.0, < 2.0)
274
274
  rspec-support (~> 3.12.0)
275
275
  rspec-rails (6.0.1)
@@ -155,11 +155,11 @@ div.popup {
155
155
  width: 100%;
156
156
 
157
157
  th {
158
+ border-bottom: 1px dotted silver;
158
159
  color: green;
159
160
  font-size: 120%;
160
- padding: 5px;
161
- padding-left: 0;
162
- padding-right: 0;
161
+ padding: 8px 5px;
162
+ text-align: left;
163
163
  }
164
164
 
165
165
  td {
@@ -169,12 +169,12 @@ div.popup {
169
169
  text-align: left;
170
170
  }
171
171
 
172
- h1 {
172
+ h1, h2, h3, h4 {
173
173
  color: black;
174
174
  margin: 0;
175
175
  margin-bottom: 0.5em;
176
176
  }
177
-
177
+
178
178
  acronym {
179
179
  border-bottom: 1px dotted silver;
180
180
  }
@@ -233,21 +233,6 @@ div.popup {
233
233
  }
234
234
  }
235
235
 
236
- div.popup .reference table {
237
- th {
238
- border-bottom: 1px dotted silver;
239
- padding-bottom: 8px;
240
- padding-top: 8px;
241
- text-align: left;
242
- }
243
-
244
- h2, h3, h4 {
245
- color: black;
246
- margin: 0;
247
- margin-bottom: 0.5em;
248
- }
249
- }
250
-
251
236
  div#popup_window {
252
237
  display: none;
253
238
  position: absolute;
@@ -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
@@ -1,8 +1,6 @@
1
1
  require 'trusty_cms/taggable'
2
- require 'local_time'
3
2
  module StandardTags
4
3
  include TrustyCms::Taggable
5
- include LocalTime
6
4
 
7
5
  require 'will_paginate/view_helpers'
8
6
  include WillPaginate::ViewHelpers
@@ -36,7 +34,6 @@ module StandardTags
36
34
  tag 'path' do |tag|
37
35
  relative_url_for(tag.locals.page.path, tag.globals.page.request)
38
36
  end
39
- deprecated_tag 'url', substitute: 'path', deadline: '1.2'
40
37
 
41
38
  desc %{
42
39
  Gives access to a page's children.
@@ -594,7 +591,6 @@ module StandardTags
594
591
  tag.expand
595
592
  end
596
593
  end
597
- deprecated_tag 'if_url', substitute: 'if_path', deadline: '1.2'
598
594
 
599
595
  desc %{
600
596
  The opposite of the @if_path@ tag.
@@ -610,7 +606,6 @@ module StandardTags
610
606
  tag.expand
611
607
  end
612
608
  end
613
- deprecated_tag 'unless_url', substitute: 'unless_path', deadline: '1.2'
614
609
 
615
610
  desc %{
616
611
  Renders the contained elements if the current contextual page is either the actual page or one of its parents.
@@ -800,7 +795,7 @@ module StandardTags
800
795
  tag.expand
801
796
  raise TagError.new("`navigation' tag must include a `normal' tag") unless hash.has_key? :normal
802
797
 
803
- 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']
804
799
  result = []
805
800
  pairs = (tag.attr['paths'] || tag.attr['urls']).to_s.split('|').map do |pair|
806
801
  parts = pair.split(':')
@@ -839,9 +834,9 @@ module StandardTags
839
834
  hash[symbol]
840
835
  end
841
836
  end
842
- tag 'navigation:url' do |tag|
837
+ tag 'navigation:path' do |tag|
843
838
  hash = tag.locals.navigation
844
- 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.")
845
840
  hash[:path]
846
841
  end
847
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'.freeze
5
+ VERSION = '5.5.5.1'.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/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==
@@ -1157,9 +1157,9 @@ min-indent@^1.0.0:
1157
1157
  integrity sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY=
1158
1158
 
1159
1159
  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==
1160
+ version "3.1.2"
1161
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
1162
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
1163
1163
  dependencies:
1164
1164
  brace-expansion "^1.1.7"
1165
1165
 
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'
4
+ version: 5.5.5.1
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-03 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator
@@ -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
@@ -967,7 +944,6 @@ files:
967
944
  - lib/generators/trusty_cms/templates/routes.rb.erb
968
945
  - lib/generators/trusty_cms/trusty_cms_generator.rb
969
946
  - lib/inheritable_class_attributes.rb
970
- - lib/local_time.rb
971
947
  - lib/login_system.rb
972
948
  - lib/method_observer.rb
973
949
  - lib/ostruct.rb
@@ -981,7 +957,6 @@ files:
981
957
  - lib/tasks/radiant_config.rake
982
958
  - lib/tasks/snippets_extension_tasks.rake
983
959
  - lib/tasks/translate.rake
984
- - lib/tasks/upgrade_to_devise.rake
985
960
  - lib/translation_support.rb
986
961
  - lib/trusty_cms.rb
987
962
  - lib/trusty_cms/admin_ui.rb
@@ -1164,52 +1139,52 @@ signing_key:
1164
1139
  specification_version: 4
1165
1140
  summary: A no-fluff content management system designed for small teams.
1166
1141
  test_files:
1167
- - spec/spec_helper.rb
1168
- - spec/fixtures/users.yml
1169
- - spec/models/layout_spec.rb
1170
- - spec/rails_helper.rb
1171
- - spec/support/custom_actions.rb
1172
- - spec/features/pages_spec.rb
1173
- - spec/features/config_spec.rb
1174
- - spec/features/layouts_spec.rb
1142
+ - spec/ci/database.mysql.yml
1143
+ - spec/factories/page.rb
1144
+ - spec/factories/layout.rb
1145
+ - spec/factories/user.rb
1146
+ - spec/factories/page_part.rb
1175
1147
  - spec/controllers/application_controller_spec.rb
1176
1148
  - spec/controllers/users_controller_spec.rb
1177
- - spec/dummy/config/environments/test.rb
1178
- - spec/dummy/config/environments/development.rb
1179
- - spec/dummy/config/environments/production.rb
1180
- - spec/dummy/config/environment.rb
1181
- - spec/dummy/config/locales/en.yml
1182
- - spec/dummy/config/routes.rb
1149
+ - spec/rails_helper.rb
1150
+ - spec/support/custom_actions.rb
1151
+ - spec/models/layout_spec.rb
1152
+ - spec/fixtures/users.yml
1153
+ - spec/dummy/db/schema.rb
1154
+ - spec/dummy/package.json
1183
1155
  - spec/dummy/config/database.yml
1184
- - spec/dummy/config/initializers/cookies_serializer.rb
1185
- - spec/dummy/config/initializers/filter_parameter_logging.rb
1186
- - spec/dummy/config/initializers/backtrace_silencers.rb
1187
1156
  - spec/dummy/config/initializers/trusty_cms_config.rb
1188
- - spec/dummy/config/initializers/inflections.rb
1157
+ - spec/dummy/config/initializers/backtrace_silencers.rb
1158
+ - spec/dummy/config/initializers/assets.rb
1189
1159
  - spec/dummy/config/initializers/wrap_parameters.rb
1190
1160
  - spec/dummy/config/initializers/mime_types.rb
1191
- - spec/dummy/config/initializers/assets.rb
1161
+ - spec/dummy/config/initializers/inflections.rb
1192
1162
  - spec/dummy/config/initializers/session_store.rb
1163
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
1164
+ - spec/dummy/config/initializers/cookies_serializer.rb
1165
+ - spec/dummy/config/environment.rb
1166
+ - spec/dummy/config/locales/en.yml
1167
+ - spec/dummy/config/boot.rb
1168
+ - spec/dummy/config/environments/test.rb
1169
+ - spec/dummy/config/environments/production.rb
1170
+ - spec/dummy/config/environments/development.rb
1193
1171
  - spec/dummy/config/application.rb
1194
1172
  - spec/dummy/config/secrets.yml
1195
- - spec/dummy/config/boot.rb
1196
- - spec/dummy/package.json
1173
+ - spec/dummy/config/routes.rb
1174
+ - spec/dummy/README.rdoc
1175
+ - spec/dummy/config.ru
1197
1176
  - spec/dummy/app/assets/config/manifest.js
1198
- - spec/dummy/db/schema.rb
1199
1177
  - spec/dummy/Rakefile
1200
- - spec/dummy/config.ru
1201
- - spec/dummy/README.rdoc
1202
- - spec/dummy/public/favicon.ico
1203
- - spec/dummy/public/404.html
1178
+ - spec/dummy/yarn.lock
1204
1179
  - spec/dummy/public/500.html
1180
+ - spec/dummy/public/404.html
1181
+ - spec/dummy/public/favicon.ico
1205
1182
  - spec/dummy/public/422.html
1206
- - spec/dummy/bin/bundle
1207
1183
  - spec/dummy/bin/rails
1208
- - spec/dummy/bin/setup
1209
1184
  - spec/dummy/bin/rake
1210
- - spec/dummy/yarn.lock
1211
- - spec/ci/database.mysql.yml
1212
- - spec/factories/page_part.rb
1213
- - spec/factories/layout.rb
1214
- - spec/factories/page.rb
1215
- - spec/factories/user.rb
1185
+ - spec/dummy/bin/setup
1186
+ - spec/dummy/bin/bundle
1187
+ - spec/spec_helper.rb
1188
+ - spec/features/pages_spec.rb
1189
+ - spec/features/config_spec.rb
1190
+ - spec/features/layouts_spec.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
data/lib/local_time.rb DELETED
@@ -1,6 +0,0 @@
1
- module LocalTime
2
- def adjust_time(time)
3
- ::ActiveSupport::Deprecation.warn("`adjust_time' is deprecated. All time output is now auto-adjusted to TrustyCms::Config['local.timezone'] or the default ActiveRecord time zone.", caller)
4
- time
5
- end
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