@@ -13,7 +13,7 @@ def initialize
1313
1414 super 'setup' , 'Install RubyGems' ,
1515 :format_executable => true , :document => %w[ ri ] ,
16- :site_or_vendor => : sitelibdir,
16+ :site_or_vendor => ' sitelibdir' ,
1717 :destdir => '' , :prefix => '' , :previous_version => ''
1818
1919 add_option '--previous-version=VERSION' ,
@@ -36,7 +36,7 @@ def initialize
3636
3737 add_option '--[no-]vendor' ,
3838 'Install into vendorlibdir not sitelibdir' do |vendor , options |
39- options [ :site_or_vendor ] = vendor ? : vendorlibdir : : sitelibdir
39+ options [ :site_or_vendor ] = vendor ? ' vendorlibdir' : ' sitelibdir'
4040 end
4141
4242 add_option '--[no-]format-executable' ,
@@ -343,19 +343,19 @@ def generate_default_dirs(install_destdir)
343343 site_or_vendor = options [ :site_or_vendor ]
344344
345345 if prefix . empty? then
346- lib_dir = Gem :: ConfigMap [ site_or_vendor ]
347- bin_dir = Gem :: ConfigMap [ : bindir]
346+ lib_dir = RbConfig :: CONFIG [ site_or_vendor ]
347+ bin_dir = RbConfig :: CONFIG [ ' bindir' ]
348348 else
349349 # Apple installed RubyGems into libdir, and RubyGems <= 1.1.0 gets
350350 # confused about installation location, so switch back to
351351 # sitelibdir/vendorlibdir.
352352 if defined? ( APPLE_GEM_HOME ) and
353353 # just in case Apple and RubyGems don't get this patched up proper.
354- ( prefix == Gem :: ConfigMap [ : libdir] or
354+ ( prefix == RbConfig :: CONFIG [ ' libdir' ] or
355355 # this one is important
356- prefix == File . join ( Gem :: ConfigMap [ : libdir] , 'ruby' ) ) then
357- lib_dir = Gem :: ConfigMap [ site_or_vendor ]
358- bin_dir = Gem :: ConfigMap [ : bindir]
356+ prefix == File . join ( RbConfig :: CONFIG [ ' libdir' ] , 'ruby' ) ) then
357+ lib_dir = RbConfig :: CONFIG [ site_or_vendor ]
358+ bin_dir = RbConfig :: CONFIG [ ' bindir' ]
359359 else
360360 lib_dir = File . join prefix , 'lib'
361361 bin_dir = File . join prefix , 'bin'
0 commit comments