Sha256: 0583a0972807db8e45d7e5719742ada879d3c5523f4be890b6e9d0740fe99f40

Contents?: true

Size: 978 Bytes

Versions: 20

Compression:

Stored size: 978 Bytes

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.
#++

# Make sure rubygems isn't already loaded.
if ENV['RUBYOPT'] or defined? Gem
  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"

  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

20 entries across 20 versions & 1 rubygems

Version Path
rubygems-update-3.1.6 setup.rb
rubygems-update-3.1.5 setup.rb
rubygems-update-3.0.9 setup.rb
rubygems-update-3.1.4 setup.rb
rubygems-update-3.1.3 setup.rb
rubygems-update-3.0.8 setup.rb
rubygems-update-3.0.7 setup.rb
rubygems-update-3.1.2 setup.rb
rubygems-update-3.1.1 setup.rb
rubygems-update-3.1.0 setup.rb
rubygems-update-3.1.0.pre3 setup.rb
rubygems-update-3.1.0.pre2 setup.rb
rubygems-update-3.1.0.pre1 setup.rb
rubygems-update-3.0.6 setup.rb
rubygems-update-3.0.5 setup.rb
rubygems-update-3.0.4 setup.rb
rubygems-update-3.0.3 setup.rb
rubygems-update-3.0.2 setup.rb
rubygems-update-3.0.1 setup.rb
rubygems-update-3.0.0 setup.rb