Skip to content

Commit

Permalink
Release branch 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed May 26, 2019
2 parents d8accc3 + 6ea0ef0 commit 4c2b389
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
#cargo-features = ["publish-lockfile"]

[package]
name = "cargo-tarpaulin"
version = "0.8.1"
version = "0.8.2"
authors = ["Daniel McKenna <[email protected]>"]
description = "Cargo-Tarpaulin is a tool to determine code coverage achieved via tests"
repository = "https://github.com/xd009642/tarpaulin"
readme = "README.md"
license = "MIT/Apache-2.0"
categories = ["development-tools"]
keywords = ["cargo", "cargo-subcommand", "testing"]
#publish-lockfile = true
edition = "2018"
autotests = false

Expand Down
21 changes: 15 additions & 6 deletions src/report/report_viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,25 @@ class App extends React.Component {
constructor(...args) {
super(...args);

let current = [];
if (window.location.hash.length > 1) {
current = window.location.hash.substr(1).split('/');
}

this.state = {
current,
current: [],
};
}

componentDidMount() {
this.updateStateFromLocation();
window.addEventListener("hashchange", () => this.updateStateFromLocation(), false);
}

updateStateFromLocation() {
if (window.location.hash.length > 1) {
const current = window.location.hash.substr(1).split('/');
this.setState({current});
} else {
this.setState({current: []});
}
}

getCurrentPath() {
let file = this.props.root;
let path = [file];
Expand Down
2 changes: 1 addition & 1 deletion travis-install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
curl -sL https://github.com/xd009642/tarpaulin/releases/download/0.8.1/cargo-tarpaulin-0.8.1-travis.tar.gz | tar xvz -C $HOME/.cargo/bin
curl -sL https://github.com/xd009642/tarpaulin/releases/download/0.8.2/cargo-tarpaulin-0.8.2-travis.tar.gz | tar xvz -C $HOME/.cargo/bin
echo "WARNING This method is no longer recommended. Use docker or crates.io to install tarpaulin"

0 comments on commit 4c2b389

Please sign in to comment.