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
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://github.com/rkh/fake-json"
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
# 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
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment