Skip to content

Instantly share code, notes, and snippets.

@rkh
Created February 4, 2009 12:28
Show Gist options
  • Save rkh/58071 to your computer and use it in GitHub Desktop.
Save rkh/58071 to your computer and use it in GitHub Desktop.
all your gems for ruby 1.9.1
#!/bin/bash
# script for installing datamapper under ruby 1.9.1
#
# change this to your gem binary for ruby 1.9
GEM=`which gem1.9`
# don't mess with the file system
cd /tmp
# bcrypt gem does not work with 1.9, we have to use the sources
git clone git://github.com/genki/bcrypt-ruby.git
cd bcrypt-ruby
gem1.9 build *.gemspec
sudo gem1.9 install *.gem
cd ..
sudo rm -R bcrypt-ruby
# install all dependencies except json (which is now part of the stdlib)
sudo gem1.9 install dm-core dm-aggregates dm-migrations \
dm-serializer dm-timestamps dm-validations dm-cli \
dm-is-tree dm-observer hoe
# install datamapper without dependencies (we already got those)
sudo gem1.9 install dm-types datamapper --ignore-dependencies
# that's about it
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment