Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Use git sha as part of extension directory for git referenced gems. #2948

Merged
merged 1 commit into from
Apr 2, 2014

Conversation

dylanahsmith
Copy link
Contributor

Problem

See issue #2947 which this pull request fixes.

Solution

Monkey patch Gem::Specification#extension_dir so that the source can override the extension directory name if it responds to extension_dir_name, similar to the monkey patch of full_gem_path.


2.times do |i|
Dir.chdir(git_reader.path) do
File.write "ext/foo.c", <<-C
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work on Ruby 1.8, so this pull breaks the build. Can you fix it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed CI

@indirect
Copy link
Member

Thanks for the patch. I'll merge as soon as you fix the build on Ruby 1.8. :)

@indirect
Copy link
Member

Thanks!

indirect added a commit that referenced this pull request Mar 31, 2014
Use git sha as part of extension directory for git referenced gems.
@indirect indirect merged commit d98f3f9 into rubygems:master Apr 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants