Sha256: efb54e647531568936ab737d10e3807498d6591531827fb1e10fcac799d4bfe1

Contents?: true

Size: 649 Bytes

Versions: 5

Compression:

Stored size: 649 Bytes

Contents

jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
unless jruby
  require 'rubygems'
  require 'rubygems/command.rb'
  require 'rubygems/dependency_installer.rb'

  begin
    Gem::Command.build_args = ARGV
    rescue NoMethodError
  end

  inst = Gem::DependencyInstaller.new
  begin
    if RUBY_VERSION < "1.9"
      inst.install "ruby-debug-base", "~> 0.10.3"
    else
      inst.install "ruby-debug-base19", "~> 0.11.15" 
    end
    rescue
      exit(1)
  end
end

# create dummy rakefile to indicate success
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
f.write("task :default\n")
f.close

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ruby-debug-ide-0.4.11 ext/mkrf_conf.rb
ruby-debug-ide-0.4.10 ext/mkrf_conf.rb
ruby-debug-ide19-0.4.11 ext/mkrf_conf.rb
ruby-debug-ide19-0.4.10 ext/mkrf_conf.rb
ruby-debug-ide-0.4.9 ext/mkrf_conf.rb