Author: toulmean
Date: Wed Nov 16 23:47:49 2011
New Revision: 1202941

URL: http://svn.apache.org/viewvc?rev=1202941&view=rev
Log:
BUILDR-616 Buildr development - If using rvm a default .rvmrc file would be 
helpful (Russell Teabeault)

Added:
    buildr/trunk/.rvmrc
Modified:
    buildr/trunk/CHANGELOG

Added: buildr/trunk/.rvmrc
URL: http://svn.apache.org/viewvc/buildr/trunk/.rvmrc?rev=1202941&view=auto
==============================================================================
--- buildr/trunk/.rvmrc (added)
+++ buildr/trunk/.rvmrc Wed Nov 16 23:47:49 2011
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+cat <<EOF
+********************************************************************
+*  RVM will install the environment for Buildr development now.
+*  By default it will use ruby-1.9.2.
+*  To force use an other version of ruby, set BUILDR_RUBY_VERSION.
+*  Example:
+*     export BUILDR_RUBY_VERSION=jruby-1.6.5
+********************************************************************
+EOF
+
+ruby_string="${BUILDR_RUBY_VERSION:-ruby-1.9.2}" 
+bundler_gem_home="vendor/bundle" 
+
+if rvm list strings | grep -q "${ruby_string}" ; then 
+  rvm use --create "${ruby_string}@buildr" 
+
+  gem list | grep 'bundler' &> /dev/null 
+  if [ $? -gt 0 ]; then 
+    echo "Installing bundler..." 
+    gem install bundler 
+  fi
+
+  bundle install 
+else 
+  echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' 
and then cd back into the project directory." 
+fi

Modified: buildr/trunk/CHANGELOG
URL: 
http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1202941&r1=1202940&r2=1202941&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Wed Nov 16 23:47:49 2011
@@ -14,6 +14,7 @@
 * Added:  Enhance the Intellij IDEA extension to support the addition of 
"artifacts"
           and "configurations" to the generated project file.
 * Added:  BUILDR-598 TestNG support for :groups and :excludegroups 
(Christopher Coco)
+* Added:  BUILDR-616 Buildr development - If using rvm a default .rvmrc file 
would be helpful (Russell Teabeault)
 * Change: Scala Specs upgraded to 1.6.9 if using Scala 2.9.1
 * Change: Scala 2.9.1 is now default
 * Change: Make it possible to parameterize the JDepend extension and control 
the


Reply via email to