Source

Linguistics / .rvmrc

The default branch has multiple heads

Full commit
#!/usr/bin/env bash

# This is an RVM Project .rvmrc file, used to automatically load the ruby
# development environment upon cd'ing into the directory

environment_id="ruby-2.0.0@linguistics"
rvmdir=${rvm_path:-$HOME/.rvm}
gemset_file=".rvm.gems"

if [[ -d "${rvmdir}/environments" && -s "${rvmdir}/environments/$environment_id" ]]; then
	echo "Using ${environment_id}"
	. "${rvmdir}/environments/$environment_id"

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

if [[ -s "$gemset_file" ]]; then
	rvm gemset import "$gemset_file"
fi

echo "ObjectSpace.each_object.map( &:class ).en.conjunction"
echo