diff --git a/ext/mkrf_conf.rb b/ext/mkrf_conf.rb deleted file mode 100644 index 290936a..0000000 --- a/ext/mkrf_conf.rb +++ /dev/null @@ -1,42 +0,0 @@ -install_dir = File.expand_path("../../../..", __FILE__) - -if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' - require 'rubygems' - require 'rubygems/command.rb' - require 'rubygems/dependency.rb' - require 'rubygems/dependency_installer.rb' - - begin - Gem::Command.build_args = ARGV - rescue NoMethodError - end - - if RUBY_VERSION < "1.9" - dep = Gem::Dependency.new("ruby-debug-base", '>=0.10.4') - elsif RUBY_VERSION < '2.0' - dep = Gem::Dependency.new("ruby-debug-base19x", '>=0.11.30.pre15') - else - dep = Gem::Dependency.new("debase", '> 0') - end - - begin - puts "Installing base gem" - inst = Gem::DependencyInstaller.new(:prerelease => dep.prerelease?, :install_dir => install_dir) - inst.install dep - rescue - begin - inst = Gem::DependencyInstaller.new(:prerelease => true, :install_dir => install_dir) - inst.install dep - rescue Exception => e - puts e - puts e.backtrace.join "\n " - exit(1) - end - end unless dep.nil? || dep.matching_specs.any? -end - -# create dummy rakefile to indicate success -f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") -f.write("task :default\n") -f.close - diff --git a/ruby-debug-ide.gemspec b/ruby-debug-ide.gemspec index be0917f..cfbf8ac 100644 --- a/ruby-debug-ide.gemspec +++ b/ruby-debug-ide.gemspec @@ -39,8 +39,8 @@ EOF spec.executables = ["rdebug-ide", "gdb_wrapper"] spec.files = FILES - spec.extensions << "ext/mkrf_conf.rb" unless ENV['NO_EXT'] spec.add_dependency("rake", ">= 0.8.1") + spec.add_dependency("debase", "> 0") spec.required_ruby_version = '>= 1.8.2' spec.date = DateTime.now