From d8803b808eb5bd2684b9dc7c868a9637a0398100 Mon Sep 17 00:00:00 2001 From: tyranron Date: Mon, 6 Dec 2021 10:57:28 +0100 Subject: [PATCH] Rename crate to just `gherkin` --- .github/workflows/ci.yml | 8 ++++---- Cargo.toml | 6 +++--- README.md | 4 ++-- src/tagexpr.rs | 2 +- tests/bad.rs | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d7eaed..447ad40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,7 +168,7 @@ jobs: id: release run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - - name: Verify release version matches `gherkin_rust` Cargo manifest + - name: Verify release version matches `gherkin` Cargo manifest run: >- test "${{ steps.release.outputs.VERSION }}" \ == "$(grep -m1 'version = "' Cargo.toml | cut -d '"' -f2)" @@ -183,7 +183,7 @@ jobs: with: name: ${{ steps.release.outputs.VERSION }} body: | - [API docs](https://docs.rs/gherkin_rust/${{ steps.release.outputs.VERSION }}) + [API docs](https://docs.rs/gherkin/${{ steps.release.outputs.VERSION }}) [Changelog](${{ steps.changelog.outputs.LINK }}) prerelease: ${{ contains(steps.release.outputs.VERSION, '-') }} @@ -199,6 +199,6 @@ jobs: profile: minimal toolchain: stable - - name: Publish `gherkin_rust` crate - run: cargo publish -p gherkin_rust + - name: Publish `gherkin` crate + run: cargo publish -p gherkin --token ${{ secrets.CRATESIO_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 528596b..643cb1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "gherkin_rust" -version = "0.10.2" +name = "gherkin" +version = "0.11.0-dev" edition = "2018" description = """\ Pure Rust implementation of Gherkin language (`.feature` file) for \ @@ -8,7 +8,7 @@ description = """\ """ license = "MIT OR Apache-2.0" authors = ["Brendan Molloy "] -documentation = "https://docs.rs/gherkin_rust" +documentation = "https://docs.rs/gherkin" homepage = "https://github.com/cucumber-rs/gherkin" repository = "https://github.com/cucumber-rs/gherkin" readme = "README.md" diff --git a/README.md b/README.md index f07a8b0..a24fa69 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Gherkin language for Rust ========================= -[![Documentation](https://docs.rs/gherkin_rust/badge.svg)](https://docs.rs/gherkin_rust) +[![Documentation](https://docs.rs/gherkin/badge.svg)](https://docs.rs/gherkin) [![CI](https://github.com/cucumber-rs/gherkin/workflows/CI/badge.svg?branch=main "CI")](https://github.com/cucumber-rs/gherkin/actions?query=workflow%3ACI+branch%3Amain) [![Rust 1.46+](https://img.shields.io/badge/rustc-1.46+-lightgray.svg "Rust 1.46+")](https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html) [![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance) @@ -16,7 +16,7 @@ If you want to run Cucumber tests in Rust, try [cucumber-rust](https://github.co ```toml [dependencies] -gherkin_rust = "0.10" +gherkin = "0.11" ``` ## Further information diff --git a/src/tagexpr.rs b/src/tagexpr.rs index 0f1705a..0c9d21f 100644 --- a/src/tagexpr.rs +++ b/src/tagexpr.rs @@ -16,7 +16,7 @@ //! #### Usage //! //! ``` -//! use gherkin_rust::tagexpr::TagOperation; +//! use gherkin::tagexpr::TagOperation; //! # fn main() -> Result<(), peg::error::ParseError> { //! let op: TagOperation = "@a and @b".parse()?; //! # Ok(()) diff --git a/tests/bad.rs b/tests/bad.rs index 961fe62..cc9a32d 100644 --- a/tests/bad.rs +++ b/tests/bad.rs @@ -1,6 +1,6 @@ use std::path::Path; -use gherkin_rust::{Feature, ParseFileError}; +use gherkin::{Feature, ParseFileError}; fn load_feature>(path: P) -> Result { Feature::parse_path(path.as_ref(), Default::default()) @@ -15,7 +15,7 @@ fn inconsistent_cell_count() { ParseFileError::Parsing { error, .. } => { let error = error.unwrap(); match error { - gherkin_rust::EnvError::InconsistentCellCount(_) => {} + gherkin::EnvError::InconsistentCellCount(_) => {} _ => panic!("Invalid error"), } }