[package]
name = "spellabet"
version = "0.3.1"
edition.workspace = true
rust-version.workspace = true
description = "Convert characters into spelling alphabet code words"
documentation = "https://docs.rs/spellabet/0.3.1/spellabet/"
readme = "README.md"
homepage = "https://github.com/EarthmanMuons/spellout/tree/main/crates/spellabet"
repository = "https://github.com/EarthmanMuons/spellout/tree/main/crates/spellabet"
license.workspace = true
keywords = ["formatting", "humanize", "text"]
categories = ["text-processing", "value-formatting"]
publish = true

# https://github.com/crate-ci/cargo-release/
[package.metadata.release]
pre-release-replacements = [
  { file = "Cargo.toml", search = "docs.rs/spellabet/[0-9]+.[0-9]+.[0-9]+", replace = "docs.rs/spellabet/{{version}}", exactly = 1 },
  { file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}" },
  { file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}", exactly = 1 },
  { file = "CHANGELOG.md", search = "<!-- release-date -->", replace = "- {{date}}" },
  { file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n\n## [Unreleased] <!-- release-date -->", exactly = 1 },
  { file = "CHANGELOG.md", search = "<!-- next-url -->", replace = "<!-- next-url -->\n[Unreleased]: https://github.com/EarthmanMuons/spellout/compare/{{tag_name}}...HEAD", exactly = 1 },
  { file = "README.md", search = "docs.rs/spellabet/[0-9]+.[0-9]+.[0-9]+", replace = "docs.rs/spellabet/{{version}}" },
  { file = "README.md", search = "spellabet = .*", replace = "{{crate_name}} = \"{{version}}\"" },
]
tag = true

[dependencies]
convert_case = "0.11.0"

[dev-dependencies]
insta = "1.46.1"
