fix(ruby): separate packageName from moduleName in ruby-v2 generator#11857
Merged
fern-support merged 5 commits intomainfrom Jan 28, 2026
Merged
Conversation
Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
iamnamananand996
approved these changes
Jan 28, 2026
…ansformation Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
Update changelog entry to fix organization name transformation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Refs: #11567
Fixes a regression introduced in PR #11567 where
packageNamefrom publish config was incorrectly being used for folder/module naming in addition to the gemspec name. This broke existing SDKs like Square by:lib/square_rb/instead oflib/square/)square_rbinstead ofsquare.rb)Changes Made
packageNamefrom the fallback chain ingetRootFolderName()andgetRootModuleName()- these now only usecustomConfig.moduleNameor organization namegetGemName()method that returnspackageNamedirectly (without normalization) for the gemspecspec.namefieldgetGemName()instead ofgetRootFolderName()for the gem namemoduletomoduleNamefor clarity inBaseRubyCustomConfigSchema.tsAbstractRubyGeneratorContext.tsandDynamicSnippetsGeneratorContext.tsrubySnakeCase()function that preserves letter-digit sequences (e.g., "auth0" stays "auth0", not "auth_0")Updates since last revision
snakeCasewith customrubySnakeCasefunction that doesn't treat letter-to-number transitions as word boundariesTesting
pnpm run check)Human Review Checklist
packageName(gemspec only) from folder/module naming is correctmoduletomoduleName- verify this is acceptable or if backward compatibility is neededrubySnakeCasefunction handles edge cases correctly (consecutive uppercase like "AWS" → "aws", mixed like "HTTPServer" → "http_server")Link to Devin run
Requested by: @jsklan