From 4bde6daa6d33952ae613d3721866fbc6485e2528 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Mon, 25 Aug 2025 16:20:30 +0800 Subject: [PATCH] Disable JS recompilation (cherry picked from commit b0cf3ff27b01ed2469cd2f399a794b878f46d8b1) --- rubygem-actioncable.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rubygem-actioncable.spec b/rubygem-actioncable.spec index d6261cb..889c58e 100644 --- a/rubygem-actioncable.spec +++ b/rubygem-actioncable.spec @@ -1,9 +1,11 @@ %global gem_name actioncable -%global recompile_js 1 +# because the CoffeScript was replaced by ES2015 modules: +# https://github.com/rails/rails/pull/34177 +%global recompile_js 0 Name: rubygem-%{gem_name} Version: 7.0.7 -Release: 1 +Release: 2 Summary: WebSocket framework for Rails License: MIT URL: http://rubyonrails.org @@ -62,6 +64,7 @@ Documentation for %{name}. %build %if 0%{?recompile_js} > 0 cp -a %{SOURCE3} . +test -d lib/assets/compiled rm -rf lib/assets/compiled RUBYOPT=-Ilib ruby recompile_js.rb %endif @@ -100,6 +103,10 @@ popd %doc %{gem_instdir}/README.md %changelog +* Mon Aug 25 2025 yaoxin <1024769339@qq.com> - 7.0.7-2 +- Disable JS recompilation, because it does not do anything useful ATM apart + from unnecessarily pulling in CoffeeScript. + * Thu Aug 17 2023 xu_ping <707078654@qq.com> - 7.0.7-1 - Upgrade to version 7.0.7 -- Gitee