From a195662b9b627d537d46d0486ce9bb44305f6c9e Mon Sep 17 00:00:00 2001 From: Devin R Date: Fri, 29 May 2020 17:03:32 -0400 Subject: [PATCH] release .1.11 to so cratesio shows correct readme --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- src/widgets/message/ctrl_char.rs | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f5eb839..b5f776d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1942,7 +1942,7 @@ dependencies = [ [[package]] name = "rumatui" -version = "0.1.10-alpha" +version = "0.1.11-alpha" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 8711a52..506de9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rumatui" -version = "0.1.10-alpha" +version = "0.1.11-alpha" authors = ["Devin R "] license = "MIT/Apache-2.0" description = "A click-able command-line Matrix client." diff --git a/README.md b/README.md index 7246033..8f5b49c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This project is still very much a work in progress. Please file issues, but I wi # Install ```bash -cargo install rumatui --version 0.1.10-alpha +cargo install rumatui --version 0.1.11-alpha ``` # Run diff --git a/src/widgets/message/ctrl_char.rs b/src/widgets/message/ctrl_char.rs index 19716d4..e3a0b0b 100644 --- a/src/widgets/message/ctrl_char.rs +++ b/src/widgets/message/ctrl_char.rs @@ -424,6 +424,7 @@ fn main() { assert_eq!( "\u{1b}]8;;http://www.googlelskdnfodaf.com/\n", + // "{:?}", CtrlChars::parse(w.to_string()).to_string() ); } @@ -546,6 +547,8 @@ https://matrix.org/docs/spec/client_server/latest#post-matrix-client-r0-rooms-ro let mut w = Writer::default(); mdcat::push_tty(&settings, &mut w, &std::path::Path::new("/"), parser).expect("failed"); - println!("{:?}", CtrlChars::parse(w.to_string()).to_string()) + let expected = "TWIM: \\n# Docker-matrix\\n\\nThe docker image for synapse v1.12.4rc1 is now on \u{1b}]8;;https://hub.docker.com/r/mvgorcum/docker-matrix/tags\n"; + + assert_eq!(expected, CtrlChars::parse(w.to_string()).to_string()) } }