(on Wikipedia)
https://rubygems.org/
“gems” are the foremost way to install Ruby libraries.
- 2010-02-09 – (version not recorded) on Unity Linux 64bit-beta2, updated 2010-01-30.
- 2009-08-22 – (version not recorded) on Unity Linux 0.99-alpha2, updated 2009-08-16
- 2007-03-11 – (version not recorded) on PCLinuxOS 2007 final
-
2007-03-11 – (version not recorded) on PCLinuxOS 2007-test3
Table of Contents [hide]
2010-02-09 – (version not recorded) ∞
wget rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz tar -xvvf rubygems-1.3.5.tgz cd rubygems-1.3.5 su ruby setup.rb # Wait a long time for it to complete gem install rubygems-update update_rubygems
2009-08-22 – (version not recorded) ∞
wget rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz tar -xvvf rubygems-1.3.5.tgz cd rubygems-1.3.5 su ruby setup.rb # Wait a long time for it to complete gem install rubygems-update update_rubygems
2007-03-11 – (version not recorded) ∞
apt-get install ruby ruby-RubyGems
updating is done easily too!
gem install rubygems-update
update_rubygems
And also:
gem update --system
To try ∞
- Wirble — irb tab completion and syntax highlighting.
-
method finder.rb in my code snippets repo.
Creating a gem ∞
Tricks and tips ∞
gem help gem help <command> gem install gem uninstall gem search <term>
I don’t know how to uninstall based on the gem name. =/ I guess I just have to leave off the version number. This should be automatically figured out by ‘gem’. =/
“Requiring” rubygems ∞
Untested:
Set RUBYOPT=-rubygems, if you don’t want to require 'rubygems'. Users can transparently either use gems or install from source or use their package managers.
Be careful. it’s breaks some packages, like the gsl.
Installing RubyGems without its documentation ∞
Installing a gem without its documentation ∞
A documentation-free installation. Incidentally, this is much faster on my Zaurus. =)
gem install --no-rdoc --no-ri <gem>
