From 17584cba0f7e42004b1233cc560f98b05a40ddca Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 26 Feb 2024 13:43:28 +0000 Subject: [PATCH 1/3] Version set to 0.2.1 --- .woodpecker.yml | 7 ++++--- Cargo.lock | 2 +- Cargo.toml | 10 +++++++++- README.md | 4 ++++ 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index ec38d74..b2d8b5d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -35,7 +35,8 @@ steps: commands: - wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz - tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz - - cp cargo-binstall /usr/local/cargo/bin + - rm cargo-binstall-x86_64-unknown-linux-musl.tgz + - mv cargo-binstall /usr/local/cargo/bin - cargo binstall -y cargo-machete - cargo machete @@ -90,7 +91,7 @@ steps: image: *rust_image commands: - cargo login "$CARGO_REGISTRY_TOKEN" - - cargo publish --registry crates-io --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes - secrets: [cargo_api_token] + - cargo publish --registry crates-io --no-verify + secrets: [cargo_registry_token] when: event: tag diff --git a/Cargo.lock b/Cargo.lock index eaf6ebe..4fc00cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -122,7 +122,7 @@ dependencies = [ [[package]] name = "skip" -version = "0.2.0" +version = "0.2.1" dependencies = [ "clap", ] diff --git a/Cargo.toml b/Cargo.toml index 8a2e773..ec6ed3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,15 @@ [package] name = "skip" -version = "0.2.0" +version = "0.2.1" edition = "2021" +authors = ["Paul Campbell "] +categories = ["command-line-utilities"] +description = "Skip lines in a file" +license = "MIT" +repository = "https://git.kemitix.net/kemitix/skip" +keywords = ["skip", "lines", "file", "text", "utility"] +rust-version = "1.74.1" +exclude = [".cargo_home"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index bda2f76..97da783 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ As `head` will show the top of a file after a number of line, Additionally, it can check for whole lines matching, or for a token being present on the line. +N.B.: The `skip` crate used to be an implementation of [Skip list](https://en.wikipedia.org/wiki/Skip_list), +by [Luo Jia / Zhouqi Jiang](https://github.com/luojia65) ([source](https://github.com/luojia65/skip)). +That crate will be republished as [skip-list](https://crates.io/crates/skip-list) (soon). + ## Usage ### Skip a fixed number of lines -- 2.45.2 From 3c93a353b54bfea208172ea9001b29b9e10b321d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 28 Feb 2024 17:28:09 +0000 Subject: [PATCH 2/3] fix typo in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 97da783..188c728 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Skip part of a file. -As `head` will show the top of a file after a number of line, +As `head` will show the top of a file up-to a number of line, so `skip` will do the opposite, and not show the top of the file, but will show the rest. -- 2.45.2 From e9aa5ba1c4e70f6d0c69abeaa9a1e7b44de118ec Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 28 Feb 2024 17:31:46 +0000 Subject: [PATCH 3/3] only do integration tests when crate has been built --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index b2d8b5d..b6cce0c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -86,6 +86,7 @@ steps: image: *rust_image commands: - ./test.sh + when: *slow_check_paths publish_to_crates_io: image: *rust_image -- 2.45.2