Hi Jim,

Thanks for your help.
Yes, I was not using autorequire correctly.
After looking at couple of other project's gemspec, I understood it better.

Thanks again,
Mohammad



On 12/24/05, Jim Weirich <jim / weirichhouse.org> wrote:
> Mohammad Khan wrote:
> > Hello,
> >
> > First let me show you my gemspec file,
> [...]
> >         s.files   = [
> >            "README",
> >            "LICENSE",
> >            "INSTALL",
> >            "DOWNLOAD",
> >            "extconf.rb",
> >            "lib/agi.rb",
> >            "lib/command.rb",
> >            "lib/asterisk_variable.rb",
> >            "lib/error.rb",
> >            "lib/return_status.rb",
> >            "examples/call_log.rb"
> >         s.require_path                  = "lib"
> >         s.autorequire                   = "ruby-agi"
> [...]
>
> You autorequire 'ruby-agi', but don't provide a file named 'ruby-agi.rb'
> in your lib directory.
>
> I would recommend just dropping the autorequire line.  Since modern
> versions of RubyGems automatically activates the gems, it is not very
> useful.
>
> Your users just need to write:
>
>    require 'rubygems'
>    require 'agi'
>
> No need to invoke require_gem at all (unless you need to specify a
> particular version).
>
> --
> -- Jim Weirich
>
> --
> Posted via http://www.ruby-forum.com/.
>
>