Created
February 4, 2009 12:28
-
-
Save rkh/58071 to your computer and use it in GitHub Desktop.
all your gems for ruby 1.9.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gem1.8 list --local --no-versions > 1.8.txt | |
gem1.9 list --local --no-versions > 1.9.txt | |
diff gem1.8.txt gem1.9.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# script for installing datamapper under ruby 1.9.1 | |
# tested on Ubuntu and OpenSolaris | |
# change this to your gem binary for ruby 1.9 | |
GEM=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 | |
$GEM build *.gemspec | |
sudo $GEM install *.gem | |
cd .. | |
sudo rm -R bcrypt-ruby | |
# install all dependencies except json (which is now part of the stdlib) | |
sudo $GEM 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 $GEM install dm-types datamapper --ignore-dependencies | |
# that's about it | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp | |
git clone git://github.com/eventmachine/eventmachine.git | |
cd eventmachine | |
gem1.9 build *.gemspec | |
sudo gem1.9 install *.gem | |
cd .. | |
sudo rm -R eventmachine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment