File make-sle155-compatible.patch of Package hawk2.32794
Author: Aleksei Burlakov <aburlakov@suse.com>
This patch makes the hawk generated from the master branch from the github
compatible with sle 15.5. Without it, puma would complain that
Uglifier is not declared in the scope.
Index: hawk2-2.6.4+git.1702030539.5fb7d91b/hawk/config/environments/production.rb
===================================================================
--- hawk2-2.6.4+git.1702030539.5fb7d91b.orig/hawk/config/environments/production.rb
+++ hawk2-2.6.4+git.1702030539.5fb7d91b/hawk/config/environments/production.rb
@@ -30,7 +30,7 @@ Rails.application.configure do
config.assets.debug = false
config.assets.raise_runtime_errors = false
- config.assets.js_compressor = Uglifier.new(harmony: true)
+ config.assets.js_compressor = :uglifier
config.assets.css_compressor = :sass
config.assets.compile = true
config.assets.digest = true