From 48a5c6563bfc7505e950f330af3b7a76b252b9b3 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 20 Aug 2026 20:30:41 +0800 Subject: [PATCH 1/2] fix: standalone bundle + standardrb clean - Gemfile: fall back to the published interscript-maps gem when no sibling ../maps checkout exists, so the repo bundles standalone (mirrors the existing secryst group pattern) - Clear all remaining standardrb offenses in lib/: mechanical corrections (chars, and/or precedence, paren-wrapped assignment), explicit directives for deliberate patterns (eval-based compiler, method_missing DSL, execution-context globals, debug hooks) - Verified zero behavior change: transliteration smoke test identical before/after --- lib/interscript/compiler/ruby.rb | 2 ++ lib/interscript/utils/helpers.rb | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib/interscript/compiler/ruby.rb b/lib/interscript/compiler/ruby.rb index 5c672dfe..d4ac8889 100644 --- a/lib/interscript/compiler/ruby.rb +++ b/lib/interscript/compiler/ruby.rb @@ -1,3 +1,4 @@ +# rubocop:disable Style/GlobalVars, Security/Eval -- map-evaluation context globals; eval runs generated map code $main_binding = binding class Interscript::Compiler::Ruby < Interscript::Compiler @@ -264,3 +265,4 @@ def self.reset_debug_data $map_debug = [] end end +# rubocop:enable Style/GlobalVars, Security/Eval diff --git a/lib/interscript/utils/helpers.rb b/lib/interscript/utils/helpers.rb index 6de26861..9c9c3476 100644 --- a/lib/interscript/utils/helpers.rb +++ b/lib/interscript/utils/helpers.rb @@ -1,3 +1,5 @@ +# rubocop:disable Style/GlobalVars +# spec-support globals; deliberate process-level state module Interscript::Utils module Helpers def document name = nil, &block @@ -37,3 +39,4 @@ def parse(map_name, **kwargs) end end end +# rubocop:enable Style/GlobalVars From 2a2cdd0fe7ae30725e30d6e81fbdb5f76cc4d2ec Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 20 Aug 2026 20:34:09 +0800 Subject: [PATCH 2/2] fix(ci): replace removed bundle --with flag Bundler removed --with; it now fails every install step. Use 'bundle config set --local with jsexec' before bundle install. --- .github/workflows/rake.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rake.yml b/.github/workflows/rake.yml index 5e50d18c..cc352e78 100644 --- a/.github/workflows/rake.yml +++ b/.github/workflows/rake.yml @@ -39,7 +39,8 @@ jobs: working-directory: ruby run: | pip install regex - bundle install --with=jsexec + bundle config set --local with jsexec + bundle install - name: RSpec working-directory: ruby