~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to lib/rubygems/commands/generate_index_command.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    end
20
20
 
21
21
    add_option '--[no-]legacy',
22
 
               'Generate indexes for RubyGems older than',
23
 
               '1.2.0' do |value, options|
 
22
               'Generate Marshal.4.8' do |value, options|
24
23
      unless options[:build_modern] or value then
25
24
        raise OptionParser::InvalidOption, 'no indicies will be built'
26
25
      end
87
86
  quick/Marshal.<version>/<gemname>.gemspec.rz # Marshal quick index file
88
87
 
89
88
  # these files support legacy RubyGems
90
 
  quick/index
91
 
  quick/index.rz                               # quick index manifest
92
 
  quick/<gemname>.gemspec.rz                   # legacy YAML quick index
93
 
                                               # file
94
89
  Marshal.<version>
95
90
  Marshal.<version>.Z                          # Marshal full index
96
 
  yaml
97
 
  yaml.Z                                       # legacy YAML full index
98
91
 
99
92
The .Z and .rz extension files are compressed with the inflate algorithm.
100
93
The Marshal version number comes from ruby's Marshal::MAJOR_VERSION and
101
94
Marshal::MINOR_VERSION constants.  It is used to ensure compatibility.
102
 
The yaml indexes exist for legacy RubyGems clients and fallback in case of
103
 
Marshal version changes.
104
95
 
105
96
If --rss-host and --rss-gem-host are given an RSS feed will be generated at
106
97
index.rss containing gems released in the last two days.