Sha256: e510c1c9e4603bcaebaf4dd6019198f0e4be5275ed4f3cd30d5e8e14559479a1
Contents?: true
Size: 1.23 KB
Versions: 18
Compression:
Stored size: 1.23 KB
Contents
install_dir = File.expand_path("../../../..", __FILE__) jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE) rbx = defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE unless jruby || rbx 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
Version data entries
18 entries across 10 versions & 4 rubygems