Skip to content

Commit

Permalink
avoid installing binding_of_caller if it's already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Sep 8, 2013
1 parent db808bf commit 71a3bfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/mkrf_conf.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require 'rubygems/dependency_installer'
require 'rubygems/dependency_installer'

gem = Gem::DependencyInstaller.new

if ["rbx", "ruby"].include?(RUBY_ENGINE)
gem.install "binding_of_caller", "0.7.2"
if Gem::Dependency.new("binding_of_caller", "0.7.2").matching_specs.empty?
gem.install "binding_of_caller", "0.7.2"
end
end

0 comments on commit 71a3bfa

Please sign in to comment.