Project

General

Profile

Feature #39111 » 0001-Updates-propshaft-gem-to-1.1.0-39111.patch

Marius BĂLTEANU, 2024-10-28 22:39

View differences:

Gemfile
gem 'rbpdf', '~> 1.21.3'
gem 'addressable'
gem 'rubyzip', '~> 2.3.0'
gem 'propshaft', '~> 0.8.0'
gem 'propshaft', '~> 1.1.0'
gem 'rack', '>= 3.1.3'
# Ruby Standard Gems
lib/redmine/asset_path.rb
@transition.add_src intermediate_path, logical_path
@transition.add_dest intermediate_path, logical_path
asset = if file.extname == '.css'
Redmine::Asset.new(file, logical_path: logical_path, version: version, transition_map: transition_map)
Redmine::Asset.new(file, logical_path: logical_path, version: version, transition_map: transition_map)
else
Propshaft::Asset.new(file, logical_path: logical_path, version: version)
load_path = Propshaft::LoadPath.new([ file ], compilers: Propshaft::Compilers.new(nil))
Propshaft::Asset.new(file, logical_path: logical_path, load_path: load_path)
end
assets[asset.logical_path.to_s] ||= asset
end
......
def initialize(config)
@extension_paths = config.redmine_extension_paths
@default_asset_path = config.redmine_default_asset_path
super(config.paths, version: config.version)
super(config.paths, version: config.version, compilers: Propshaft::Compilers.new(nil))
end
def asset_files
......
class Asset < Propshaft::Asset
def initialize(file, logical_path:, version:, transition_map:)
@transition_map = transition_map
super(file, logical_path: logical_path, version: version)
load_path = Propshaft::LoadPath.new([ file ], compilers: Propshaft::Compilers.new(nil))
super(file, logical_path: logical_path, load_path: load_path)
end
def content
(6-6/10)