tpope / rbenv-aliases

Create aliases for rbenv Ruby versions
MIT License
129 stars 18 forks source link

Ruby 2 1 semantic versions #6

Closed ianheggie closed 10 years ago

ianheggie commented 10 years ago

Given ruby's change to semantic versions in 2.1 onwards, I have added tests and code to link to MAJOR.MINOR aliases for that release onwards.

A link to travis CI test status is also included.

tpope commented 10 years ago

How am I meant to run the tests?

ianheggie commented 10 years ago

As per .travis.yml:

script: test/run
# skips unnecessary Ruby-specific setup
language: c

Run test/run:

ianh@abe:.../Github/rbenv-aliases (master *)$ test/run
Already up-to-date.
Already up-to-date.
 ✓ rbenv-alias 1.8.7 --auto
 ✓ rbenv-alias name 1.8.7-p100
 ✓ rbenv-alias --auto
 ✓ rbenv-alias 2.1 --auto for 2.1.0
 ✓ rbenv-alias 2.1 --auto for 2.1.0 and 2.1.0-p2
 ✓ rbenv-alias 2.2 --auto
 ✓ rbenv-alias --auto for 2.1.N versions
 ✓ alias is listed in rbenv commands
 ✓ commands --sh should not list alias
 ✓ commands --no-sh should list alias
 ✓ unalias is listed in rbenv commands
 ✓ commands --sh should not list unalias
 ✓ commands --no-sh should list unalias
 ✓ help for alias is available
 ✓ help for unalias is available
 ✓ running rbenv-install auto installs an alias as 1.N.N
 ✓ running rbenv-install doesnt install 2.0 alias
 ✓ running rbenv-install auto installs an alias for 2.1 from 2.1.1
 ✓ running rbenv-install auto installs an alias for 2.10 from 2.10.99
 ✓ running rbenv-install auto installs an alias for 2.99 and 2.99.99 from 2.99.99-p999
 ✓ running unalias removes an alias

21 tests, 0 failures
ianh@abe:.../Github/rbenv-aliases (master *)$ 
tpope commented 10 years ago

There's no test/run in this pull request. Looks like it might be in #5 but that one's kind of a mess, no?

ianheggie commented 10 years ago

closed - I merged into master and dropped ruby_21... branch, which automatically closed this ... I have noticed one bug, (install works in test but not real life), so i'll track that down before sending a new pull request