what to do with a gem once I have installed it

mishimishi's Avatar

mishimishi

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. Support Staff 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"

    use_the_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

Generic

? 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

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM