From c894a2eb722e86b9c54f997fb5938c84fde8d124 Mon Sep 17 00:00:00 2001 From: Eugene Kalinin Date: Fri, 20 Mar 2015 11:54:30 +0300 Subject: [PATCH] fixed rust plugin: plug_list_versions --- src/nv-commands/version | 2 +- src/nv-plugins/rust | 4 ++-- tests/help.bats | 2 +- tests/version.bats | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nv-commands/version b/src/nv-commands/version index 496dc70..17ed5b5 100644 --- a/src/nv-commands/version +++ b/src/nv-commands/version @@ -1,6 +1,6 @@ #!/usr/bin/env bash -NV_VERSION=0.8.0 +NV_VERSION=0.8.1 nv_cmd_default() { echo "$(nv_cmd_name) $NV_VERSION" diff --git a/src/nv-plugins/rust b/src/nv-plugins/rust index 60abf99..7f01209 100644 --- a/src/nv-plugins/rust +++ b/src/nv-plugins/rust @@ -2,8 +2,8 @@ # Output lists of versions plug_list_versions() { - echo $(curl -s https://github.com/rust-lang/rust/wiki/Doc-releases | \ - egrep 'static.rust-lang.org\/dist\/rust-[0-9]+\.[0-9]+(\.[0-9]+)*\.tar\.gz' | \ + echo $(curl -s http://static.rust-lang.org/dist/index.html | \ + egrep 'dist\/rust-[0-9]+\.[0-9]+(\.[0-9]+)*\.tar\.gz' | \ egrep -o '[0-9]+\.[0-9]+(\.[0-9]+)*' | uniq | \ sort -u -k 1,1n -k 2,2n -k 3,3n -t .) # added date to distinct each nightly build diff --git a/tests/help.bats b/tests/help.bats index 085cf4a..b340a23 100644 --- a/tests/help.bats +++ b/tests/help.bats @@ -6,7 +6,7 @@ load test_helper local usage_b=$(nv_bold "Usage") run nv assert_success - assert_equal "${lines[0]}" "nv 0.8.0" + assert_equal "${lines[0]}" "nv 0.8.1" assert_equal "${lines[1]}" "${usage_b}: nv " assert_equal "${lines[2]}" "Subcommands:" } diff --git a/tests/version.bats b/tests/version.bats index e56ba67..8f0a524 100644 --- a/tests/version.bats +++ b/tests/version.bats @@ -5,5 +5,5 @@ load test_helper @test "version: output version" { run nv version assert_success - assert_output "nv 0.8.0" + assert_output "nv 0.8.1" }