Skip to content

Instantly share code, notes, and snippets.

@Voker57
Forked from rkh/compare_gems.sh
Created June 14, 2009 09:20
Show Gist options
  • Save Voker57/129620 to your computer and use it in GitHub Desktop.
Save Voker57/129620 to your computer and use it in GitHub Desktop.
#!/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
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
#!/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/129620/12748fd0ebf19ee245f6b736d8a95345809fbc35/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
#!/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
#!/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
#!/bin/bash
cd /tmp
wget http://gist.github.com/raw/129620/12748fd0ebf19ee245f6b736d8a95345809fbc35/install_datamapper.sh
chmod +x install_datamapper.sh
./install_datamapper.sh
rm install_datamapper.sh
sudo gem1.9 install merb --no-ri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment