Skip to content

erbfmt v0.3.2

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Nov 12:23
· 1 commit to main since this release
db159cd

erbfmt v0.3.2

This release fixes file exclusions in the VS Code extension and reduces CLI output for files without issues.

Fixes and improvements

  • VS Code file exclusions: manual formatting, format on save, lint diagnostics, and format diagnostics now respect files.includes using the original document path. Files outside include patterns or matched by exclusion patterns are skipped.
  • Unsaved editor buffers: the new --stdin-filepath PATH CLI option reads source from standard input while using the original path for file selection and diagnostic locations. Excluded source is returned unchanged in format mode.
  • Quieter CLI output: --check no longer prints success messages for formatted files; --lint is silent for files without diagnostics; assist mode is silent when no actions are available.
  • Release builds: Apple Silicon packaging now uses the supported macos-15 runner.

For example, the extension now honors directory exclusions such as:

{
  "files": {
    "includes": ["app/views/**/*.html.erb", "!app/views/generated/**"]
  }
}

Upgrade notes

  • Update both the CLI and VS Code extension to 0.3.2. The extension requires a CLI supporting --stdin-filepath, including when invoked through bundle exec erbfmt.
  • JSON lint output has changed: only files with diagnostics produce JSON records. Scripts expecting one record for every processed file must handle omitted clean files.
  • The VSIX does not bundle or download the CLI. Install the Ruby gem or a standalone binary before using the extension.

Install

All five Ruby gem variants are published on RubyGems.org: the ruby fallback plus Linux x64, macOS Intel, macOS Apple Silicon, and Windows UCRT x64 platform gems.

gem install erbfmt -v 0.3.2
erbfmt --version

For Bundler projects, update any pinned Gemfile version to 0.3.2, update the lockfile, and confirm bundle exec erbfmt --version.

Download the VS Code extension and install it with Extensions: Install from VSIX… or:

code --install-extension erbfmt-vscode-0.3.2.vsix

Release assets and validation

The 14 attached assets include four standalone binary archives for Linux x64, macOS Intel / Apple Silicon, and Windows x64; four SHA-256 checksum files; five Ruby gems; and the VSIX.

All platform builds passed. Archive checksums, Linux binary execution, stdin formatting and exclusions, and installation and execution from a fresh Bundler project were verified.

Changes: #10, #11. Full changelog.