Sha256: df735a8b2e82688d0f71f611d33b9e77a54ed32836b67c9ecf417d44ba2767cb

Contents?: true

Size: 780 Bytes

Versions: 4

Compression:

Stored size: 780 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.
#++

abort "RubyGems only supports Ruby 3.1 or higher" if RUBY_VERSION < "3.1.0"

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

  require "rbconfig"
  cmd = [RbConfig.ruby, "--disable-gems", "setup.rb", *ARGV]

  exec(*cmd)
end

Dir.chdir __dir__

$:.unshift File.expand_path("lib")
require "rubygems"
require "rubygems/gem_runner"

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"

Gem::GemRunner.new.run args

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubygems-update-3.6.3 setup.rb
rubygems-update-3.6.2 setup.rb
rubygems-update-3.6.1 setup.rb
rubygems-update-3.6.0 setup.rb