Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add configuration dotfiles.
  • Loading branch information
piotrmurach committed Jun 23, 2012
1 parent fe297b2 commit 4c152c9
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -15,3 +15,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
*.swp
1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
--color
34 changes: 34 additions & 0 deletions .rvmrc
@@ -0,0 +1,34 @@
#!/usr/bin/env bash

environment_id="1.9.3@rack-policy"

#
# First we attempt to load the desired environment directly from the environment
# file. This is very fast and efficient compared to running through the entire
# CLI and selector. If you want feedback on which environment was used then
# insert the word 'use' after --create as this triggers verbose mode.
#
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
then
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"

if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
then
. "${rvm_path:-$HOME/.rvm}/hooks/after_use"
fi
else
# If the environment file has not yet been created, use the RVM CLI to select.
if ! rvm --create "$environment_id"
then
echo "Failed to create RVM environment '${environment_id}'."
return 1
fi
fi

if [[ $- == *i* ]] # check for interactive shells
then
echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
else
echo "Using: $GEM_HOME" # don't use colors in interactive shells
fi
9 changes: 9 additions & 0 deletions .travis.yml
@@ -0,0 +1,9 @@
---
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- rbx-18mode
- rbx-19mode
- jruby
- ruby-head

0 comments on commit 4c152c9

Please sign in to comment.