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

don't rely on git ls-files in gemspec file #125

Open
sbrun opened this issue Jun 16, 2014 · 0 comments
Open

don't rely on git ls-files in gemspec file #125

sbrun opened this issue Jun 16, 2014 · 0 comments

Comments

@sbrun
Copy link

sbrun commented Jun 16, 2014

I have been building a debian package of em-socket for kali linux and the source package is built on top of the .tar.gz archive (such as those that can be downloaded in the "releases" section of github, aka "git archive" output) and those archives do not contain any ".git" directory. Thus "git ls-files" doesn't work and should be avoided in the gemspec file.
I suggest to use something like this:

  s.files                 = Dir.glob("lib/**/*")
  s.test_files            = Dir.glob("{test,spec,features}/**/*")
  s.executables           = Dir.glob("bin/*").map{ |f| File.basename(f) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant