5.1 Basic Versions The concept of a version is central to the RubyGems packaging scheme. Every gem package is assigned a version string consisting of digits and periods (e.g. “1.3.122 ”). The gem command line program and the gem Ruby command both take version constraint arguments. The...
Most gems contain pure Ruby code; they should simply leave the default value in place. Some gems contain C (or other) code to be compiled into a Ruby “extension”. The should leave the default value in place unless their code will only compile on a certain type of system. Some gems con...
Most gems contain pure Ruby code; they should simply leave the default value in place. Some gems contain C (or other) code to be compiled into a Ruby “extension”. The should leave the default value in place unless their code will only compile on a certain type of system. Some gems con...
gem query --remote # shortcut: gem q -R you see will a detailed list of all the gems on the remote server. Sample output (heavily abbreviated): *** REMOTE GEMS *** activerecord (0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.6, 0.7.5) Implements the ActiveRecord pattern for ORM. BlueCloth (0....
When developing a gem, you are probably creating, extending or overriding functionality. You might want people to include your module in their classes, or perhaps you just want to extend a given class with your module—it’s your choice. What you shouldn’t really do, however, is reinven...
5.3 Pessimistic Version Constraint If your project is using the Rational Versioning Policy to assign version numbers, then your users can take advantage of that fact to carefully specify exactly what versions of your software should work with their system. For example, suppose you hav...
Because RubyGems provides support for version comparisons, we want to pick a policy that works well with the RubyGems comparisons and gives the end user what they expect. We call such a policy “rational”. Also, if we call non-working policies “irrational”, then we apply a little bit o...
Usage: gem install GEMNAME [options] Options: -v, --version VERSION Specify version of gem to install -l, --local Restrict operations to the LOCAL domain (default) -r, --remote Restrict operations to the REMOTE domain -b, --both Allow LOCAL and REMOTE operations -i, --install-dir DIR ...
1.1 Really Quick Start Question: I’ve installed RubyGems and I want to install Rails (for example). How do I do that? Answer: gem install rails 1.2 What is a Gem? A gem is a packaged Ruby application or library. It has a name (e.g. rake ) and a version (e.g. 0.4.16 ). Gems are managed...
NoSecurity – Well, no security at all. Signed packages are treated like unsigned packages. LowSecurity – Pretty much no security. If a package is signed then RubyGems will make sure the signature matches the signing certificate, and that the signing certificate hasn’t expired, but tha...
Select a book from the list below. gem Command Reference This reference covers ‘gem’ version 0.8.7. (Updating to 1.3.x in progress) RubyGems Frequently Asked Questions Frequently Asked Questions about the RubyGems Packaging System. Gem::Specification Reference The Gem::Specification o...