Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Sep 18, 2017
1 parent 60674d4 commit b00e84c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-make"
version = "0.3.77"
version = "0.4.1"
authors = ["Sagie Gur-Ari <sagiegurari@gmail.com>"]
description = "Rust task runner and build tool."
license = "Apache-2.0"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -686,15 +686,15 @@ For faster cargo-make installation as part of the build, you can also pull the b

````yml
script:
- wget -O ~/.cargo/bin/cargo-make https://bintray.com/sagiegurari/cargo-make/download_file?file_path=cargo-make_v0.3.77
- wget -O ~/.cargo/bin/cargo-make https://bintray.com/sagiegurari/cargo-make/download_file?file_path=cargo-make_v0.4.1
- chmod 777 ~/.cargo/bin/cargo-make
- cargo-make make ci-flow
````

The specific version of cargo-make requested is defined in the suffix of the cargo-make file name in the form of: cargo-make_v[VERSION], for example

````sh
https://bintray.com/sagiegurari/cargo-make/download_file?file_path=cargo-make_v0.3.77
https://bintray.com/sagiegurari/cargo-make/download_file?file_path=cargo-make_v0.4.1
````

In order to pull the latest prebuild cargo-make binary, use the following example:
Expand Down Expand Up @@ -1165,6 +1165,7 @@ See [contributing guide](.github/CONTRIBUTING.md)

| Date | Version | Description |
| ----------- | ------- | ----------- |
| 2017-09-18 | v0.4.1 | Added watch-flow task |
| 2017-09-17 | v0.3.77 | Automatically define install_crate and enable cargo install arguments via install_crate_args |
| 2017-09-16 | v0.3.76 | Build failure will not cause panic but will exit |
| 2017-09-12 | v0.3.75 | By default build and test should work with "--all-features" flag |
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ theme: jekyll-theme-cayman
title: cargo-make
description: Rust task runner and build tool.
show_downloads: false
version: 0.3.77
version: 0.4.1
1 change: 1 addition & 0 deletions docs/_includes/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,7 @@ See [contributing guide](https://github.com/sagiegurari/cargo-make/blob/master/.

| Date | Version | Description |
| ----------- | ------- | ----------- |
| 2017-09-18 | v0.4.1 | Added watch-flow task |
| 2017-09-17 | v0.3.77 | Automatically define install_crate and enable cargo install arguments via install_crate_args |
| 2017-09-16 | v0.3.76 | Build failure will not cause panic but will exit |
| 2017-09-12 | v0.3.75 | By default build and test should work with "--all-features" flag |
Expand Down
4 changes: 3 additions & 1 deletion docs/api/src/cargo_make/cli.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
<span id="165">165</span>
<span id="166">166</span>
<span id="167">167</span>
<span id="168">168</span>
</pre><pre class="rust ">
<span class="doccomment">//! # cli</span>
<span class="doccomment">//!</span>
Expand Down Expand Up @@ -244,7 +245,8 @@

<span class="macro">debug</span><span class="macro">!</span>(<span class="string">&quot;Cli Args {:#?}&quot;</span>, <span class="kw-2">&amp;</span><span class="ident">cli_args</span>);

<span class="kw">if</span> <span class="op">!</span><span class="ident">cli_args</span>.<span class="ident">disable_check_for_updates</span> {
<span class="comment">// only run check for updates if we are not in a CI env and user didn&#39;t ask to skip the check</span>
<span class="kw">if</span> <span class="op">!</span><span class="ident">cli_args</span>.<span class="ident">disable_check_for_updates</span> <span class="op">&amp;&amp;</span> <span class="op">!</span><span class="ident">environment</span>::<span class="ident">is_ci</span>() {
<span class="ident">version</span>::<span class="ident">check</span>();
}

Expand Down
22 changes: 22 additions & 0 deletions docs/api/src/cargo_make/environment/mod.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,17 @@
<span id="190">190</span>
<span id="191">191</span>
<span id="192">192</span>
<span id="193">193</span>
<span id="194">194</span>
<span id="195">195</span>
<span id="196">196</span>
<span id="197">197</span>
<span id="198">198</span>
<span id="199">199</span>
<span id="200">200</span>
<span id="201">201</span>
<span id="202">202</span>
<span id="203">203</span>
</pre><pre class="rust ">
<span class="doccomment">//! # env</span>
<span class="doccomment">//!</span>
Expand Down Expand Up @@ -428,6 +439,17 @@
}
}
}

<span class="kw">fn</span> <span class="ident">is_env_defined</span>(<span class="ident">key</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) <span class="op">-&gt;</span> <span class="ident">bool</span> {
<span class="kw">match</span> <span class="ident">env</span>::<span class="ident">var</span>(<span class="ident">key</span>) {
<span class="prelude-val">Ok</span>(_) <span class="op">=&gt;</span> <span class="bool-val">true</span>,
_ <span class="op">=&gt;</span> <span class="bool-val">false</span>,
}
}

<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">is_ci</span>() <span class="op">-&gt;</span> <span class="ident">bool</span> {
<span class="ident">is_env_defined</span>(<span class="string">&quot;CI&quot;</span>) <span class="op">||</span> <span class="ident">is_env_defined</span>(<span class="string">&quot;CONTINUOUS_INTEGRATION&quot;</span>) <span class="op">||</span> <span class="ident">is_env_defined</span>(<span class="string">&quot;BUILD_NUMBER&quot;</span>)
}
</pre>
</section>
<section id='search' class="content hidden"></section>
Expand Down

0 comments on commit b00e84c

Please sign in to comment.