From: "headius (Charles Nutter)" Date: 2013-06-05T21:38:42+09:00 Subject: [ruby-core:55316] [ruby-trunk - Bug #8488] Refactor rbinstall.rb for maintenance, clarity, reuse Issue #8488 has been updated by headius (Charles Nutter). I have filed a pull request with RubyGems to better support default gems: https://github.com/rubygems/rubygems/pull/566 The existing format in MRI 2.0 remains supported, but would be deprecated in favor of using unmodified gemspecs from the original gems. The new workflow would be: * Install the gem's files appropriately in source control; as now, this basically involves copying the gem's files to appropriate locations in lib and ext. * Use gem install --default to install the gem's spec and bin scripts as a default gem. This could happen either at dev time (if specifications/default dir is available, as in JRuby) or at install time (MRI). The PR automates what's currently done in rbinstall and avoids having to use a custom gemspec format. The gem's original gemspec with original filenames is used for default gem registration. Once MRI moves to a RubyGems containing my PR, the logic for default gems in rbinstall.rb could be mostly deleted. It could either just copy unmodified gemspecs from source or use gem install --default to do that. ---------------------------------------- Bug #8488: Refactor rbinstall.rb for maintenance, clarity, reuse https://bugs.ruby-lang.org/issues/8488#change-39717 Author: headius (Charles Nutter) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: build Target version: ruby -v: 2.1dev Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN tool/rbinstall.rb is used to install many parts of Ruby at "make install" time, but it has grown to a rather cumbersome size. It also houses some logic that could/should be reused by other implementations, like the default gem installation. I would like to do some cleanup and refactoring of this file to make it easier to maintain. I'd also like to factor out the default gems logic into a separate piece of code that can be used outside of rbinstall, for e.g. JRuby. A number of folks have contributed to this file, but kou and nobu seem to be the primary maintainers. -- http://bugs.ruby-lang.org/