mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
2e429a034d
Lets a gem author register a block that runs after the user's `build.gem` block has been processed. Intended for filling in defaults that depend on user-supplied configuration — for example, library auto-detection that should only kick in when the user hasn't explicitly chosen which library to use. Initialization order is now: 1. block in MRuby::Gem::Specification.new (gem author defaults) 2. block in build.gem (user override) 3. block in post_user_config (gem author finalize, new) Closes #6212, picked from PR by dearblue with the method renamed from last_initializer to post_user_config (per matz's review). Co-authored-by: Claude <noreply@anthropic.com>