Closed EduardoBautista closed 9 years ago
So should the executable be in bin
or exe
?
Generated gemspec
files specify bindir
as exe
, so I think exe
is the correct directory. bin
is seemingly for local gem development purposes (contains a setup
file)
But the gemspec
is generated by bundler
which might be subjective, as I didn't see any gem using an exe
directory.
Also, even foodie
from the guide is in bin
: https://github.com/radar/guides/blob/master/gem-development/foodie/bin/foodie.
This is the authoritative source: https://github.com/bundler/bundler/blob/master/lib/bundler/templates/newgem/newgem.gemspec.tt. bindir here uses exe. Likely foodie uses bin because it was generated before Bundler changed from using bin to using exe.
On 27 Mar 2018, 00:21 +1100, Iulian Onofrei notifications@github.com, wrote:
Also, even foodie from the guide is in bin: https://github.com/radar/guides/blob/master/gem-development/foodie/bin/foodie. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
For others that may stumble upon this, here is some background info about the change which clearly explains the difference: http://bundler.io/blog/2015/03/20/moving-bins-to-exe.html.
This issue is to help me keep track of things I need to help bring up to date in order to use the guide on http://bundler.io.
Todos:
CONTRIBUTING.md
andREADME.md
filesexpect
syntax instead ofshould
If there are any other issues let me know, I will be going through the tutorial again with the code I rewrite to catch any issues.