Last active
December 16, 2015 23:19
-
-
Save rubypanther/5513058 to your computer and use it in GitHub Desktop.
extconf.rb code for ruby_core_source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if RUBY_VERSION >= "1.9" and RUBY_VERSION <= "2.0" | |
begin | |
require "ruby_core_source" | |
rescue LoadError | |
require 'rubygems/user_interaction' # for 1.9.1 | |
require 'rubygems/dependency_installer' | |
installer = Gem::DependencyInstaller.new | |
installer.install 'ruby_core_source' | |
Gem.refresh | |
Gem::Specification.find_by_name('ruby_core_source').activate # for 1.9.1 | |
require "ruby_core_source" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment