Skip to content

Instantly share code, notes, and snippets.

@rubypanther
Last active December 16, 2015 23:19
Show Gist options
  • Save rubypanther/5513058 to your computer and use it in GitHub Desktop.
Save rubypanther/5513058 to your computer and use it in GitHub Desktop.
extconf.rb code for ruby_core_source
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