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:
The error I got is:
Unable to determine name from existing gemspec. Use :name => ‘gemname’
in #install_tasks to manually set it.
name: some_gem to the install_tasks call changed the error to:
Errno::ENOENT: No such file or directory -
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?