Sha256: 2d2b3ac8f9ec43d57fa2d864ef021f7c37dfba2828ede7bece885f1c79bc11ef
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE) def already_installed(dep) Gem::DependencyInstaller.new(:domain => :local).find_gems_with_sources(dep) || Gem::DependencyInstaller.new(:domain => :local,:prerelease => true).find_gems_with_sources(dep) end unless jruby 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.24') else # dep = Gem::Dependency.new("debase", '> 0') end begin puts "Installing base gem" inst = Gem::DependencyInstaller.new inst.install dep rescue inst = Gem::DependencyInstaller.new(:prerelease => true) begin inst.install dep rescue Exception => e puts e puts e.backtrace.join "\n " exit(1) end end unless dep.nil? || already_installed(dep) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-debug-ide-0.4.17.beta17 | ext/mkrf_conf.rb |
ruby-debug-ide-0.4.17.beta16 | ext/mkrf_conf.rb |