Ruby configuration
You can customize the behavior of the Ruby SDK generator in generators.yml:
clientModuleName
Custom name for the client module. This allows you to customize the module name that wraps the generated client class.
customPagerName
Custom name for the pager class used in paginated endpoints. By default, the generator creates a standard pager class, but you can customize its name to match your SDK’s naming conventions.
customReadmeSections
Add custom sections to the generated README file. Each section requires a title and content.
The content supports template variables like {{ packageName }} that are replaced with actual values during generation.
enableWireTests
When enabled, generates mock server (wire) tests to verify that the SDK sends and receives HTTP requests as expected.
extraDependencies
Pro and Enterprise feature
This feature is available only for the Pro and Enterprise plans. To get started, reach out to support@buildwithfern.com.
Specify additional dependencies to include in the generated SDK’s gemspec. This is useful when you need to add custom gems that your SDK depends on.
extraDevDependencies
Pro and Enterprise feature
This feature is available only for the Pro and Enterprise plans. To get started, reach out to support@buildwithfern.com.
Specify additional development dependencies to include in the generated SDK’s Gemfile. These are dependencies used for development and testing but not required by end users.
module
Custom module name for the generated SDK. This sets the top-level Ruby module that wraps all generated code. By default, the module name is derived from the package name in your publish configuration or your organization name.
This generates code like:
requirePaths
Pro and Enterprise feature
This feature is available only for the Pro and Enterprise plans. To get started, reach out to support@buildwithfern.com.
Paths to files that will be auto-loaded when the gem is required. This is useful for including custom integrations or extensions that should be loaded automatically.
This will load lib/<gem>/custom_integration.rb and lib/<gem>/sentry_integration.rb when the gem is required.