Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add configuration dotfiles.

  • Loading branch information...
commit 4c152c9e13b3a82f9cec3e7f42caa9cd97039018 1 parent fe297b2
@peter-murach authored
Showing with 45 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +1 −0  .rspec
  3. +34 −0 .rvmrc
  4. +9 −0 .travis.yml
View
1  .gitignore
@@ -15,3 +15,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
+*.swp
View
1  .rspec
@@ -0,0 +1 @@
+--color
View
34 .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
View
9 .travis.yml
@@ -0,0 +1,9 @@
+---
+rvm:
+- 1.8.7
+- 1.9.2
+- 1.9.3
+- rbx-18mode
+- rbx-19mode
+- jruby
+- ruby-head
Please sign in to comment.
Something went wrong with that request. Please try again.