Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when there's a bin directory then executables should be added to the gemspec #21

Closed
svenfuchs opened this issue Mar 27, 2012 · 6 comments

Comments

@svenfuchs
Copy link
Owner

I have a dir bin with an executable file in it. It would be nice if gem bootstrap and gem gemspec would add this to the gemspec

I guess that's

s.executables << 'foo'

when bin contains the executable file foo?

@dgeb
Copy link
Collaborator

dgeb commented Mar 27, 2012

That would be helpful, wouldn't it?

If there's more than one executable, we could either put them each on their own line:

s.executables << 'foo'
s.executables << 'bar'

Or keep them all on one:

s.executables += ['foo', 'bar']

Any preference?

@svenfuchs
Copy link
Owner Author

if you ask me, then clearly the latter :)

@vStone
Copy link

vStone commented Apr 30, 2013

s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }

if using git :)

@svenfuchs
Copy link
Owner Author

good idea, so it would just depend on --strategy git?

@vStone
Copy link

vStone commented Apr 30, 2013

I would imagine so.
While we are at it:

s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

aitherios added a commit to aitherios/kitchen_boy that referenced this issue Nov 30, 2013
@svenfuchs
Copy link
Owner Author

Implemented in #72 (after all those years)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants