trusty-cms 7.0.35 → 7.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ca244b4507317a42d9515312799e54a50b4bd0eb38cfb9d23f1721a0e87ce8e
4
- data.tar.gz: 8a6facfa1efe892c29dc8ffcc4ffa05c1ac355f3b296aa14bba44192bf0a6311
3
+ metadata.gz: 07a47c7288dba4245ca9bd8567ef11cd068cea5826e790e55ca04e0a42b4621a
4
+ data.tar.gz: 8e4a49f4924461fdba634926cc56eb25f77ccbda7c3112787a14e36d7c3c9582
5
5
  SHA512:
6
- metadata.gz: 97b54ea35702c9215033f022d004907b285fe8ac3ebb3708cad3cb368091bdda41fd54c67c8f155d02d5ab87f72cc50c104f59b5de43052ca068913df43dacf0
7
- data.tar.gz: f5d54ede3730f8e4e6cdd4be4190913a7c639ebebd55f2d937d4823e97ce1dd062d2a370017f7e456d15e4609f534d55efd62be71db6ceb617c4d89da7141406
6
+ metadata.gz: 13d97825e4a9f65ac88ada70c7e545dd465819bbe24bf0ea37c814f5cd8187aafc5b2d3f5185b28c9dd21a21c39fc322ee723430e6079c57722f16d5204d4ff5
7
+ data.tar.gz: f8b70c6d8337f22a5ce277624dd55afbf6b4f7048bb03668aa2a37df883335f254f3cea2d5466e76f86da807b45c8ce81e5ce7c539535a5677a53994492b667f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (7.0.35)
4
+ trusty-cms (7.0.37)
5
5
  RedCloth (= 4.3.3)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.3.0)
@@ -15,7 +15,7 @@ PATH
15
15
  diffy
16
16
  drb
17
17
  execjs (~> 2.7)
18
- haml (>= 5.0, < 6.0)
18
+ haml (~> 6.3.0)
19
19
  haml-rails
20
20
  highline (>= 1.7.8, < 3.2.0)
21
21
  image_processing
@@ -202,8 +202,9 @@ GEM
202
202
  mime-types (>= 1.0)
203
203
  globalid (1.2.1)
204
204
  activesupport (>= 6.1)
205
- haml (5.2.2)
206
- temple (>= 0.8.0)
205
+ haml (6.3.0)
206
+ temple (>= 0.8.2)
207
+ thor
207
208
  tilt
208
209
  haml-rails (2.1.0)
209
210
  actionpack (>= 5.1)
@@ -1,9 +1,6 @@
1
1
  class Admin::AssetsController < Admin::ResourceController
2
2
  paginate_models(per_page: 50)
3
3
  COMPRESS_FILE_TYPE = ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml'].freeze
4
- before_action do
5
- ActiveStorage::Current.host = request.base_url
6
- end
7
4
 
8
5
  def index
9
6
  assets = Asset.order('created_at DESC')
@@ -794,7 +794,6 @@ module StandardTags
794
794
  tag.expand
795
795
  raise TagError.new("`navigation' tag must include a `normal' tag") unless hash.has_key? :normal
796
796
 
797
- # 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
797
  result = []
799
798
  pairs = (tag.attr['paths'] || tag.attr['urls']).to_s.split('|').map do |pair|
800
799
  parts = pair.split(':')
@@ -835,7 +834,6 @@ module StandardTags
835
834
  end
836
835
  tag 'navigation:path' do |tag|
837
836
  hash = tag.locals.navigation
838
- # ActiveSupport::Deprecation.warn("The 'r:navigation:url' tag has been deprecated in favour of 'r:navigation:path'. Please update your site.")
839
837
  hash[:path]
840
838
  end
841
839
 
@@ -222,13 +222,19 @@ class Rails::Application::Configuration
222
222
  # Old extension-dependency mechanism now deprecated
223
223
  #
224
224
  def extension(ext)
225
- ::ActiveSupport::Deprecation.warn("Extension dependencies have been deprecated and are no longer supported in trusty 1.0. Extensions with dependencies should be packaged as gems and use the .gemspec to declare them.", caller)
225
+ deprecation = ActiveSupport::Deprecation.new('1.0', 'trusty-cms')
226
+ deprecation.warn(
227
+ 'Extension dependencies have been deprecated and are no longer supported in trusty 1.0. ' +
228
+ 'Extensions with dependencies should be packaged as gems and use the .gemspec to declare them.',
229
+ caller
230
+ )
226
231
  end
227
232
 
228
- # Old gem-invogation method now deprecated
233
+ # Old gem-invocation method now deprecated
229
234
  #
230
- def gem(name, options = {})
231
- ::ActiveSupport::Deprecation.warn("Please declare gem dependencies in your Gemfile (or for an extension, in the .gemspec file).", caller)
235
+ def gem(name, options = {})
236
+ deprecation = ActiveSupport::Deprecation.new
237
+ deprecation.warn('Please declare gem dependencies in your Gemfile (or for an extension, in the .gemspec file).', caller)
232
238
  super
233
239
  end
234
240
 
@@ -70,8 +70,8 @@ module TrustyCms
70
70
  end
71
71
 
72
72
  def deprecated_add(name, url, caller)
73
- ActiveSupport::Deprecation.warn("admin.tabs.add is no longer supported in TrustyCms 0.9.x. Please update your code to use: \ntab \"Content\" do\n\tadd_item(...)\nend",
74
- caller)
73
+ deprecation = ActiveSupport::Deprecation.new('0.9', 'trusty-cms')
74
+ deprecation.warn('admin.tabs.add is no longer supported in TrustyCms 0.9.x. Please update your code to use: \ntab \"Content\" do\n\tadd_item(...)\nend', caller)
75
75
  NavSubItem.new(name, url)
76
76
  end
77
77
  end
@@ -2,12 +2,14 @@ require 'active_support'
2
2
 
3
3
  class AssetType
4
4
  def paperclip_processors
5
- ActiveSupport::Deprecation.warn('Paperclip processors will be deprecated soon in favor of ActiveStorage.')
5
+ deprecation = ActiveSupport::Deprecation.new
6
+ deprecation.warn('Paperclip processors will be deprecated soon in favor of ActiveStorage.')
6
7
 
7
8
  active_storage_styles
8
9
  end
9
10
 
10
11
  def paperclip_styles
11
- ActiveSupport::Deprecation.warn('Paperclip styles will be deprecated soon in favor of ActiveStorage.')
12
+ deprecation = ActiveSupport::Deprecation.new
13
+ deprecation.warn('Paperclip styles will be deprecated soon in favor of ActiveStorage.')
12
14
  end
13
- end
15
+ end
@@ -138,7 +138,8 @@ module TrustyCms
138
138
  paths(type)
139
139
  end
140
140
  define_method("add_#{type}_paths".to_sym) do |additional_paths|
141
- ::ActiveSupport::Deprecation.warn("ExtensionLoader.add_#{type}_paths is has been moved and is deprecated. Please use TrustyCms.configuration.add_#{type}_paths", caller)
141
+ deprecation = ActiveSupport::Deprecation.new('1.0', 'trusty-cms')
142
+ deprecation.warn("ExtensionLoader.add_#{type}_paths is has been moved and is deprecated. Please use TrustyCms.configuration.add_#{type}_paths", caller)
142
143
  initializer.configuration.send("add_#{type}_paths".to_sym, additional_paths)
143
144
  end
144
145
  end
@@ -53,7 +53,10 @@ module TrustyCms::Taggable
53
53
  message = "Deprecated radius tag <r:#{tag_name}>"
54
54
  message << " will be removed or significantly changed in trusty #{options[:deadline]}." if options[:deadline]
55
55
  message << " Please use <r:#{options[:substitute]}> instead." if options[:substitute]
56
- ActiveSupport::Deprecation.warn(message)
56
+
57
+ deprecation_horizon = options[:deadline] || '1.0'
58
+ deprecation = ActiveSupport::Deprecation.new(deprecation_horizon, 'trusty-cms')
59
+ deprecation.warn(message)
57
60
  end
58
61
 
59
62
  module ClassMethods
@@ -1,3 +1,3 @@
1
1
  module TrustyCms
2
- VERSION = '7.0.35'.freeze
2
+ VERSION = '7.0.37'.freeze
3
3
  end
data/trusty_cms.gemspec CHANGED
@@ -37,7 +37,7 @@ a general purpose content management system--not merely a blogging engine.'
37
37
  s.add_dependency 'diffy'
38
38
  s.add_dependency 'drb'
39
39
  s.add_dependency 'execjs', '~> 2.7'
40
- s.add_dependency 'haml', '>= 5.0', '< 6.0'
40
+ s.add_dependency 'haml', '~> 6.3.0'
41
41
  s.add_dependency 'haml-rails'
42
42
  s.add_dependency 'highline', '>= 1.7.8', '< 3.2.0'
43
43
  s.add_dependency 'image_processing'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.35
4
+ version: 7.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-16 00:00:00.000000000 Z
11
+ date: 2025-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator
@@ -200,22 +200,16 @@ dependencies:
200
200
  name: haml
201
201
  requirement: !ruby/object:Gem::Requirement
202
202
  requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- version: '5.0'
206
- - - "<"
203
+ - - "~>"
207
204
  - !ruby/object:Gem::Version
208
- version: '6.0'
205
+ version: 6.3.0
209
206
  type: :runtime
210
207
  prerelease: false
211
208
  version_requirements: !ruby/object:Gem::Requirement
212
209
  requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '5.0'
216
- - - "<"
210
+ - - "~>"
217
211
  - !ruby/object:Gem::Version
218
- version: '6.0'
212
+ version: 6.3.0
219
213
  - !ruby/object:Gem::Dependency
220
214
  name: haml-rails
221
215
  requirement: !ruby/object:Gem::Requirement