Hello,
I ran into an error when trying to run rake test in the root directory
of a gem that uses the following in its Rakefile:
Bundler::GemHelper.install_tasks
The error I got is:
Unable to determine name from existing gemspec. Use :name => ‘gemname’
in #install_tasks to manually set it.
Adding name: some_gem
to the install_tasks call changed the error to:
Errno::ENOENT: No such file or directory -
<>/gems/some_gem-0.0.1/some_gem.gemspec
Adding the gemspec file to its own files list is easy, but if feels
strange. I looked at other gems and I found some that include the
gemspec and some that dont.
So, what is the accepted practice regarding gemspecs. Can they be a part
of the package? Or is there better way?
Thanks,
Ammar