Sha256: de411b5ea18f87e80027e2d29b59b5574629e480671f024fdaa8b94a88164086

Contents?: true

Size: 1.08 KB

Versions: 16

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true
#--
# Copyright 2006, 2007 by Chad Fowler, Rich Kilmer, Jim Weirich, Eric Hodel
# and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

if RUBY_VERSION < "1.8.7"
  $stderr.puts "Rubygems now requires Ruby 1.8.7 or later"
  exit 1
end

# Make sure rubygems isn't already loaded.
if ENV['RUBYOPT'] or defined? Gem then
  ENV.delete 'RUBYOPT'

  require 'rbconfig'
  config = defined?(RbConfig) ? RbConfig : Config

  ruby = File.join config::CONFIG['bindir'], config::CONFIG['ruby_install_name']
  ruby << config::CONFIG['EXEEXT']

  cmd = [ruby, 'setup.rb', *ARGV].compact
  cmd[1,0] = "--disable-gems" if RUBY_VERSION > "1.9"

  exec(*cmd)
end

Dir.chdir File.dirname(__FILE__)

$:.unshift 'lib'
require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'

Gem::CommandManager.instance.register_command :setup

args = ARGV.clone
if ENV["GEM_PREV_VER"]
  args = [ '--previous-version', ENV["GEM_PREV_VER"] ] + args
end
args.unshift 'setup'

begin
  Gem::GemRunner.new.run args
rescue Gem::SystemExitException => e
  exit e.exit_code
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rubygems-update-2.6.14 setup.rb
rubygems-update-2.6.13 setup.rb
rubygems-update-2.6.12 setup.rb
rubygems-update-2.6.11 setup.rb
rubygems-update-2.6.10 setup.rb
rubygems-update-2.6.9 setup.rb
rubygems-update-2.6.8 setup.rb
rubygems-update-2.6.7 setup.rb
rubygems-update-2.6.6 setup.rb
rubygems-update-2.6.5 setup.rb
rubygems-update-2.6.4 setup.rb
rubygems-update-2.6.3 setup.rb
rubygems-update-2.6.2 setup.rb
rubygems-update-2.6.1 setup.rb
rubygems-update-2.6.0 setup.rb
rubygems-update-2.5.2 setup.rb