Locking reports to a specific version of Ruport

If you are using Rope, it will automatically lock your reports to the most recent version of Ruport installed on your machine at the time you generate the project. This is helpful to allow you to update Ruport for new projects without breaking your old ones.

However, if you are not using Rope, the easiest way to lock to a specific version of Ruport is to use the gem command. (require_gem on RubyGems < 0.9.1)

Example:

   gem "ruport", "=0.7.2"
   require "ruport"

   #the rest of your code

This code will now fail to run if Ruport 0.7.2 is not installed. You'd be able to install a specific version of Ruport by just using the -v option with RubyGems.

Example:

  sudo gem install ruport -v 0.7.2