I sometimes change executables dir from bin to exe.
I opened gemspec and edited "spec.executables", but after releasing my gem I found executables installed did not work.
That is because installed executables loads file under bindir, but bindir is still bin.
I should also edit not only spec.executables but also "spec.bindir".
When default gemspec have the Gem::Specification#bindir and Gem::Specification#executables uses it, No mistake like me will happen.
add Gem::Specification#bindir to the template of gemspec so that user…
… can change their executables dir easily
Another nice addition to this would be to allow passing --bindir=exec to bundle gem.
Thanks for the patch! I think that instead of adding every possible Gem::Specification option to the gemspec template, we should add a comment with a link to the documentation for Gem::Specification instead. That way we don't need to generate empty or default values for all the options. What do you think?
Well, I don't think it is a good idea of adding every possible option to the template in that it requires update when Gem::Specification have a change. We have to avoid unnecessary adding to the template, but I think bindir is helpful for users.
I would like to avoid adding any more items directly to the template. I will merge a patch pointing to the documentation, but the current gemspec is as complicated as the default is going to get. Thanks for your submission!