# yujinakayama/transpec

The RSpec syntax converter

Repository: https://github.com/yujinakayama/transpec
Canonical: https://ross.abutalabs.com/products/transpec
Homepage: http://yujinakayama.me/transpec/
Language: Ruby
License: MIT
License Family: permissive
Topics: rspec, ruby, converter
Last push: 2023-02-21T18:52:49+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4785, "days_push": 1289, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1010, forks 48 (observed 2026-08-28T04:03:12.983357+00:00)

## What it is
Transpec is a command-line tool that automatically converts RSpec test code to the latest RSpec syntax using static and dynamic code analysis. It is officially recommended by the RSpec team for upgrading RSpec 2 specs to RSpec 3.

## Use cases
- convert rspec should syntax to expect syntax
- upgrade rspec 2 specs to rspec 3
- automatically migrate test suite to modern rspec
- convert stub and mock syntax in ruby specs
- bulk rewrite spec files preserving code style

## When to choose
- you are upgrading a Ruby project from RSpec 2 to RSpec 3
- you have a large spec suite using the old should/stub syntax
- you want syntax conversion that preserves formatting and honors your code style

## When to avoid
- your project already uses modern RSpec 3+ expect syntax
- you need a general-purpose Ruby refactoring tool rather than RSpec-specific conversion
- you need actively developed tooling for the newest RSpec versions

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: testing, parser, developer-tools
- domain: testing, developer-tools, programming-languages
- platform: ruby, cli, cross-platform
- tags: rspec, code-conversion, static-analysis, ruby-gem, test-migration

## Member repositories
- yujinakayama/transpec (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:12.983357+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:59.542936+00:00, confidence not recorded.
  - readme: https://github.com/yujinakayama/transpec (fetched 2026-08-28T04:03:12.983357+00:00, sha 5f1f55d2557f)
  - homepage: http://yujinakayama.me/transpec/ (fetched 2026-08-29T13:11:51.693523+00:00, sha 2d5e33084356)
- Data as of 2026-08-30T08:39:29.467469+00:00.
