Skip to content

Commit

Permalink
Rename crate to just gherkin
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Dec 6, 2021
1 parent 561974e commit d8803b8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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, '-') }}

Expand All @@ -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 }}
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[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 \
Cucumber testing framework.\
"""
license = "MIT OR Apache-2.0"
authors = ["Brendan Molloy <[email protected]>"]
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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/tagexpr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! #### Usage
//!
//! ```
//! use gherkin_rust::tagexpr::TagOperation;
//! use gherkin::tagexpr::TagOperation;
//! # fn main() -> Result<(), peg::error::ParseError<peg::str::LineCol>> {
//! let op: TagOperation = "@a and @b".parse()?;
//! # Ok(())
Expand Down
4 changes: 2 additions & 2 deletions tests/bad.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::path::Path;

use gherkin_rust::{Feature, ParseFileError};
use gherkin::{Feature, ParseFileError};

fn load_feature<P: AsRef<Path>>(path: P) -> Result<Feature, ParseFileError> {
Feature::parse_path(path.as_ref(), Default::default())
Expand All @@ -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"),
}
}
Expand Down

0 comments on commit d8803b8

Please sign in to comment.