Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien committed Sep 16, 2008
1 parent eb41d4d commit b29c162
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README
Expand Up @@ -11,15 +11,21 @@ Minigems handles loading of required gems from your scripts. If however, other
functionality is needed, the full rubygems library will be loaded automatically functionality is needed, the full rubygems library will be loaded automatically
to continue normal operation. to continue normal operation.


You'll need to run 'sudo minigems --install' to get started; this will install You'll need to run 'sudo minigem setup' to get started; this will install
minigems.rb in your site_ruby directory, which makes it available to all your minigems.rb in your site_ruby directory, which makes it available to all your
ruby scripts. ruby scripts.


MiniGems is enabled on a per-gem basis. To do so, you run 'minigem prepare', for
example, say we want the binary executables for merb-core (the 'merb' command)
to use minigems (most likely with sudo permissions):

minigem prepare merb-core

To use minigems in your own scripts, use the following construct, instead of the To use minigems in your own scripts, use the following construct, instead of the
common 'require "rubygems"' statement: common 'require "rubygems"' statement:


begin require 'minigems'
require 'minigems'
rescue LoadError There's currently a patch pending on RubyForge, to get minigems into the standard, rubygems system. If you like minigems, please post a vote/followup:
require 'rubygems'
end http://rubyforge.org/tracker/?func=detail&atid=577&aid=21979&group_id=126

0 comments on commit b29c162

Please sign in to comment.