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 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 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
spec = Gem::Specification.new do |s| | |
s.name = "json" | |
s.version = "1.1.3" | |
s.summary = "this fakes json (which is now included in stdlib)" | |
s.homepage = "http://gist.github.com/gists/58071" | |
s.has_rdoc = false | |
s.required_ruby_version = '>= 1.9.1' | |
en |
This file contains 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 | |
wget http://gist.github.com/raw/58071/1227b150850f3bdbda052b080943c29b4ad10138/fake_json.gemspec | |
$GEM build fake_json.gemspec | |
sudo $GEM install json-*.gem | |
rm fake_json.gemspec json-*.gem | |
sudo $GEM install datamapper | |
# that's about it | |
exit |
This file contains 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 |
This file contains 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 | |
which ragel || (echo "install ragel" && exit) | |
cd /tmp | |
git clone git://github.com/rkh/hpricot.git | |
cd hpricot | |
rake ragel && rake ragel_java && rake gem | |
sudo gem1.9 install pkg/*.gem | |
cd .. | |
sudo rm -R hpricot |
This file contains 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 | |
wget http://gist.github.com/raw/58071/0384039634f2a32fee200e1d1ceddda68d0e8264/install_datamapper.sh | |
chmod +x install_datamapper.sh | |
./install_datamapper.sh | |
rm install_datamapper.sh | |
sudo gem1.9 install merb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment