diff --git a/Cargo.toml b/Cargo.toml index b27c9b6..25502ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ name = "libmake" readme = "README.md" repository = "https://github.com/sebastienrousseau/libmake.git" rust-version = "1.75.0" -version = "0.2.4" +version = "0.2.5" include = [ "/CONTRIBUTING.md", "/LICENSE-APACHE", @@ -67,7 +67,7 @@ rlg = "0.0.3" serde = { version = "1.0.197", features = ["derive"] } serde_ini = "0.2.0" serde_json = "1.0.115" -serde_yml = "0.0.1" +serde_yml = "0.0.4" tempfile = "3.10.1" toml = "0.8.12" uuid = { version = "1.8.0", features = ["v4"] } diff --git a/README.md b/README.md index 99ac68b..952ca27 100644 --- a/README.md +++ b/README.md @@ -356,6 +356,6 @@ providing a lot of useful suggestions on how to improve this project. [crates-badge]: https://img.shields.io/crates/v/libmake.svg?style=for-the-badge "Crates.io Badge" [divider]: https://kura.pro/common/images/elements/divider.svg "divider" [docs-badge]: https://img.shields.io/docsrs/libmake.svg?style=for-the-badge "Docs.rs Badge" -[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.4-orange.svg?style=for-the-badge "Lib.rs Badge" +[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.5-orange.svg?style=for-the-badge "Lib.rs Badge" [license-badge]: https://img.shields.io/crates/l/libmake.svg?style=for-the-badge "License Badge" [made-with-rust-badge]: https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust "Made With Rust Badge" diff --git a/TEMPLATE.md b/TEMPLATE.md index b5db5ef..146c827 100644 --- a/TEMPLATE.md +++ b/TEMPLATE.md @@ -5,7 +5,7 @@ alt="LibMake logo" width="261" align="right" /> -# LibMake v0.2.4 🦀 +# LibMake v0.2.5 🦀 A code generator to reduce repetitive tasks and build high-quality Rust libraries. @@ -64,6 +64,6 @@ The library is designed to be used as a command-line tool. It is available on [C [codecov-badge]: https://img.shields.io/codecov/c/github/sebastienrousseau/libmake?style=for-the-badge&token=Q9KJ6XXL67 "Codecov Badge" [crates-badge]: https://img.shields.io/crates/v/libmake.svg?style=for-the-badge "Crates.io Badge" [docs-badge]: https://img.shields.io/docsrs/libmake.svg?style=for-the-badge "Docs.rs Badge" -[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.4-orange.svg?style=for-the-badge "Lib.rs Badge" +[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.5-orange.svg?style=for-the-badge "Lib.rs Badge" [license-badge]: https://img.shields.io/crates/l/libmake.svg?style=for-the-badge "License Badge" [made-with-rust-badge]: https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust "Made With Rust Badge" diff --git a/src/cli.rs b/src/cli.rs index b760dfc..9e11fff 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -38,7 +38,7 @@ pub fn build() -> Result { create_arg_info("readme", Some("README.md"), "Sets the README file for the library", 'm', "readme", "README"), create_arg_info("repository", Some("https://github.com/example/my_library"), "Sets the repository URL of the library", 'g', "repository", "REPOSITORY"), create_arg_info("rustversion", Some("1.75.0"), "Sets the Rust version of the library", 'r', "rustversion", "RUSTVERSION"), - create_arg_info("version", Some("0.2.4"), "Sets the version of the library", 'v', "version", "VERSION"), + create_arg_info("version", Some("0.2.5"), "Sets the version of the library", 'v', "version", "VERSION"), create_arg_info("website", Some("https://test.com"), "Sets the website of the library author", 'w', "website", "WEBSITE"), ]; diff --git a/src/lib.rs b/src/lib.rs index adfb540..697f1ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ //! //! [![Rust](https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust)](https://www.rust-lang.org) //! [![Crates.io](https://img.shields.io/crates/v/libmake.svg?style=for-the-badge&color=success&labelColor=27A006)](https://crates.io/crates/libmake) -//! [![Lib.rs](https://img.shields.io/badge/lib.rs-v0.2.4-success.svg?style=for-the-badge&color=8A48FF&labelColor=6F36E4)](https://lib.rs/crates/libmake) +//! [![Lib.rs](https://img.shields.io/badge/lib.rs-v0.2.5-success.svg?style=for-the-badge&color=8A48FF&labelColor=6F36E4)](https://lib.rs/crates/libmake) //! [![GitHub](https://img.shields.io/badge/github-555555?style=for-the-badge&labelColor=000000&logo=github)](https://github.com/sebastienrousseau/libmake) //! [![License](https://img.shields.io/crates/l/libmake.svg?style=for-the-badge&color=007EC6&labelColor=03589B)](http://opensource.org/licenses/MIT) //! diff --git a/template/Cargo.tpl b/template/Cargo.tpl index bed4758..087ae2a 100644 --- a/template/Cargo.tpl +++ b/template/Cargo.tpl @@ -42,7 +42,7 @@ env_logger = "0.11.3" rlg = "0.0.3" serde = { version = "1.0.197", features = ["derive"] } serde_json = "1.0.115" -serde_yml = "0.0.1" +serde_yml = "0.0.4" toml = "0.8.12" vrd = "0.0.6" diff --git a/tests/data/mylibrary.csv b/tests/data/mylibrary.csv index 5ab4225..c2e4fac 100644 --- a/tests/data/mylibrary.csv +++ b/tests/data/mylibrary.csv @@ -1,2 +1,2 @@ author,build,categories,description,documentation,edition,email,homepage,keywords,license,name,output,readme,repository,rustversion,version,website -Me,build.rs,"['category 1', 'category 2']",A library for doing things,https://lib.rs/crates/my_library,2021,test@test.com,https://test.com,"['keyword1', 'keyword2']",MIT OR Apache-2.0,my_library,my_library,README.md,https://github.com/test/test,1.75.0,0.2.4,https://test.com +Me,build.rs,"['category 1', 'category 2']",A library for doing things,https://lib.rs/crates/my_library,2021,test@test.com,https://test.com,"['keyword1', 'keyword2']",MIT OR Apache-2.0,my_library,my_library,README.md,https://github.com/test/test,1.75.0,0.2.5,https://test.com diff --git a/tests/data/mylibrary.ini b/tests/data/mylibrary.ini index 2b23e30..45f9cbb 100644 --- a/tests/data/mylibrary.ini +++ b/tests/data/mylibrary.ini @@ -13,5 +13,5 @@ output = "my_library" readme = "README.md" repository = "https://github.com/test/test" rustversion = "1.75.0" -version = "0.2.4" +version = "0.2.5" website = "https://test.com" diff --git a/tests/data/mylibrary.json b/tests/data/mylibrary.json index e9fe32a..8499b32 100644 --- a/tests/data/mylibrary.json +++ b/tests/data/mylibrary.json @@ -14,6 +14,6 @@ "readme": "README.md", "repository": "https://github.com/test/test", "rustversion": "1.75.0", - "version": "0.2.4", + "version": "0.2.5", "website": "https://test.com" } diff --git a/tests/data/mylibrary.toml b/tests/data/mylibrary.toml index 5472bd5..b2f262e 100644 --- a/tests/data/mylibrary.toml +++ b/tests/data/mylibrary.toml @@ -13,5 +13,5 @@ output = "my_library" readme = "README.md" repository = "https://github.com/test/test" rustversion = "1.75.0" -version = "0.2.4" +version = "0.2.5" website = "https://test.com" diff --git a/tests/data/mylibrary.yaml b/tests/data/mylibrary.yaml index 19080ee..da01492 100644 --- a/tests/data/mylibrary.yaml +++ b/tests/data/mylibrary.yaml @@ -13,5 +13,5 @@ output: my_library readme: README.md repository: https://github.com/test/test rustversion: '1.75.0' -version: '0.2.4' +version: '0.2.5' website: https://test.com diff --git a/tests/test_utils.rs b/tests/test_utils.rs index 69eebe3..c27fd33 100644 --- a/tests/test_utils.rs +++ b/tests/test_utils.rs @@ -91,7 +91,7 @@ mod tests { ); assert_eq!( get_csv_field(Some(file_path), 15), - Some(vec!["0.2.4".to_string()]) + Some(vec!["0.2.5".to_string()]) ); assert_eq!( get_csv_field(Some(file_path), 16),