From f7022aaa265c8d7f2db2cef9b3929a85196b1f3d Mon Sep 17 00:00:00 2001 From: Minoru Osuka Date: Fri, 1 May 2020 19:26:52 +0900 Subject: [PATCH] Update dependencies (#3) --- Cargo.toml | 5 +++-- Makefile | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3dfbc92..762bbec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lindera-tantivy" -version = "0.1.0" +version = "0.1.1" authors = ["Minoru Osuka "] edition = "2018" description = "A Tokenizer for Tantivy, based on Lindera." @@ -13,5 +13,6 @@ categories = ["text-processing"] license = "MIT" [dependencies] -lindera = "0.3.4" tantivy = "0.12.0" + +lindera = "0.3.5" diff --git a/Makefile b/Makefile index b33bfc9..3bfffc2 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +LINDERA_TANTIVY_VERSION ?= $(shell cargo metadata --no-deps --format-version=1 | jq -r '.packages[] | select(.name=="lindera-tantivy") | .version') + .DEFAULT_GOAL := build clean: @@ -11,3 +13,12 @@ build: test: cargo test + +tag: + git tag v$(LINDERA_TANTIVY_VERSION) + git push origin v$(LINDERA_TANTIVY_VERSION) + +publish: +ifeq ($(shell cargo show --json lindera-tantivy | jq -r '.versions[].num' | grep $(LINDERA_TANTIVY_VERSION)),) + cargo package && cargo publish +endif