radar / guides

Guides for Ruby and Elixir and whatever else I feel like
1.52k stars 164 forks source link

Gem Development guide improvements #67

Closed EduardoBautista closed 9 years ago

EduardoBautista commented 9 years ago

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:

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.

revolter commented 6 years ago

So should the executable be in bin or exe?

radar commented 6 years ago

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)

revolter commented 6 years ago

But the gemspec is generated by bundler which might be subjective, as I didn't see any gem using an exe directory.

revolter commented 6 years ago

Also, even foodie from the guide is in bin: https://github.com/radar/guides/blob/master/gem-development/foodie/bin/foodie.

radar commented 6 years ago

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.

revolter commented 6 years ago

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.