Skip to content

Commit

Permalink
fixed rust plugin: plug_list_versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Mar 20, 2015
1 parent 08e4e68 commit c894a2e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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"
Expand Down
4 changes: 2 additions & 2 deletions src/nv-plugins/rust
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/help.bats
Expand Up @@ -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 <subcommand>"
assert_equal "${lines[2]}" "Subcommands:"
}
2 changes: 1 addition & 1 deletion tests/version.bats
Expand Up @@ -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"
}

0 comments on commit c894a2e

Please sign in to comment.