Ruby Style Guide

Use the Ruby and Bundler versions declared by the repository. Follow its Gemfile and lockfile, not global gem versions.

  • Use snake_case methods and variables, PascalCase classes and modules, and two-space indentation.
  • Keep methods small, handle specific exceptions and use blocks to manage resource lifetimes.
  • Separate application logic from Rake tasks and documentation configuration.
  • Preserve pinned dependencies and review transitive updates. Do not commit credentials or generated vendor directories.
def normalize_name(value)
  value.strip
end

Run configured Rake/RSpec tests and optional RuboCop checks. For Jekyll, run the Bundler-managed production build and verify navigation and links.