Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Tips and tricks

trans edited this page Jan 12, 2013 · 1 revision

Tips and Tricks


RUBYOPT with RubyGems

If using Ruby 1.8.x, your RUBYOPT probably has a -rubygems entry in it. It is best to add -rubylibrary after the -rubygems entry, but still before anything else, so that Library has first stab at loading files, instead of RubyGems.

    export RUBYOPT="-rubygems -rubylibrary"

PATH Export

The environments PATH can also be modified using the internal Library.PATH() method:

    export PATH="$PATH:$(ruby -e'puts Library::PATH()')"

This does not resync the cached library ledger, but just returns the path list of the ledger as is. You might do this, for instance, if you only ever use the live mode. Or prefer to resync manually.


Manually Sync Cached Ledger

Just run:

    ruby -e 'Realms::sync'

Clone this wiki locally