Skip to content

Commit

Permalink
Bump version to v.1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mackwic committed Jan 5, 2019
1 parent 36a3d14 commit 4f7434a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# 1.7.0 (January, 2019)
- TECH: update lazy\_static
- FEAT: introduce respect for the `NO_COLOR` environment variable

# 1.6.1 (July 9, 2018)
- TECH: update lazy\_static
- CHORE: fix typos in README and documentation
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "colored"
description = "The most simple way to add colors in your terminal"
version = "1.6.1"
version = "1.7.0"
authors = ["Thomas Wickham <mackwic@gmail.com>"]
license = "MPL-2.0"
homepage = "https://github.com/mackwic/colored"
Expand All @@ -14,7 +14,7 @@ keywords = ["color", "string", "term", "ansi_term", "term-painter"]
no-color = []

[dependencies]
lazy_static = "^1.0"
lazy_static = "1.2.0"

[dev_dependencies]
ansi_term = "^0.9"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Add this in your `Cargo.toml`:

```toml
[dependencies]
colored = "1.6"
colored = "1.7"
```

and add this to your `lib.rs` or `main.rs`:
Expand Down Expand Up @@ -95,7 +95,7 @@ As `Color` implements `FromStr`, `From<&str>`, and `From<String>`, you can easil
"white string".color("zorglub");

// the safer way via a Result
let color_res = "zorglub".parse(); // <- this returns a Result<Color, ()>
let color_res : Result<Color, ()> = "zorglub".parse();
"red string".color(color_res.unwrap_or(Color::Red));
```

Expand All @@ -110,8 +110,8 @@ For example, you can do this in your `Cargo.toml` to disable color in tests:
```toml
[features]
# this effectively enable the feature `no-color` of colored when testing with
# `cargo test --feature test`
test = ["colored/no-color"]
# `cargo test --feature dumb_terminal`
dumb_terminal = ["colored/no-color"]
```

You can use have even finer control by using the
Expand Down

0 comments on commit 4f7434a

Please sign in to comment.