From: Mark Volkmann Date: 2006-06-16T02:26:37+09:00 Subject: Re: running applications installed from gems On 6/15/06, Austin Ziegler wrote: > On 6/15/06, Mark Volkmann wrote: > > On 6/15/06, Austin Ziegler wrote: > > > On 6/15/06, Mark Volkmann wrote: > > > > What I'm really after is a simple way for a non-programmer to install > > > > and run a Ruby application that is packaged as a gem. > > > It's already done. > > > > > > Seriously. Try it with Ruwiki or Text::Hyphen. Or PDF::Writer. In > > > PDF::Writer, a stub for the executable "techbook" is installed > > > appropriately. It will run the latest version of the software by > > > default, but you can select a specific version, too. > > Sorry to be dense about this, but *how* does the user run the application? > > > > I think what you're suggesting is that the user > > 1) runs "gem install app-name" > > 2) navigates to the bin directory of the gem > > 3) runs a script found there > > No. > > % gem install ruwiki > % ruwiki_servlet > > Or: > > % gem install pdf-writer > % techbook Cool! So I think the last think I need to know is what causes the "techbook" command to be available. It doesn't seem that "gem install pdf-writer" modified my PATH environment variable. I'm running under Windows and I'm not in the bin directory of the gem when I run "techbook". Also, did you do something special in your .gemspec file to get this to work? -- R. Mark Volkmann Object Computing, Inc.