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

Commit

Permalink
Don't build extensions.
Browse files Browse the repository at this point in the history
We don't care about extensions, just about directories. The missing
extensions might try to triger rebuild, which fails with "uninitialized
constant Gem::UserInteraction" under some versions of RubyGems.
  • Loading branch information
voxik committed Apr 20, 2015
1 parent 8b90945 commit c35a959
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/runtime/setup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@
if Gem::Specification.method_defined? :extension_dir
s = Gem::Specification.find_by_name '#{gem_name}'
s.extension_dir = '#{ext_dir}'
# Don't build extensions.
s.class.send(:define_method, :build_extensions) { nil }
end
require 'bundler'
Expand Down

0 comments on commit c35a959

Please sign in to comment.