what to do with a gem once I have installed it

mishimishi's Avatar


03 Aug, 2011 09:15 AM

I am a complete newbie to Ruby and Gems. I just wanted to try out an open source Gem tool for testing, and installed Ruby, then Gem, and managed to install the test tool I wanted to try out - cvs-datagen.

My question is, because I don't have the time to learn everything about Ruby just to try out this tool, which has only .rdoc documentation attached - how do I run the package?

do I have to create a ruby program that requires this gem? and if so, what is the quickest way to do that?

thanks for you patience with my questions

  1. 1 Posted by Ryan Davis on 03 Aug, 2011 08:47 PM

    Ryan Davis's Avatar

    Yes, you need to write a program that uses the gem, meaning:

    require "rubygems" # not needed on ruby 1.9
    require "something-in-that-gem"


    Beyond that, I can't help. You're going to have to buckle down and learn ruby if you want to be effective with that gem.

  2. Ryan Davis closed this discussion on 03 Aug, 2011 08:47 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac