Showing posts with label gem. Show all posts
Showing posts with label gem. Show all posts

Monday, August 17, 2009

Using google_ajax_library when offline.

As I mentioned in How do I automatically revert to local javascript when offline?, I eventually forked google_ajax_library gem and added support for working offline.

I sent a pull request to Ryan Heath, the original author the gem and he liked the feature but implemented it slightly differently to what I have done.

Tuesday, September 25, 2007

How to copy gems to a different ruby installation

Assume the following:
old ruby 1.8.4 installed in /opt/local/lib/ruby
new ruby 1.8.6 installed in /usr/local/lib/ruby


cd /opt/local/lib/ruby
sudo cp -r gems /usr/local/lib/ruby
cd site_ruby/1.8/
sudo cp -r gemconfigure.rb rubygems rubygems.rb ubygems.rb rbconfig /usr/local/lib/ruby/site_ruby/1.8/

cd /opt/local/bin
sudo rm irb gem ruby rake
sudo rm erb gem_mirror gem_server gemwhich generate_yaml_index.rb rails rdoc ri testrb update_rubygems


restart terminal

this is for emergency cos you should really re-install ruby related things since we might not have moved everything

done