Repository navigation
Make native extension building more robust #239
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,9 +15,10 @@ Gem::Specification.new do |s| | |
| s.files += Dir.glob("man/**/*") | ||
| s.files += Dir.glob("test/**/*") | ||
| s.files += Dir.glob("ext/**/*.[ch]") | ||
| s.files += Dir.glob("vendor/libgit2/{include,src,deps}/**/*.[ch]") | ||
| s.files += Dir.glob("vendor/libgit2/{include,src,deps}/**/*.{c,h,rb}") | ||
| s.files += Dir.glob("vendor/libgit2/Makefile.embed") | ||
| s.extensions = ['ext/rugged/extconf.rb'] | ||
| s.require_paths = [ 'lib', 'ext' ] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're never loading files from the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apparently on my system this is needed to get ruby to be able to find the rugged.so shared object which gets installed in vendor/bundle/ruby/2.0.0/gems/rugged-0.19.0/ext/rugged/rugged.so This was the reason to start with the whole exercise.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When you install a gem via Adding |
||
| s.required_ruby_version = '>= 1.9.3' | ||
| s.description = <<desc | ||
| Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there are any
*.rbfiles insidevendor/libgit2, so this change is not needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh shoot, wrong line, it was supposed to be the one above to include the extconf.rb as per http://guides.rubygems.org/c-extensions/ Seems that it isn't necessary though as the gem worked fine like this.