trusty-cms 5.5.9 → 5.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f4ef88729e786d8a0977ac190c8546b49d5324469c7e9eaf80ef77ede977167
4
- data.tar.gz: f2e6ddf0633251c8c6db60676c7f2a6ec83b6f4a39a2785cd7bb4f673c433081
3
+ metadata.gz: 8335ccbe0b9f13c382765aea13eab9c77b06a6a6284610a0353753bd3ad04cf8
4
+ data.tar.gz: ac210d21758eb07bb95ceddd8bf693cde011a37516e55a1e4953009559b84d5a
5
5
  SHA512:
6
- metadata.gz: 4402deb3bc80c490eec946374b38311cba2d447d626d43956ee05c969b393f1502528fe4eeded862610022af5d47d1904cda074f527e36df7a83aeda7a62c7b8
7
- data.tar.gz: f1ce51e5f002ed8dbe4a0182ed0c20cae0b46f079ac3947c97ddd692d7697edb31bef42e19589d465ab327e9b177b09d9e748d5824b41b57ab74658eac7e7406
6
+ metadata.gz: 4aa825126e6e9eff94a59d842a7c13d9b7a74cdc3995b390a9f18ad8bf28c664eb3cd206c696c608d9baaa3036caa5eb5f648f620d956cfee41f423d11b94afd
7
+ data.tar.gz: 3db3a0a1dfbfc251d40ff2f094c4877f5e70d5f610bfe0d6fa2a26be4d22108a60e9b84fe843b6f88ada69ddee977e7fd13a3c85758ca31f947e939562927b3d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (5.5.8)
4
+ trusty-cms (5.6.1)
5
5
  RedCloth (= 4.3.2)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.2.0)
@@ -10,7 +10,7 @@ PATH
10
10
  delocalize (>= 0.2, < 2.0)
11
11
  devise
12
12
  execjs (~> 2.7)
13
- haml
13
+ haml (>= 5.0, < 6.0)
14
14
  haml-rails
15
15
  highline (>= 1.7.8, < 2.2.0)
16
16
  image_processing
@@ -35,67 +35,73 @@ GEM
35
35
  remote: https://rubygems.org/
36
36
  specs:
37
37
  RedCloth (4.3.2)
38
- actioncable (6.1.7.4)
39
- actionpack (= 6.1.7.4)
40
- activesupport (= 6.1.7.4)
38
+ actioncable (7.0.8)
39
+ actionpack (= 7.0.8)
40
+ activesupport (= 7.0.8)
41
41
  nio4r (~> 2.0)
42
42
  websocket-driver (>= 0.6.1)
43
- actionmailbox (6.1.7.4)
44
- actionpack (= 6.1.7.4)
45
- activejob (= 6.1.7.4)
46
- activerecord (= 6.1.7.4)
47
- activestorage (= 6.1.7.4)
48
- activesupport (= 6.1.7.4)
43
+ actionmailbox (7.0.8)
44
+ actionpack (= 7.0.8)
45
+ activejob (= 7.0.8)
46
+ activerecord (= 7.0.8)
47
+ activestorage (= 7.0.8)
48
+ activesupport (= 7.0.8)
49
49
  mail (>= 2.7.1)
50
- actionmailer (6.1.7.4)
51
- actionpack (= 6.1.7.4)
52
- actionview (= 6.1.7.4)
53
- activejob (= 6.1.7.4)
54
- activesupport (= 6.1.7.4)
50
+ net-imap
51
+ net-pop
52
+ net-smtp
53
+ actionmailer (7.0.8)
54
+ actionpack (= 7.0.8)
55
+ actionview (= 7.0.8)
56
+ activejob (= 7.0.8)
57
+ activesupport (= 7.0.8)
55
58
  mail (~> 2.5, >= 2.5.4)
59
+ net-imap
60
+ net-pop
61
+ net-smtp
56
62
  rails-dom-testing (~> 2.0)
57
- actionpack (6.1.7.4)
58
- actionview (= 6.1.7.4)
59
- activesupport (= 6.1.7.4)
60
- rack (~> 2.0, >= 2.0.9)
63
+ actionpack (7.0.8)
64
+ actionview (= 7.0.8)
65
+ activesupport (= 7.0.8)
66
+ rack (~> 2.0, >= 2.2.4)
61
67
  rack-test (>= 0.6.3)
62
68
  rails-dom-testing (~> 2.0)
63
69
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
64
- actiontext (6.1.7.4)
65
- actionpack (= 6.1.7.4)
66
- activerecord (= 6.1.7.4)
67
- activestorage (= 6.1.7.4)
68
- activesupport (= 6.1.7.4)
70
+ actiontext (7.0.8)
71
+ actionpack (= 7.0.8)
72
+ activerecord (= 7.0.8)
73
+ activestorage (= 7.0.8)
74
+ activesupport (= 7.0.8)
75
+ globalid (>= 0.6.0)
69
76
  nokogiri (>= 1.8.5)
70
- actionview (6.1.7.4)
71
- activesupport (= 6.1.7.4)
77
+ actionview (7.0.8)
78
+ activesupport (= 7.0.8)
72
79
  builder (~> 3.1)
73
80
  erubi (~> 1.4)
74
81
  rails-dom-testing (~> 2.0)
75
82
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
76
- activejob (6.1.7.4)
77
- activesupport (= 6.1.7.4)
83
+ activejob (7.0.8)
84
+ activesupport (= 7.0.8)
78
85
  globalid (>= 0.3.6)
79
- activemodel (6.1.7.4)
80
- activesupport (= 6.1.7.4)
81
- activerecord (6.1.7.4)
82
- activemodel (= 6.1.7.4)
83
- activesupport (= 6.1.7.4)
84
- activestorage (6.1.7.4)
85
- actionpack (= 6.1.7.4)
86
- activejob (= 6.1.7.4)
87
- activerecord (= 6.1.7.4)
88
- activesupport (= 6.1.7.4)
86
+ activemodel (7.0.8)
87
+ activesupport (= 7.0.8)
88
+ activerecord (7.0.8)
89
+ activemodel (= 7.0.8)
90
+ activesupport (= 7.0.8)
91
+ activestorage (7.0.8)
92
+ actionpack (= 7.0.8)
93
+ activejob (= 7.0.8)
94
+ activerecord (= 7.0.8)
95
+ activesupport (= 7.0.8)
89
96
  marcel (~> 1.0)
90
97
  mini_mime (>= 1.1.0)
91
98
  activestorage-validator (0.3.0)
92
99
  rails (>= 6.1.0)
93
- activesupport (6.1.7.4)
100
+ activesupport (7.0.8)
94
101
  concurrent-ruby (~> 1.0, >= 1.0.2)
95
102
  i18n (>= 1.6, < 2)
96
103
  minitest (>= 5.1)
97
104
  tzinfo (~> 2.0)
98
- zeitwerk (~> 2.3)
99
105
  acts_as_list (1.1.0)
100
106
  activerecord (>= 4.2)
101
107
  acts_as_tree (2.9.1)
@@ -129,6 +135,7 @@ GEM
129
135
  activerecord (>= 5.a)
130
136
  database_cleaner-core (~> 2.0.0)
131
137
  database_cleaner-core (2.0.1)
138
+ date (3.3.3)
132
139
  delocalize (1.2.0)
133
140
  rails (>= 2)
134
141
  devise (4.9.2)
@@ -138,10 +145,9 @@ GEM
138
145
  responders
139
146
  warden (~> 1.2.3)
140
147
  diff-lcs (1.5.0)
141
- digest (3.1.1)
142
148
  docile (1.4.0)
143
149
  erubi (1.12.0)
144
- execjs (2.8.1)
150
+ execjs (2.9.1)
145
151
  factory_bot (6.2.1)
146
152
  activesupport (>= 5.0.0)
147
153
  factory_bot_rails (6.2.0)
@@ -151,11 +157,10 @@ GEM
151
157
  file_validators (3.0.0)
152
158
  activemodel (>= 3.2)
153
159
  mime-types (>= 1.0)
154
- globalid (1.1.0)
155
- activesupport (>= 5.0)
156
- haml (6.1.1)
157
- temple (>= 0.8.2)
158
- thor
160
+ globalid (1.2.1)
161
+ activesupport (>= 6.1)
162
+ haml (5.2.2)
163
+ temple (>= 0.8.0)
159
164
  tilt
160
165
  haml-rails (2.1.0)
161
166
  actionpack (>= 5.1)
@@ -171,7 +176,6 @@ GEM
171
176
  image_processing (1.12.2)
172
177
  mini_magick (>= 4.9.5, < 5)
173
178
  ruby-vips (>= 2.0.17, < 3)
174
- io-wait (0.3.0)
175
179
  json (2.6.3)
176
180
  kraken-io (0.1.3)
177
181
  activesupport
@@ -182,7 +186,7 @@ GEM
182
186
  addressable (~> 2.8)
183
187
  libv8-node (16.10.0.0-x86_64-darwin)
184
188
  libv8-node (16.10.0.0-x86_64-linux)
185
- loofah (2.21.3)
189
+ loofah (2.21.4)
186
190
  crass (~> 1.0.2)
187
191
  nokogiri (>= 1.12.0)
188
192
  mail (2.8.1)
@@ -196,30 +200,26 @@ GEM
196
200
  mime-types-data (~> 3.2015)
197
201
  mime-types-data (3.2022.0105)
198
202
  mini_magick (4.12.0)
199
- mini_mime (1.1.2)
203
+ mini_mime (1.1.5)
200
204
  mini_racer (0.6.3)
201
205
  libv8-node (~> 16.10.0.0)
202
- minitest (5.15.0)
206
+ minitest (5.20.0)
203
207
  multi_xml (0.6.0)
204
208
  multipart-post (2.2.3)
205
209
  mysql2 (0.5.5)
206
- net-imap (0.2.2)
207
- digest
210
+ net-imap (0.4.1)
211
+ date
208
212
  net-protocol
209
- strscan
210
213
  net-pop (0.1.2)
211
214
  net-protocol
212
- net-protocol (0.1.1)
213
- io-wait
215
+ net-protocol (0.2.1)
214
216
  timeout
215
- net-smtp (0.3.0)
216
- digest
217
+ net-smtp (0.4.0)
217
218
  net-protocol
218
- timeout
219
219
  nio4r (2.5.9)
220
- nokogiri (1.12.5-x86_64-darwin)
220
+ nokogiri (1.15.4-x86_64-darwin)
221
221
  racc (~> 1.4)
222
- nokogiri (1.12.5-x86_64-linux)
222
+ nokogiri (1.15.4-x86_64-linux)
223
223
  racc (~> 1.4)
224
224
  orm_adapter (0.5.0)
225
225
  poltergeist (1.18.1)
@@ -236,41 +236,42 @@ GEM
236
236
  stringio
237
237
  public_suffix (4.0.7)
238
238
  racc (1.7.1)
239
- rack (2.2.7)
240
- rack-cache (1.13.0)
239
+ rack (2.2.8)
240
+ rack-cache (1.14.0)
241
241
  rack (>= 0.4)
242
242
  rack-test (2.1.0)
243
243
  rack (>= 1.3)
244
244
  radius (0.7.5)
245
- rails (6.1.7.4)
246
- actioncable (= 6.1.7.4)
247
- actionmailbox (= 6.1.7.4)
248
- actionmailer (= 6.1.7.4)
249
- actionpack (= 6.1.7.4)
250
- actiontext (= 6.1.7.4)
251
- actionview (= 6.1.7.4)
252
- activejob (= 6.1.7.4)
253
- activemodel (= 6.1.7.4)
254
- activerecord (= 6.1.7.4)
255
- activestorage (= 6.1.7.4)
256
- activesupport (= 6.1.7.4)
245
+ rails (7.0.8)
246
+ actioncable (= 7.0.8)
247
+ actionmailbox (= 7.0.8)
248
+ actionmailer (= 7.0.8)
249
+ actionpack (= 7.0.8)
250
+ actiontext (= 7.0.8)
251
+ actionview (= 7.0.8)
252
+ activejob (= 7.0.8)
253
+ activemodel (= 7.0.8)
254
+ activerecord (= 7.0.8)
255
+ activestorage (= 7.0.8)
256
+ activesupport (= 7.0.8)
257
257
  bundler (>= 1.15.0)
258
- railties (= 6.1.7.4)
259
- sprockets-rails (>= 2.0.0)
260
- rails-dom-testing (2.1.1)
258
+ railties (= 7.0.8)
259
+ rails-dom-testing (2.2.0)
261
260
  activesupport (>= 5.0.0)
262
261
  minitest
263
262
  nokogiri (>= 1.6)
264
- rails-html-sanitizer (1.5.0)
265
- loofah (~> 2.19, >= 2.19.1)
263
+ rails-html-sanitizer (1.6.0)
264
+ loofah (~> 2.21)
265
+ nokogiri (~> 1.14)
266
266
  rails-observers (0.1.5)
267
267
  activemodel (>= 4.0)
268
- railties (6.1.7.4)
269
- actionpack (= 6.1.7.4)
270
- activesupport (= 6.1.7.4)
268
+ railties (7.0.8)
269
+ actionpack (= 7.0.8)
270
+ activesupport (= 7.0.8)
271
271
  method_source
272
272
  rake (>= 12.2)
273
273
  thor (~> 1.0)
274
+ zeitwerk (~> 2.5)
274
275
  rake (13.0.6)
275
276
  rdoc (6.5.0)
276
277
  psych (>= 4.0.0)
@@ -319,7 +320,7 @@ GEM
319
320
  simplecov_json_formatter (~> 0.1)
320
321
  simplecov-html (0.12.3)
321
322
  simplecov_json_formatter (0.1.4)
322
- sprockets (4.2.0)
323
+ sprockets (4.2.1)
323
324
  concurrent-ruby (~> 1.0)
324
325
  rack (>= 2.2.4, < 4)
325
326
  sprockets-rails (3.4.2)
@@ -328,7 +329,6 @@ GEM
328
329
  sprockets (>= 3.0.0)
329
330
  stringex (2.8.6)
330
331
  stringio (3.0.5)
331
- strscan (3.0.6)
332
332
  temple (0.10.0)
333
333
  terrapin (0.6.0)
334
334
  climate_control (>= 0.0.3, < 1.0)
@@ -344,13 +344,13 @@ GEM
344
344
  uuidtools (2.2.0)
345
345
  warden (1.2.9)
346
346
  rack (>= 2.0.9)
347
- websocket-driver (0.7.5)
347
+ websocket-driver (0.7.6)
348
348
  websocket-extensions (>= 0.1.0)
349
349
  websocket-extensions (0.1.5)
350
350
  will_paginate (4.0.0)
351
351
  xpath (3.2.0)
352
352
  nokogiri (~> 1.8)
353
- zeitwerk (2.6.8)
353
+ zeitwerk (2.6.12)
354
354
 
355
355
  PLATFORMS
356
356
  x86_64-darwin-18
@@ -377,4 +377,4 @@ DEPENDENCIES
377
377
  trustygems (~> 0.2.0)
378
378
 
379
379
  BUNDLED WITH
380
- 2.4.4
380
+ 2.4.13
@@ -1,4 +1,3 @@
1
- # require_dependency 'trusty_cms'
2
1
  require 'login_system'
3
2
 
4
3
  class ApplicationController < ActionController::Base
@@ -1,4 +1,6 @@
1
1
  require 'trusty_cms/pagination/controller'
2
+ require 'will_paginate/array'
3
+
2
4
  class SiteController < ApplicationController
3
5
  include TrustyCms::Pagination::Controller
4
6
 
@@ -42,16 +44,19 @@ class SiteController < ApplicationController
42
44
  def cacheable_request?
43
45
  (request.head? || request.get?) && live?
44
46
  end
47
+
45
48
  # hide_action :cacheable_request?
46
49
 
47
50
  def set_expiry(time, options = {})
48
51
  expires_in time, options
49
52
  end
53
+
50
54
  # hide_action :set_expiry
51
55
 
52
56
  def set_etag(val)
53
57
  headers['ETag'] = val
54
58
  end
59
+
55
60
  # hide_action :set_expiry
56
61
 
57
62
  private
data/app/models/site.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # The site class includes - in find_for_host - some key retrieval and creation logic that is called from ApplicationController to set the current site context.
2
2
  # Otherwise it's just another Trusty data model.
3
+ require 'acts_as_list'
3
4
 
4
5
  class Site < ActiveRecord::Base
5
6
  acts_as_list
@@ -81,7 +81,8 @@ module TrustyCms
81
81
  TrustyCms::Config.initialize_cache
82
82
  end
83
83
  TrustyCms::Config.initialize_cache if TrustyCms::Config.stale_cache?
84
- Rails.cache.read('TrustyCms::Config')[key]
84
+ # Rails.cache.read('TrustyCms::Config')[key]
85
+ # TODO: Do we need this line?
85
86
  end
86
87
  end
87
88
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path('boot', __dir__)
1
+ require_relative 'boot'
2
2
 
3
3
  require 'rails/all'
4
4
  require 'acts_as_tree'
@@ -18,8 +18,6 @@ module TrustyCms
18
18
  class Application < Rails::Application
19
19
  include TrustyCms::Initializer
20
20
  config.active_record.whitelist_attributes = true
21
- config.autoload_paths += %W(#{config.root}/lib)
22
- config.eager_load_paths << Rails.root.join('lib')
23
21
 
24
22
  # Enable the asset pipeline
25
23
  config.assets.enabled = true
@@ -80,7 +78,7 @@ module TrustyCms
80
78
  end
81
79
  config.after_initialize do
82
80
  extension_loader.load_extensions
83
- extension_loader.load_extension_initalizers
81
+ extension_loader.load_extension_initializers
84
82
 
85
83
  extension_loader.activate_extensions # also calls initialize_views
86
84
  # config.add_controller_paths(extension_loader.paths(:controller))
@@ -1,5 +1,3 @@
1
- require 'multi_site/engine'
2
- require 'clipped/engine'
3
1
  Rails.application.reloader.to_prepare do
4
2
  TrustyCms.config do |config|
5
3
  config.define 'admin.title', default: 'TrustyCms CMS'
@@ -22,18 +20,18 @@ Rails.application.reloader.to_prepare do
22
20
 
23
21
  TrustyCms.config do |config|
24
22
  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
23
+ pc.define 'url', default: '/system/:attachment/:id/:style/:basename:no_original_style.:extension', allow_change: true
24
+ pc.define 'path', default: ':rails_root/public/system/:attachment/:id/:style/:basename:no_original_style.:extension', allow_change: true
27
25
  pc.define 'skip_filetype_validation', default: true, type: :boolean
28
26
  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
27
+ select_from: {
28
+ 'File System' => 'filesystem',
29
+ 'Amazon S3' => 'fog',
30
+ 'Google Storage' => 'fog',
31
+ 'Rackspace Cloud Files' => 'fog',
32
+ },
33
+ allow_blank: false,
34
+ allow_display: false
37
35
 
38
36
  pc.namespace 'fog' do |fog|
39
37
  fog.define 'provider', select_from: {
@@ -74,7 +72,8 @@ Rails.application.reloader.to_prepare do
74
72
  assets.define 'create_video_thumbnails?', default: 'true'
75
73
  assets.define 'create_pdf_thumbnails?', default: 'true'
76
74
 
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
75
+ assets.namespace 'thumbnails' do |thumbs|
76
+ # NB :icon and :thumbnail are already defined as fixed formats for use in the admin interface and can't be changed
78
77
  thumbs.define 'image', default: 'normal:size=640x640>|small:size=320x320>'
79
78
  thumbs.define 'video', default: 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
80
79
  thumbs.define 'pdf', default: 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
@@ -14,7 +14,7 @@ module TrustyCms
14
14
  # config['other.thing'] = 'nothing'
15
15
  # end
16
16
  #
17
- def config # method must be defined before any initializers run
17
+ def config # method must be defined before any initializers run
18
18
  yield TrustyCms::Config if block_given?
19
19
  TrustyCms::Config
20
20
  end
@@ -33,6 +33,7 @@ module TrustyCms
33
33
  def root
34
34
  Pathname.new(TRUSTY_CMS_ROOT) if defined?(TRUSTY_CMS_ROOT)
35
35
  end
36
+
36
37
  def boot!
37
38
  unless booted?
38
39
  preinitialize
@@ -46,12 +47,12 @@ module TrustyCms
46
47
 
47
48
  def pick_boot
48
49
  case
49
- when app?
50
- AppBoot.new
51
- when vendor?
52
- VendorBoot.new
53
- else
54
- GemBoot.new
50
+ when app?
51
+ AppBoot.new
52
+ when vendor?
53
+ VendorBoot.new
54
+ else
55
+ GemBoot.new
55
56
  end
56
57
  end
57
58
 
@@ -77,7 +78,6 @@ module TrustyCms
77
78
  end
78
79
  end
79
80
 
80
-
81
81
  class Rails::Application::Configuration
82
82
 
83
83
  # The TrustyCms::Configuration class extends Rails::Configuration with three purposes:
@@ -132,7 +132,8 @@ class Rails::Application::Configuration
132
132
  @extension_list ||= extensions ? expand_and_check(extensions) : available_extensions
133
133
  end
134
134
 
135
- def expand_and_check(extension_list) #:nodoc
135
+ def expand_and_check(extension_list)
136
+ #:nodoc
136
137
  missing_extensions = extension_list - [:all] - available_extensions
137
138
  raise LoadError, "These configured extensions have not been found: #{missing_extensions.to_sentence}" if missing_extensions.any?
138
139
  if m = extension_list.index(:all)
@@ -1,5 +1,4 @@
1
1
  # Uncomment this if you reference any of your controllers in activate
2
- # require_dependency "application_controller"
3
2
  require "radiant-<%= file_name %>-extension"
4
3
 
5
4
  class <%= class_name %> < TrustyCms::Extension
@@ -1,5 +1,4 @@
1
1
  # Uncomment this if you reference any of your controllers in activate
2
- # require_dependency "application_controller"
3
2
  require "radiant-<%= file_name %>_language_pack-extension"
4
3
 
5
4
  class <%= class_name %> < TrustyCms::Extension
@@ -30,7 +30,7 @@ module TrustyCms
30
30
 
31
31
  # Initialize extension paths
32
32
  config.initialize_extension_paths
33
- extension_loader = ExtensionLoader.instance {|l| l.initializer = self }
33
+ extension_loader = ExtensionLoader.instance { |l| l.initializer = self }
34
34
  extension_loader.paths(:load).reverse_each do |path, value|
35
35
  config.autoload_paths.unshift path
36
36
  $LOAD_PATH.unshift path
@@ -51,7 +51,7 @@ module TrustyCms
51
51
  # An example of how to add extensions:
52
52
  # config.extensions = [ :snippets, :clipped, :layouts, :reorder, :multi_site, :rad_social]
53
53
 
54
- config.extensions = [ ]
54
+ config.extensions = []
55
55
 
56
56
  # By default, only English translations are loaded. Remove any of these from
57
57
  # the list below if you'd like to provide any of the additional options
@@ -85,7 +85,6 @@ module TrustyCms
85
85
  # Sets the meta store type and storage location. We recommend you use
86
86
  # radiant: since this will enable manual expiration and acceleration headers.
87
87
 
88
-
89
88
  config.middleware.use Rack::Cache,
90
89
  :private_headers => ['Authorization'],
91
90
  :entitystore => "radiant:tmp/cache/entity",
@@ -97,8 +96,6 @@ module TrustyCms
97
96
  config.middleware.insert_before(Rack::ConditionalGet, Rack::Cache)
98
97
  config.assets.enabled = true
99
98
 
100
-
101
-
102
99
  config.filter_parameters += [:password, :password_confirmation]
103
100
 
104
101
  # Use the database for sessions instead of the cookie-based default,
@@ -128,13 +125,13 @@ module TrustyCms
128
125
 
129
126
  config.after_initialize do
130
127
  extension_loader.load_extensions
131
- extension_loader.load_extension_initalizers
128
+ extension_loader.load_extension_initializers
132
129
 
133
130
  #Dir["#{TRUSTY_CMS_ROOT}/config/initializers/**/*.rb"].sort.each do |initializer|
134
131
  # load(initializer)
135
132
  #end
136
133
 
137
- extension_loader.activate_extensions # also calls initialize_views
134
+ extension_loader.activate_extensions # also calls initialize_views
138
135
  #config.add_controller_paths(extension_loader.paths(:controller))
139
136
  #config.add_eager_load_paths(extension_loader.paths(:eager_load))
140
137
 
@@ -13,15 +13,18 @@ module TrustyCms
13
13
 
14
14
  attr_accessor :config
15
15
 
16
- def initialize(rails_config) #:nodoc
16
+ def initialize(rails_config)
17
+ #:nodoc
17
18
  @config = rails_config
18
19
  end
19
20
 
20
- def before_clear(*_args) #:nodoc
21
+ def before_clear(*_args)
22
+ #:nodoc
21
23
  ExtensionLoader.deactivate_extensions
22
24
  end
23
25
 
24
- def after_clear(*_args) #:nodoc
26
+ def after_clear(*_args)
27
+ #:nodoc
25
28
  ExtensionLoader.load_extensions
26
29
  ExtensionLoader.activate_extensions
27
30
  end
@@ -73,7 +76,6 @@ module TrustyCms
73
76
  begin
74
77
  constant = "#{name}_extension".camelize
75
78
  extension = constant.constantize
76
- extension.unloadable
77
79
  extension.path = extension_path
78
80
  extension
79
81
  rescue LoadError, NameError => e
@@ -88,6 +90,10 @@ module TrustyCms
88
90
  extensions.each(&:load_initializers)
89
91
  end
90
92
 
93
+ def load_extension_initializers
94
+ load_extension_initalizers
95
+ end
96
+
91
97
  # Deactivates all enabled extensions.
92
98
  #
93
99
  def deactivate_extensions
@@ -138,5 +144,7 @@ module TrustyCms
138
144
  end
139
145
  end
140
146
  end
147
+
148
+ alias_method :load_extension_initializers, :load_extension_initalizers
141
149
  end
142
150
  end
@@ -97,7 +97,7 @@ module TrustyCms
97
97
  def load_application_initializers
98
98
  load_trusty_initializers unless deployed_as_app?
99
99
  super
100
- extension_loader.load_extension_initalizers
100
+ extension_loader.load_extension_initializers
101
101
  end
102
102
 
103
103
  # Loads initializers found in TRUSTY_CMS_ROOT/config/initializers.
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,7 @@ 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.9'.freeze
5
+ VERSION = '5.6.1'.freeze
6
6
  end
7
7
  end
8
+